Coder Social home page Coder Social logo

fomono's People

Contributors

bartadv avatar wladimiiir avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

wladimiiir dk-dev

fomono's Issues

Replace "MonoCongigDir" to "MonoConfigDir" on a call to IniParser::GetStr

In the function MonoManager::Init(bool)

.text:0041A575 lea ecx, [ebp+var_2010]
.text:0041A57B push ecx ; Dst
.text:0041A57C push offset byte_681F48 ; int
.text:0041A581 push offset aMonocongigdir ; "MonoCongigDir"
.text:0041A586 lea ecx, [ebp+var_30CC]
.text:0041A58C call ?GetStr@IniParser@@QAE_NPBD0PADD@Z

Replace "MonoCongigDir" to "MonoConfigDir"

this is null in Map.RaiseFinish

To reproduce this bug:

  1. Modify Map.Events.Cs as follows
  2. Run MapManager.DeleteLocation (or DeleteLocation from angelscript)

Because of this == null, the instructions following the added lines will produce an exception.

Map.Events.Cs

...
void RaiseFinish(bool to_delete)
{
if (this == null)
Global.Log("this == null in Map.RaiseFinish");
if (Finish != null)
Finish(this, new MapFinishEventArgs(this, to_delete));
}
...

FOnlineServer.exe crashes with MonoEnabled=0 in FOnlineServer.cfg

Host system:
Windows 7 x64

Steps to reproduce this bug:

  1. Download latest binaries
  2. Check the presence of the lines in FOnlineServer.cfg
  3. Run Wipe.bat
  4. Run FOnlineServer.exe and press the "Start Server" button

In the end you will obtain the Log on the server window and the CrashDump_FOnlineServer_0518_*** file

FOnlineServer.cfg:

MonoEnabled=0
MonoLibDir=mono/lib

Wipe.bat

del scripts*.fosb
del scripts*.fosp
del maps*.fomapb
del scripts*.fosb
del scripts*.fosp
del maps*.mapb
del save*.fo
del save\clients*.client
del save\clients\last_id.txt

Log

[00:000] FOnline server, version 0518-F7.
[01:772] *** Starting initialization ****
[01:779] Script system initialization...
[01:801] Reload scripts...
[23:098] Reload scripts complete.
[23:098] Bind reserved functions...
[23:107] Bind reserved functions complete.
[23:107] Script system initialization complete.
[23:107] Loading language packs...
[23:188] Loading language packs complete, loaded<2> packs.
[23:188] Reload client scripts...
[26:938] Reload client scripts complete.
[26:938] Indexing client data.
[26:938] Clients data not found.
[26:939] AI manager initialization...
[26:939] Find bags...
[27:081] Loaded<722> bags.
[27:081] AI manager initialization complete.
[27:081] Item manager initialization...
[27:094] Item manager initialization complete.
[27:094] Critter manager initialization...
[27:142] Critter manager initialization complete.
[27:142] Map manager initialization...
[27:147] Map manager initialization complete.
[27:147] Var manager initialization.
[27:147] Update template vars...
[27:165] Update template vars complete.
[27:165] Var manager initialization complete.
[27:165] Load Dialogs...[27:165] from list<dialogs.lst>.
[27:219] Loading dialogs finish, loaded<62/62>.
[27:225] FixBoy load crafts...
[27:236] FixBoy load crafts complete.
[27:242] Loaded<282> critter types.
[27:263] Loading items prototypes...
[28:707] Items prototypes successfully loaded, count<5395>.
[28:708] Loading critters prototypes...
[28:732] Loaded<309> critter protos, errors<0>.
[28:732] Load location and map prototypes...
[33:349] Load location and map prototypes complete, loaded<39> location protos.
[33:355] MonoManager::MainInit[33:355] MonoManager::MainInit: Main[33:769] World dump file not found.
[33:769] Generate world...
[33:769] Location: pid<500>, worldX<802>, worldY<1004>.
[33:769] Unable to call managed Map::Create

CrashDump_FOnlineServer_0518_2013.07.17_15-09-44.txt

Application
Name FOnlineServer
Version 0518
OS 6.1.7601 (Service Pack 1)
Timestamp 2013.07.17 15:09:44

Exception
Code EXCEPTION_ACCESS_VIOLATION
Address 0x77728DC9
Flags 0x0

Thread 'Main' (5628, current)
ntdll, RtlIntegerToUnicodeString + 764
ntdll, RtlIntegerToUnicodeString + 523
mono-2.0, mono_gc_memmove + 283
FOnlineServer, public: void __thiscall Map::SetMonoMap(struct MonoObject *) + 44
FOnlineServer, public: class Map * __thiscall MapManager::CreateMap(unsigned short,class Location *,unsigned int) + 427
FOnlineServer, public: class Location * __thiscall MapManager::CreateLocation(unsigned short,unsigned short,unsigned short,unsigned int) + 303
FOnlineServer, public: bool __thiscall MapManager::GenerateWorld(char const *,int) + 447
FOnlineServer, public: static bool __cdecl FOServer::NewWorld(void) + 27
FOnlineServer, public: static bool __cdecl FOServer::InitReal(void) + 1186
FOnlineServer, public: static bool __cdecl FOServer::Init(void) + 22
FOnlineServer, void __cdecl GameLoopThread(void *) + 10
FOnlineServer, void * __cdecl ThreadBeginExecution(void *) + 44
FOnlineServer, _ptw32_threadStart@4 + 97
FOnlineServer, __endthreadex + 58
FOnlineServer, __endthreadex + 196
kernel32, BaseThreadInitThunk + 18
ntdll, RtlInitializeExceptionChain + 99
ntdll, RtlInitializeExceptionChain + 54

