FAForever / fa

Lua code for FAF
223 stars 230 forks source link

Сrashes in lobby and game, when the function 'SavePreferences' is used #6057

Closed GodFuper closed 4 months ago

GodFuper commented 4 months ago

The game crashes in lobby at the start of the game.

Version 3807. It happens to people in almost every 3 games. Only if you are the Host. game_22218893.log

info: stack traceback:
info:         ...amdata\faforever\gamedata\lua.nx2\lua\user\prefs.lua(234): in function `SavePreferences'
info:         ...aforever\gamedata\lua.nx2\lua\ui\lobby\lobbycomm.lua(98): in function `LaunchGame'
info:         ...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua(2298): in function `LaunchGame'
info:         ...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua(2303): in function <...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua:2092>
info:         ...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua(2176): in function <...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua:2176>
info:         ...ramdata\faforever\gamedata\lua.nx2\lua\ui\uiutil.lua(1085): in function `OnClick'
info:         ...mdata\faforever\gamedata\lua.nx2\lua\maui\button.lua(118): in function <...mdata\faforever\gamedata\lua.nx2\lua\maui\button.lua:112>
GodFuper commented 4 months ago

I'll add another log a little bit. Crash during the game. According to the players: 5 people flew out at the same time. Version: 3808 game_22236563.log

info: stack traceback:
info:         ...amdata\faforever\gamedata\lua.nx2\lua\user\prefs.lua(234): in function `SavePreferences'
info:         ...aforever\gamedata\lua.nx2\lua\ui\lobby\lobbycomm.lua(98): in function `LaunchGame'
info:         ...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua(5551): in function `Handle'
info:         ...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua(5649): in function <...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua:5637>
info: stack traceback:
info:         ...amdata\faforever\gamedata\lua.nx2\lua\user\prefs.lua(234): in function `SavePreferences'
info:         ...der forged alliance\mods\ranges\modules\acsprefs.lua(77): in function `savePreferences'
info:         ...der forged alliance\mods\ranges\modules\acsprefs.lua(58): in function `init'
info:         ...nder forged alliance\mods\ranges\modules\acsmain.lua(20): in function `initPrefs'
info:         ...nder forged alliance\mods\ranges\modules\acsmain.lua(11): in function `init'
info:         ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(1186): in function <...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua:1184>
info:         ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(1225): in function <...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua:1223>
info:         ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(1260): in function `CreateUI'
info:         ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(527): in function <...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua:521>
Garanas commented 4 months ago

That log is not related to your crash; it's a trace to see if the function SavePreferences is being called and if so, from where it is being called.

Garanas commented 4 months ago

You have sound errors:

warning: SND: XACT3DApply failed.
         Invalid arg

See also: https://forum.faforever.com/topic/4084/solutions-for-snd-error-xact-invalid-arg-xact3dapply-failed