Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uveso's long-term bugtracing #2045

Closed
Uveso opened this issue May 29, 2017 · 60 comments
Closed

Uveso's long-term bugtracing #2045

Uveso opened this issue May 29, 2017 · 60 comments

Comments

@Uveso
Copy link
Contributor

Uveso commented May 29, 2017

I am using this to track/link errors over longer time periods

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address
0x0213d267 #1803
0x023fde58 #1804
0x0047a820 #348
0x00598eec #1900
0x005f39f7 #1574 (Fixed.)
0x0067aa5f #318
0x006cbc63 #1375 (xrb0104)
0x008b94f0 #1559
0x00938ac8 #1117
0x0095854f #1445
0x009d7b75 #1467

GitHub gamebuild stability tests:
11.05.2017 (3676) part I #1969 result=perfect
12.05.2017 FAForever/deploy/faf (3677) #1971 result=stable
15.05.2017 FAForever/deploy/beta (3678) #1991 result=DEADLOOP
18.05.2017 master (3682) #2001 result=stable
29.05.2017 (3676) part II #2044 result=stable
05.06.2017 (3684) + PR AdvancedLeadTarget #2060 result=stable
06.06.2017 deploy/fafdevelop (3684) #2061 result=stable

Unknown/rare errors without error messages:

ERROR1 - count:4 last:06.Jun.2017
Freeze after transition screen while zooming to CDR.
(Transition screen is half on the way to fade out. ~50% alpha)

ERROR2 - count:3 last:13.May.2018
Crash to desktop while initiating AI Archetype
Last logline: info: *AI DEBUG: ARMY \0004\000: Initiating Archetype using SorianMainTurtle
Last logline: info: *AI DEBUG: ARMY \0001\000: Initiating Archetype using UvesoMainAdaptive
(Transition screen is half on the way to fade out. ~50% alpha)

ERROR3 - count:2 last:19.May.2018
Game Frozen after ACU kill.
Last logline: warning: ACU kill detected. Rating for ranked games is now enforced.

ERROR4 - count:1 last:05.Jun.2017
Game frozen in midgame, sound and sim still running, but UI/gfx is frozen

Last Update 30.Dec.2019
(no new errors since 06 / 2017)

@Garanas
Copy link
Member

Garanas commented Aug 26, 2021

Another one to add to the list:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x0050dfd8
attempted to read memory at 0x0000005c

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\game_15187368.log /gpgnet 127.0.0.1:34600 /mean 1333.36 /deviation 222.314 /savereplay gpgnet://127.0.0.1:52527/15187368/Utopian.SCFAreplay /country HU /numgames 28

Callstack:
Unknown symbol (address 0x0050dfd8)
Unknown symbol (address 0x0068af40)
Unknown symbol (address 0x1d1ed9fb)
Unknown symbol (address 0x1d1ed9fb)

See also: https://forum.faforever.com/topic/2332/questions-about-performance/18

game_15187368.log

@KionX
Copy link
Contributor

KionX commented Aug 26, 2021

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x0050dfd8
Attempt to read the internal parameter "BlueprintOrdinal" of the blueprint when destroying the unit.
No more details can be obtained.

@KionX
Copy link
Contributor

KionX commented Aug 26, 2021

Here's more for the list: #3235
Does anyone want to fix this?

@Garanas
Copy link
Member

Garanas commented Aug 27, 2021

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x0050dfd8
Attempt to read the internal parameter "BlueprintOrdinal" of the blueprint when destroying the unit.
No more details can be obtained.

Where did you obtain this information from?

Here's more for the list: #3235
Does anyone want to fix this?

I don't know how to approach these type of errors - if you have suggestions

@KionX
Copy link
Contributor

KionX commented Aug 27, 2021

