FAForever / fa

Lua code for FAF
227 stars 233 forks source link

EXCEPTION_ACCESS_VIOLATION (0xc0000005) #2945

Closed SpaceNinjaApe closed 2 years ago

SpaceNinjaApe commented 4 years ago

EXCEPTION_ACCESS_VIOLATION (0xc0000005) Multiplayer crashes on scmp_039 (no mods)

error.txt

Happend a view times now:

OS: Windows 10 pro 64 bit

shalkya commented 4 years ago

can you provide the game.log here : C:\ProgramData\FAForever\logs\game.log

SpaceNinjaApe commented 4 years ago

Just in a second. Were doing another game (same races spamming units like mad) but this time my mate is not connected via w-lan.

norusk commented 4 years ago

game.log

SpaceNinjaApe commented 4 years ago

warning: Error running lua script: ...\gamedata\units.nx2\units\uel0307\uel0307_script.lua(106): Game object has been destroyed stack traceback: [C]: in function `SetFireTargetLayerCaps' ...\gamedata\units.nx2\units\uel0307\uel0307_script.lua(106): in function <...\gamedata\units.nx2\units\uel0307\uel0307_script.lua:100>

this seems to be the problem?

SpaceNinjaApe commented 4 years ago

Are there any known problems with radeon graphiccards?

Strogoo commented 4 years ago

If you still have these EXCEPTION_ACCESS_VIOLATION crashes then pls post recent crash logs (there was an exe patch a month ago, so some addresses are outdated now it seems. Can't find them in debugger)

Normal logs from log folder are irrelevant, you have to copy them from this debug window (like in your first post) and then upload here.

BurnySc2 commented 4 years ago

I'm running Linux Mint Mate using the Steam client FA version together with Download's FAF Client (Java) and getting the same crashes (3 so far today). These seem to happen after 25-35 game time. I suspected they have to do with DirectX9 rendering (a solution is described here) but I am still getting the same crash even after applying the described fix (solution 3) in the link.

Here are two such reports with EXCEPTION_ACCESS_VIOLATION (0xc0000005) error1.txt error2.txt

Edit: I just found the full game.log belonging to error2.txt: game.log

Edit: More logs from other games (similar crashes): game1.log game2.log game3.log game4.log game5.log game6.log game7.log game8.log game9.log game10.log

LukeAtherton commented 4 years ago

I've got the same issue also around the 25-35 min mark.

I'm running Pop!_OS with the Java client v1.1.8 launching with:

export PROTON_USE_D9VK=1;
export INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64;
./downlords-faf-client;

On proton 4.11-13 with these launch options:

PROTON_USE_D9VK=1 DXVK_HUD=1 PROTON_NO_ESYNC=1 PROTON_DUMP_DEBUG_COMMANDS=1 PROTON_LOG=1 %command%

Running the replay crashes every time but at different points in the game, here's the output from a couple of games where the crash occurred:

fa-crash.txt fa-crash-2.txt fa-crash-3.txt fa-crash-4.txt

It seems to crash now even watching replays of games I played last week which were fine at the time. Started happening when I upgraded the client to v1.1.8 I think.

What can I look for to help debug this?

dcelasun commented 4 years ago

I have the same crash since 1.2.0 I think. Here are some choice quotes from game.log. The last one definitely looks relevant.

warning: Error running sim lua callback function 'GiveOrders':
         ...sun\.faforever\gamedata\lua.nx2\lua\spreadattack.lua(428): attempt to call method `GetBlueprint' (a nil value)
         stack traceback:
            ...sun\.faforever\gamedata\lua.nx2\lua\spreadattack.lua(428): in function `fn'
            ...sun\.faforever\gamedata\lua.nx2\lua\simcallbacks.lua(16): in function <...sun\.faforever\gamedata\lua.nx2\lua\simcallbacks.lua:13>
warning: Error running sim lua callback function 'CapMex':
         ...sun\.faforever\gamedata\lua.nx2\lua\simcallbacks.lua(90): attempt to call method `GetCurrentLayer' (a nil value)
         stack traceback:
            ...sun\.faforever\gamedata\lua.nx2\lua\simcallbacks.lua(90): in function `fn'
            ...sun\.faforever\gamedata\lua.nx2\lua\simcallbacks.lua(16): in function <...sun\.faforever\gamedata\lua.nx2\lua\simcallbacks.lua:13>
warning: Evaluating LazyVar failed: error evaluating lazy variable: ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(34): error evaluating lazy variable: ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(36): circular dependency in lazy evaluation for variable [Set lazyvar.ExtendedErrorMessages for extra trace info]
         stack traceback:
            [C]: in function `error'
            ...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(21): in function `Left'
            ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(36): in function <... alliance\gamedata\mohodata.scd\lua\maui\control.lua:36>
            [C]: in function `pcall'
            ...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(31): in function `Right'
            ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(34): in function <... alliance\gamedata\mohodata.scd\lua\maui\control.lua:34>
            [C]: in function `pcall'
            ...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(31): in function <...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua:18>
         Stack trace from definition: [Set lazyvar.ExtendedErrorMessages for extra trace info]

         stack traceback:
            [C]: in function `error'
            ...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(37): in function `Right'
            ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(34): in function <... alliance\gamedata\mohodata.scd\lua\maui\control.lua:34>
            [C]: in function `pcall'
            ...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(31): in function <...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua:18>
         Stack trace from definition: [Set lazyvar.ExtendedErrorMessages for extra trace info]

         stack traceback:
            [C]: in function `error'
            ...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(37): in function <...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua:18>
warning: GetResource: Invalid name ""
info: Can't find texture "" -- trying fallback.
warning: GetResource: Invalid name ""
info: Can't find texture "" -- trying fallback.
warning: GetResource: Invalid name ""
info: Can't find texture "" -- trying fallback.
debug: Loading module '\000/lua/ui/game/strategicicons.lua\000'
warning: Evaluating LazyVar failed: error evaluating lazy variable: ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(37): error evaluating lazy variable: ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(35): circular dependency in lazy evaluation for variable [Set lazyvar.ExtendedErrorMessages for extra trace info]
         stack traceback:
            [C]: in function `error'
            ...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(21): in function `Bottom'
            ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(35): in function <... alliance\gamedata\mohodata.scd\lua\maui\control.lua:35>
            [C]: in function `pcall'
            ...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(31): in function `Top'
            ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(37): in function <... alliance\gamedata\mohodata.scd\lua\maui\control.lua:37>
            [C]: in function `pcall'
            ...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(31): in function <...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua:18>
         Stack trace from definition: [Set lazyvar.ExtendedErrorMessages for extra trace info]

         stack traceback:
            [C]: in function `error'
            ...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(37): in function `Top'
            ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(37): in function <... alliance\gamedata\mohodata.scd\lua\maui\control.lua:37>
            [C]: in function `pcall'
            ...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(31): in function <...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua:18>
         Stack trace from definition: [Set lazyvar.ExtendedErrorMessages for extra trace info]

         stack traceback:
            [C]: in function `error'
            ...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(37): in function <...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua:18>
MrRowey commented 2 years ago

Moving to use #2045 to track this, closing it accordingly.