Author Topic: 3.7.2 + lua socket crashes  (Read 2600 times)

0 Members and 1 Guest are viewing this topic.

Re: 3.7.2 + lua socket crashes
Ok i will try this and report here.

 
Re: 3.7.2 + lua socket crashes
Hello,

i hope i have done this the right way.

Here is the text of the "stack"-tab

Code: [Select]
lua5.1.dll!0f1dec49() Unbekannt
  [Unten angegebene Rahmen sind möglicherweise nicht korrekt und/oder fehlen, keine Symbole geladen für lua5.1.dll]
  lua5.1.dll!0f1e00fd() Unbekannt
  lua5.1.dll!0f1d1d88() Unbekannt
  lua5.1.dll!0f1e2477() Unbekannt
  core.dll!0ca21011() Unbekannt
  core.dll!0ca23085() Unbekannt
  core.dll!0ca224f0() Unbekannt
> fs2_open_3_7_3_SSE2-DEBUG.exe!luaD_precall(lua_State * L, lua_TValue * func, int nresults) Zeile 320 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!luaD_call(lua_State * L, lua_TValue * func, int nResults) Zeile 377 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!lua_call(lua_State * L, int nargs, int nresults) Zeile 782 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!ll_require(lua_State * L) Zeile 484 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!luaD_precall(lua_State * L, lua_TValue * func, int nresults) Zeile 320 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!luaV_execute(lua_State * L, int nexeccalls) Zeile 591 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!luaD_call(lua_State * L, lua_TValue * func, int nResults) Zeile 378 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!lua_call(lua_State * L, int nargs, int nresults) Zeile 782 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!ll_require(lua_State * L) Zeile 484 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!luaD_precall(lua_State * L, lua_TValue * func, int nresults) Zeile 320 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!luaV_execute(lua_State * L, int nexeccalls) Zeile 591 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!luaD_call(lua_State * L, lua_TValue * func, int nResults) Zeile 378 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!f_call(lua_State * L, void * ud) Zeile 800 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!luaD_rawrunprotected(lua_State * L, void (lua_State *, void *) * f, void * ud) Zeile 116 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!luaD_pcall(lua_State * L, void (lua_State *, void *) * func, void * u, int old_top, int ef) Zeile 464 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!lua_pcall(lua_State * L, int nargs, int nresults, int errfunc) Zeile 821 C
  fs2_open_3_7_3_SSE2-DEBUG.exe!script_state::RunBytecodeSub(int in_lang, int in_idx, char format, void * data) Zeile 879 C++
  fs2_open_3_7_3_SSE2-DEBUG.exe!script_state::RunBytecode(script_hook & hd, char format, void * data) Zeile 921 C++
  fs2_open_3_7_3_SSE2-DEBUG.exe!ConditionedHook::Run(script_state * sys, int action, char format, void * data) Zeile 523 C++
  fs2_open_3_7_3_SSE2-DEBUG.exe!script_state::RunCondition(int action, char format, void * data, object * objp, int more_data) Zeile 932 C++
  fs2_open_3_7_3_SSE2-DEBUG.exe!game_enter_state(int old_state, int new_state) Zeile 6507 C++
  fs2_open_3_7_3_SSE2-DEBUG.exe!gameseq_set_state(int new_state, int override) Zeile 284 C++
  fs2_open_3_7_3_SSE2-DEBUG.exe!game_process_event(int current_state, int event) Zeile 5530 C++
  fs2_open_3_7_3_SSE2-DEBUG.exe!gameseq_process_events() Zeile 399 C++
  fs2_open_3_7_3_SSE2-DEBUG.exe!game_main(char * cmdline) Zeile 7175 C++
  fs2_open_3_7_3_SSE2-DEBUG.exe!WinMain(HINSTANCE__ * hInst, HINSTANCE__ * hPrev, char * szCmdLine, int nCmdShow) Zeile 7244 C++
  [Externer Code]

 

Offline m!m

  • 211
Re: 3.7.2 + lua socket crashes
Yeah, as I expected it crashes within the code of the other lua VM. I think this problem is caused by the lua DLL because it basically creates a second lua VM that is different from the VM FSO uses. There is not much the SCP can do to fix that (I'm still not sure why it worked before but that may just have been a coincidence).
You could try using a Proxy DLL that redirects the lua function calls to the lua VM used by FSO.