Where did you obtain this information from?
I used a debugger.
0x0050dfd8 Address of the instruction where the AV occurred.
In normal execution, the register points to the RUnitBlueprint class.(ClassNamePtr -> [[[Self]-4]+C]+8)
I looked at the contents at the address and compared with Shift-F6.
0x0068af40 Address of the instruction in the call chain if Ctrl-k.
I document almost everything I know about the engine here:
https://github.com/FAForever/FA-Binary-Patches/blob/master/sections/include/moho.h
https://github.com/FAForever/FA-Binary-Patches/blob/master/sections/include/global.h

@Garanas
Copy link
Member

Garanas commented Sep 1, 2021

@KionX That is a good find - great work. Here's a few more for this issue:


Post: https://forum.faforever.com/topic/2488/constant-game-crashes-need-help-figuring-it-out/17
Replay: 15229180
Branch: FAF
Log: 15229180.txt
Similar to: (new)

Error provided by game:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x00438168
    attempted to read memory at 0x00000001

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\game_15229180.log /gpgnet 127.0.0.1:20364 /mean 971.12964 /deviation 152.34543 /savereplay gpgnet://127.0.0.1:49336/15229180/Xarlus.SCFAreplay /country DE /clan NUT /numgames 59

Callstack:
	Unknown symbol (address 0x00438168)
	Unknown symbol (address 0x008026ac)
	Unknown symbol (address 0x00801e43)

Error provided by client:

java.lang.RuntimeException: Forged Alliance Crashed with exit code 1. See C:\ProgramData\FAForever\logs\game_15229180.log for more information
	at com.faforever.client.game.GameService.lambda$spawnTerminationListener$43(GameService.java:701)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:832)

Post: https://forum.faforever.com/topic/2488/constant-game-crashes-need-help-figuring-it-out/16
Replay: 15228945
Branch: FAF
Log: game_15228945.log
Similar to: (new)

Error provided by game:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x0042323b
    attempted to write memory at 0x3c003c04

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\game_15228945.log /gpgnet 127.0.0.1:50240 /mean 953.129 /deviation 153.206 /savereplay gpgnet://127.0.0.1:53083/15228945/Xarlus.SCFAreplay /country DE /clan NUT /numgames 58

Callstack:
	Unknown symbol (address 0x0042323b)
	Unknown symbol (address 0x00801e43)

Error provided by client:

java.lang.RuntimeException: Forged Alliance Crashed with exit code 1. See C:\ProgramData\FAForever\logs\game_15228945.log for more information
	at com.faforever.client.game.GameService.lambda$spawnTerminationListener$43(GameService.java:701)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:832)

Post: https://forum.faforever.com/topic/2488/constant-game-crashes-need-help-figuring-it-out/13
Replay: 15226123
Branch: FAF
Log: game_15226123.log
Similar to: #3162

Error provided by game:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x00423190
    attempted to read memory at 0x3e053ea4

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\game_15226123.log /gpgnet 127.0.0.1:28745 /mean 953.129 /deviation 153.206 /savereplay gpgnet://127.0.0.1:58564/15226123/Xarlus.SCFAreplay /country DE /clan NUT /numgames 58

Callstack:
	Unknown symbol (address 0x00423190)
	Unknown symbol (address 0x00801e43)

Error provided by client:

java.lang.RuntimeException: Forged Alliance Crashed with exit code -1073740771. See C:\ProgramData\FAForever\logs\game_15226123.log for more information
	at com.faforever.client.game.GameService.lambda$spawnTerminationListener$43(GameService.java:701)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:832)

@KionX
Copy link
Contributor

KionX commented Sep 1, 2021

I haven't studied them deeply, but all three are related to textures.

@Garanas
Copy link
Member

Garanas commented Sep 1, 2021

Textures in what form? And could you record how you approach this? I'd like to learn about it :)

@KionX
Copy link
Contributor

KionX commented Sep 1, 2021

It looks like the textures were not created. Possible lack of video memory.
The same method as described above.
I can make a utility for this. If it will be useful.