Thread 'GUI' (5164)
ntdll, ZwWaitForMultipleObjects + 21
kernel32, WaitForMultipleObjectsEx + 142
USER32, MsgWaitForMultipleObjectsEx + 250
USER32, MsgWaitForMultipleObjects + 31
FOnlineServer, int __cdecl fl_wait(double) + 665
FOnlineServer, public: static double __cdecl Fl::wait(double) + 23
FOnlineServer, public: static int __cdecl Fl::wait(void) + 33
FOnlineServer, _main + 1169
FOnlineServer, _WinMain@16 + 402
FOnlineServer, __tan_default + 552
kernel32, BaseThreadInitThunk + 18
ntdll, RtlInitializeExceptionChain + 99
ntdll, RtlInitializeExceptionChain + 54

Thread 'GUIUpdate' (5740)
ntdll, ZwDelayExecution + 21
KERNELBASE, Sleep + 15
FOnlineServer, public: static void __cdecl Thread::Sleep(unsigned int) + 13
FOnlineServer, void __cdecl GUIUpdate(void *) + 17
FOnlineServer, void * __cdecl ThreadBeginExecution(void *) + 44
FOnlineServer, _ptw32_threadStart@4 + 97
FOnlineServer, __endthreadex + 58
FOnlineServer, __endthreadex + 196
kernel32, BaseThreadInitThunk + 18
ntdll, RtlInitializeExceptionChain + 99
ntdll, RtlInitializeExceptionChain + 54

Thread 'ScriptTimeout' (4676)
ntdll, ZwDelayExecution + 21
KERNELBASE, Sleep + 15
FOnlineServer, public: static void __cdecl Thread::Sleep(unsigned int) + 13
FOnlineServer, void __cdecl RunTimeout(void *) + 963
FOnlineServer, void * __cdecl ThreadBeginExecution(void *) + 44
FOnlineServer, _ptw32_threadStart@4 + 97
FOnlineServer, __endthreadex + 58
FOnlineServer, __endthreadex + 196
kernel32, BaseThreadInitThunk + 18
ntdll, RtlInitializeExceptionChain + 99
ntdll, RtlInitializeExceptionChain + 54

Loaded modules
D:\Documents\Visual Studio 2010\Projects\FOnline\fonline-aop\trunk\server\FOnlineServer.exe (00400000)
C:\Windows\SysWOW64\ntdll.dll (776F0000)
C:\Windows\syswow64\kernel32.dll (771D0000)
C:\Windows\syswow64\KERNELBASE.dll (752A0000)
C:\Windows\syswow64\USER32.dll (76F50000)
C:\Windows\syswow64\GDI32.dll (75660000)
C:\Windows\syswow64\LPK.dll (76840000)
C:\Windows\syswow64\USP10.dll (76860000)
C:\Windows\syswow64\msvcrt.dll (77050000)
C:\Windows\syswow64\ADVAPI32.dll (75700000)
C:\Windows\SysWOW64\sechost.dll (75640000)
C:\Windows\syswow64\RPCRT4.dll (76A20000)
C:\Windows\syswow64\SspiCli.dll (75140000)
C:\Windows\syswow64\CRYPTBASE.dll (75130000)
C:\Windows\syswow64\WS2_32.dll (76800000)
C:\Windows\syswow64\NSI.dll (772E0000)
D:**
\Documents\Visual Studio 2010\Projects\FOnline\fonline-aop\trunk\server\mono-2.0.dll (659C0000)
C:\Windows\system32\MSWSOCK.DLL (71E90000)
C:\Windows\syswow64\OLE32.dll (76680000)
C:\Windows\syswow64\OLEAUT32.DLL (757B0000)
C:\Windows\syswow64\PSAPI.DLL (776C0000)
C:\Windows\syswow64\SHELL32.DLL (75840000)
C:\Windows\syswow64\SHLWAPI.dll (76580000)
C:\Windows\system32\VERSION.dll (73370000)
C:\Windows\system32\WINMM.DLL (721F0000)
C:\Windows\system32\dbghelp.dll (6C050000)
C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\COMCTL32.dll (74760000)
C:\Windows\system32\IMM32.DLL (75230000)
C:\Windows\syswow64\MSCTF.dll (77100000)
C:\Windows\system32\uxtheme.dll (6E6B0000)
C:\Windows\system32\dwmapi.dll (6E610000)
C:\Windows\syswow64\CLBCatQ.DLL (764F0000)
C:\Windows\system32\msimtf.dll (740D0000)
D:**
\Documents\Visual Studio 2010\Projects\FOnline\fonline-aop\trunk\server\scripts\fonline_tla.dll (6D490000)
D:**
**\Documents\Visual Studio 2010\Projects\FOnline\fonline-aop\trunk\server\scripts\fonline_test.dll (67310000)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.