@Garanas
Copy link
Member

Garanas commented Sep 7, 2021

If you could - that would be great.

image

Another exception when playing co-op. The client doesn't always generate a proper dump file, hence - there is none for this particular exception.

@KionX
Copy link
Contributor

KionX commented Sep 7, 2021

Dump file is undesirable, they are uninformative and inconvenient.
It seems that this is not a faf error.
The replay did not show an error, there is no callstack addresses in the code. Perhaps it was a transition on a corrupted pointer.

@Garanas
Copy link
Member

Garanas commented Sep 7, 2021

How do you make that conclusion?

And about the dump files - yes, they are inconvenient. But it is better to have one, then not have it at all.

@KionX
Copy link
Contributor

KionX commented Sep 7, 2021

The replay did not show an error, there is no callstack addresses in the code. Perhaps it was a transition on a corrupted pointer.
A very strange error.

@Garanas
Copy link
Member

Garanas commented Sep 7, 2021

He has it quite often - I'll ask him to keep them coming.

@KionX
Copy link
Contributor

KionX commented Sep 7, 2021

If someone plays on Linux, let them indicate this.

@Crotalus
Copy link
Member

Crotalus commented Sep 20, 2021

@KionX @Garanas
While looking at the bug concerning OC and killing mobile shield units I stumbled upon the hard crash above at address 0x0050dfd8.

If you do targetEntity: GetBlueprint() when targetEntity is a "shield bubble" and not a unit the game crashes hard or sometimes just hanging the sim

OverchargeProjectile = Class() {
    OnImpact = function(self, targetType, targetEntity)
        -- This will crash the game if targetEntity is the shield bubble and not the actual unit that has the shield
        targetEntity:GetBlueprint()
    end
...
}

Would be good if this is fixed so the game doesn't crash at least. Maybe the engine function GetBlueprint() should just return nil in this case.

@Garanas
Copy link
Member

Garanas commented Sep 21, 2021

post: https://forum.faforever.com/topic/2569/patch-3721-hotfix-3722-hotfix-3723/33
replay: 15362291
branch: FAF
similar to: #2045 (comment)

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x0050dfd8
attempted to read memory at 0x0000005c

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\game_15362291.log /gpgnet 127.0.0.1:18519 /mean 1157.78 /deviation 110.825 /savereplay gpgnet://127.0.0.1:61428/15362291/Gobblerpl.SCFAreplay /country PL /numgames 134

Callstack:
Unknown symbol (address 0x0050dfd8)
Unknown symbol (address 0x0068af40)
Unknown symbol (address 0x3a20736f)

KionX already determined the cause of this - do we have an idea where / when this happens?

@Garanas
Copy link
Member

Garanas commented Sep 22, 2021

post: https://forum.faforever.com/topic/2569/patch-3721-hotfix-3722-hotfix-3723/35
replay: 15366794
branch: FAF
similar to: #2045 (comment)

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x0050dfd8
attempted to read memory at 0x0000005c

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\game_15366794.log /gpgnet 127.0.0.1:2777 /mean 1500.0 /deviation 500.0 /savereplay gpgnet://127.0.0.1:63574/15366794/RomanGiant06.SCFAreplay /country US /numgames 0

Callstack:
Unknown symbol (address 0x0050dfd8)
Unknown symbol (address 0x0068af40)
Unknown symbol (address 0x1c31c5fb)

@Garanas
Copy link
Member

Garanas commented Sep 22, 2021

I'll try and see if I can understand how to use that properly myself.

@Garanas
Copy link
Member

Garanas commented Sep 22, 2021

I've looked at it for a bit and I do not understand how to get to the files in question. Could you record how you do it and share that with us through Zulip? Because I'd really like to understand how to analyze these hard-crashes.

@KionX
Copy link
Contributor

KionX commented Sep 22, 2021

It's not all simple there. Enough for a whole lecture.
I have a better idea. I will make an automatic analyzer.

@Garanas
Copy link
Member

Garanas commented Sep 22, 2021

I'm up for a lecture too 😄

But I'll take the automatic analyzer - that on its own would help a lot too.

@KionX
Copy link
Contributor

KionX commented Sep 22, 2021

Persuaded. I'll try to make an auto analyzer first.
Then I will write a step-by-step example of manual crash analysis.

@Garanas
Copy link
Member

Garanas commented Sep 22, 2021

You're a hero, can't wait to read up about it 😄

@Garanas
Copy link
Member

Garanas commented Sep 22, 2021

And another one:

post: send private to me
replay: 15370416
branch: FAF
similar to: #2045 (comment)

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x0050dfd8
    attempted to read memory at 0x0000005c

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\game_15370416.log /gpgnet 127.0.0.1:59226 /mean 979.938 /deviation 267.865 /savereplay gpgnet://127.0.0.1:54755/15370416/MAPster.SCFAreplay /country DE /numgames 4

Callstack:
	Unknown symbol (address 0x0050dfd8)
	Unknown symbol (address 0x0068af40)
	Unknown symbol (address 0x11a67dfb)

luaError.txt

@Garanas
Copy link
Member

Garanas commented Sep 23, 2021

post: https://forum.faforever.com/topic/2586/game-crashing/3
replay: 15366391
branch: FAF
similar to: #2045 (comment)

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x0050dfd8
attempted to read memory at 0x0000005c

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\game_15366391.log /replay C:\ProgramData\FAForever\cache\temp.scfareplay /replayid 15366391

Callstack:
Unknown symbol (address 0x0050dfd8)
Unknown symbol (address 0x0068af40)
Unknown symbol (address 0x1925d9fb)
Unknown symbol (address 0x1925d9fb)

@Garanas
Copy link
Member

Garanas commented Sep 23, 2021

@KionX To fix this particular issue, can I assume that 0x0000005c is something like a null reference where this line refers to the fact that the C object of self has been destroyed? And that by adding an if statement checking for it, I can prevent these exceptions from happening?

@KionX
Copy link
Contributor

KionX commented Sep 23, 2021

Yes. 0x0000005c is something like a null reference.
But I did not find out why it is null and whether it belongs to the unit that self points to.
It says here that it can be nil:
https://github.com/FAForever/fa/blob/deploy/fafdevelop/engine/Sim.lua#L260

@Garanas
Copy link
Member

Garanas commented Sep 30, 2021

Do you have a suggestion what to tell them in order to fix it? Re-install the game?

@KionX
Copy link
Contributor

KionX commented Sep 30, 2021

Standard advices:
reinstall game, reinstall Windows/Linux, update drivers, check for viruses, update Linux & wine,
turn off antivirus, check memory, check processor, buy a new PC...

I don't have any original advice.

@Garanas
Copy link
Member

Garanas commented Sep 30, 2021

I see - I'll keep that list in mind

@Garanas
Copy link
Member

Garanas commented Oct 5, 2021

Deserialized nil table key.

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\replay.log /replay gpgnet://lobby.faforever.com/15452867/Jip.scfareplay /replayid 15452867

Callstack:
	Unknown symbol (address 0x006e4cd9)
	Unknown symbol (address 0x006e413c)
	Unknown symbol (address 0x1fe9be8f)
	Unknown symbol (address 0x62616e50)
	Unknown symbol (address 0x85105d86)

While watching a live replay - what?

At the end of the log:

info: WLD_GameSpeed -2
debug: Loading module '\000/units/xrl0403/xrl0403_script.lua\000'
debug: Current gametime: 00:27:30
debug: Loading module '\000/units/uaa0304/uaa0304_script.lua\000'
debug: Loading module '\000/units/xes0205/xes0205_script.lua\000'
debug: Loading module '\000/projectiles/caamissilenanite02/caamissilenanite02_script.lua\000'
debug: Current gametime: 00:28:00
debug: Loading module '\000/units/urb2305/urb2305_script.lua\000'
debug: Loading module '\000/units/ual0401/ual0401_script.lua\000'
debug: Loading module '\000/units/zeb9503/zeb9503_script.lua\000'
warning: Attempt to deserialize unknown lua data.

Game did last 30 minutes.

It finished when I tried again.

@KionX
Copy link
Contributor

KionX commented Oct 5, 2021

Deserialized nil table key.
It didn't happen.

This happened: log_15452867.txt

@Garanas
Copy link
Member

Garanas commented Oct 5, 2021

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x0095854f
    attempted to write memory at 0x02b80000

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\game_15455963.log /gpgnet 127.0.0.1:xxxxx /mean 1500.0 /deviation 500.0 /savereplay gpgnet://127.0.0.1:xxxxx/15455963/nomads.SCFAreplay /country XX /numgames 0

Callstack:
	Unknown symbol (address 0x0095854f)

No replay appears to be available.

@KionX
Copy link
Contributor

KionX commented Oct 5, 2021

Similar #1445 (possibility: 32Bit memory full)

@Garanas
Copy link
Member

Garanas commented Oct 7, 2021

Another crash, happens at every game

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x025ede58
attempted to read memory at 0x5f5ef079

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\game_15468792.log /gpgnet 127.0.0.1:54992 /mean 1500.0 /deviation 500.0 /savereplay gpgnet://127.0.0.1:59961/15468792/vmkcom.SCFAreplay /country KZ /numgames 0

Callstack:
Unknown symbol (address 0x025ede58)
Unknown symbol (address 0x025de001)
BaseThreadInitThunk + 20 bytes ((Unknown)(0) + 0 bytes)
RtlGetAppContainerNamedObjectPath + 281 bytes ((Unknown)(0) + 0 bytes)
RtlGetAppContainerNamedObjectPath + 233 bytes ((Unknown)(0) + 0 bytes)

@Garanas
Copy link
Member

Garanas commented Oct 7, 2021

Issue with the tool that you've made is that I never get hard crashes when I test 😢

@KionX
Copy link
Contributor

KionX commented Oct 7, 2021

The replay did not show an error, there is no callstack addresses in the code.

@KionX
Copy link
Contributor

KionX commented Oct 12, 2021

Issue with the tool that you've made is that I never get hard crashes when I test 😢
You can recommend others to use FADeepProbe.zip with replays.(not require cmd line)

@Garanas
Copy link
Member

Garanas commented Oct 31, 2021

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x00423221
attempted to read memory at 0xcb9b0313

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\game_15621190.log /gpgnet 127.0.0.1:17562 /mean 1704.38 /deviation 105.288 /savereplay gpgnet://127.0.0.1:51789/15621190/HOSCHMOSCH.SCFAreplay /country DE /numgames 2486

Callstack:
Unknown symbol (address 0x00423221)
Unknown symbol (address 0x00801e43)

@Garanas
Copy link
Member

Garanas commented Oct 31, 2021

I'll see if I can reproduce it with the probe

@KionX
Copy link
Contributor

KionX commented Nov 1, 2021

This is again a problem with textures. When rendering the terrain.

@Garanas
Copy link
Member

Garanas commented Nov 1, 2021

Could you be more specific, are there too many textures (decals)? Or is a texture corrupted?

@KionX
Copy link
Contributor

KionX commented Nov 1, 2021

This unknown. I estimate this error based on indirect data.

@Garanas
Copy link
Member

Garanas commented Nov 30, 2021

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x005f9bc6
    attempted to read memory at 0x000004a4

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\game_15819269.log /gpgnet 127.0.0.1:42590 /mean 1500.0 /deviation 500.0 /savereplay gpgnet://127.0.0.1:54433/15819269/Ovralyne.SCFAreplay /country CA /numgames 0

Callstack:
	Unknown symbol (address 0x005f9bc6)
	Unknown symbol (address 0x420bfffb)

Sadly, they map they play is 'unknown' - I'd say it would be part to decipher the cause when that is the case?

Found it: it is the co-op map Mind Games.

Command line:
ForgedAlliance.exe /init "init_coop.lua" /EnableDiskWatch /showlog /log test.log

Exit code: 1
Game version: 3727
Game tick: 34201

ACCESS_VIOLATION: Read from 0x000004A4
Stacktrace: 0x005F9BC6 0x00625D24 0x0061E120 0x0061C397 0x00409B2B 0x00409246 0x00409B2B 0x0074A110
.?AVUnit@Moho@@
.?AVCUnitPodAssist@Moho@@
.?AVCUnitPatrolTask@Moho@@
.?AVLAiAttackerImpl@Moho@@
MiniDump:
From 0x005F9B86 to 0x005F9C06
C08B90A00400008188A4040000000100008990A00400008B85900000003BC3740583C0FCEB0233C0508D7D40E849BFFFFF8A85990000008885800000008B451C
8B88A40400008188A0040000000001008988A4040000834524018B8C24F40000005F33C064890D000000005E5D5B8BE55DC38B178B423C6A0E8BCFFFD084C00F

C++ Exceptions:
.?AUlua_RuntimeError@@
@c:\programdata\faforever\gamedata\lua.nx2\lua\terranunits.lua 500
Table, Float:0, String:...mdata\faforever\gamedata\lua.nx2\lua\terranunits.lua(500): Game object has been destroyed
stack traceback:
	[C]: in function `SetRate'
	...mdata\faforever\gamedata\lua.nx2\lua\terranunits.lua(500): in function <...mdata\faforever\gamedata\lua.nx2\lua\terranunits.lua:498>
@c:\programdata\faforever\gamedata\lua.nx2\lua\shield.lua 360
Float:1, nil, String:Unexpected type for army object
stack traceback:
	[C]: in function `IsEnemy'
	...rogramdata\faforever\gamedata\lua.nx2\lua\shield.lua(360): in function <...rogramdata\faforever\gamedata\lua.nx2\lua\shield.lua:334>

@KionX can you make sense out of this crash report? It says the SetRate function doesn't work but no pods were destroyed / created right before the crash

@KionX
Copy link
Contributor

KionX commented Dec 2, 2021

Pointer to the unit 2097281 is being set to nil inside the callback
https://github.com/FAForever/fa/blob/3727/units/URL0001/URL0001_script.lua#L91
I traced the call chain to
https://github.com/FAForever/fa/blob/3727/lua/sim/Unit.lua#L339
Then the pointer is set to nil on this(call SetValue)
https://github.com/FAForever/fa/blob/3727/lua/system/trashbag.lua#L52

@splitice
Copy link

Another one for the list:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x005f5d3e
    attempted to read memory at 0x00000008

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\ProgramData\FAForever\logs\game_16124536.log /gpgnet 127.0.0.1:25079 /mean 1500.0 /deviation 500.0 /savereplay gpgnet://127.0.0.1:59175/16124536/splitice.SCFAreplay /country AU /numgames 0

Callstack:
	Unknown symbol (address 0x005f5d3e)
	Unknown symbol (address 0x101a57fb)
	Unknown symbol (address 0x2a114b6b)
	Unknown symbol (address 0x006a4bab)
	Unknown symbol (address 0xccccccc7)

Last 100 lines of log...

info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: CWldSession::DoBeat() unknown entity id (0x2ff00160) supplied in a pose update.
warning: Error running OnHealthChanged script in Entity xsbx304 at 79d3cf08: ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1148): attempt to loop over field `?' (a nil value)
         stack traceback:
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1148): in function `ManageDamageEffects'
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1178): in function <...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua:1177>
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
debug: Current gametime: 00:31:30
warning: Error running OnHealthChanged script in Entity xsbx304 at 68e9ea08: ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1148): attempt to loop over field `?' (a nil value)
         stack traceback:
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1148): in function `ManageDamageEffects'
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1178): in function <...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua:1177>
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
warning: Error running lua script: Unexpected type for army object
         stack traceback:
         	[C]: in function `IsEnemy'
         	...ta\faforever\gamedata\lua.nx2\lua\ai\aiutilities.lua(3322): in function `AIFindNearestCategoryTargetInRange'
         	...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua(10106): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua:9829>
info: AutoReclaim: Enabling automatic mass reclaim
warning: Error running lua script: ...a\faforever\gamedata\lua.nx2\lua\effectutilities.lua(2024): Game object has been destroyed
         stack traceback:
         	[C]: in function `SetGoal'
         	...a\faforever\gamedata\lua.nx2\lua\effectutilities.lua(2024): in function <...a\faforever\gamedata\lua.nx2\lua\effectutilities.lua:1989>
warning: Error running lua script: Unexpected type for army object
         stack traceback:
         	[C]: in function `IsEnemy'
         	...ta\faforever\gamedata\lua.nx2\lua\ai\aiutilities.lua(3322): in function `AIFindNearestCategoryTargetInRange'
         	...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua(10106): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua:9829>
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
warning: Error running OnHealthChanged script in Entity xsbx304 at 79d3cf08: ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1182): attempt to loop over field `DamageEffectsBag' (a nil value)
         stack traceback:
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1182): in function `DestroyAllDamageEffects'
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1152): in function `ManageDamageEffects'
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1178): in function <...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua:1177>
warning: Error running OnStopBeingBuilt script in Entity xsbx304 at 79d3cf08: ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(2310): attempt to call method `AddUnitStat' (a nil value)
         stack traceback:
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(2310): in function `OnStopBeingBuilt'
         	...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(1594): in function <...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua:1593>
warning: Error running lua script: ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(2358): attempt to call method `Destroy' (a nil value)
         stack traceback:
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(2358): in function `StopBeingBuiltEffects'
         	...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(1567): in function <...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua:1566>
warning: Error running OnStartBuild script in Entity xsbx304 at 79d3cf08: ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(723): table index is nil
         stack traceback:
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(723): in function `OnStartRepair'
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(2615): in function `OnStartBuild'
         	...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(2088): in function <...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua:2084>
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Enabling automatic mass reclaim
info: AutoReclaim: Halting automatic mass reclaim
warning: Error running OnHealthChanged script in Entity xsbx304 at 68e9ea08: ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1182): attempt to loop over field `DamageEffectsBag' (a nil value)
         stack traceback:
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1182): in function `DestroyAllDamageEffects'
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1152): in function `ManageDamageEffects'
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(1178): in function <...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua:1177>
warning: Error running OnStopBeingBuilt script in Entity xsbx304 at 68e9ea08: ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(2310): attempt to call method `AddUnitStat' (a nil value)
         stack traceback:
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(2310): in function `OnStopBeingBuilt'
         	...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(1594): in function <...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua:1593>
warning: Error running lua script: ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(2358): attempt to call method `Destroy' (a nil value)
         stack traceback:
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(2358): in function `StopBeingBuiltEffects'
         	...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(1567): in function <...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua:1566>
warning: Error running OnStartBuild script in Entity xsbx304 at 68e9ea08: ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(723): table index is nil
         stack traceback:
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(723): in function `OnStartRepair'
         	...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(2615): in function `OnStartBuild'
         	...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(2088): in function <...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua:2084>

@Uveso
Copy link
Contributor Author

Uveso commented Jan 14, 2022

@splitice,

thanks for reporting the error.
Please disable all mods in your game and test again if the error persists.

In case you have the error at 0x005f5d3e at least 2 times without mods, please report it back here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants