Unhandled Exception @ Random Times in Game

This is for troubleshooting of problems with the FAF client and Forged Alliance game.

Moderator: PhilipJFry

Unhandled Exception @ Random Times in Game

Postby Printer » 23 Mar 2020, 04:36

I've been having inconsistent errors with crashes since installing FAF. I got my computer 2nd hand so I suspected the worst but even after upgrading, same crash occurs. Steps I took were:
1. Updated all drivers, reinstalled Steam & FAF a few times,
2. Migrated Steam, archive, and FAF directory (except for the Program Data one) to a non-SSD,
3. Unloaded all mods and deleted user files a few times

Still the crashes occur~ probably 10/105 games. I've found they mostly occur playing GAP related maps (6-8 times), and only (1-2) on Seton.

I've also attached the unhandled exception text file.

Thanks for any help fixing this!

Card name: NVIDIA GeForce GTX 1070
Operating System: Windows 10 Home 64-bit (10.0, Build 18363) (18362.19h1_release.190318-1202)
Processor: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 CPUs), ~4.0GHz
Attachments
Uhandled Exception Crash.txt
(4.27 KiB) Downloaded 84 times
downlords-faf-client.log
(61.5 KiB) Downloaded 82 times
game.log
(186.81 KiB) Downloaded 83 times
Printer
Crusader
 
Posts: 12
Joined: 05 Mar 2020, 06:25
Has liked: 0 time
Been liked: 0 time
FAF User Name: Printer

Re: Unhandled Exception @ Random Times in Game

Postby Printer » 27 Mar 2020, 05:29

Had another crash, logs attached.
Attachments
Exception Log.txt
26-Mar-20
(6.02 KiB) Downloaded 55 times
downlords-faf-client.log
26-Mar-20
(65.06 KiB) Downloaded 49 times
game.log
(760.77 KiB) Downloaded 66 times
Printer
Crusader
 
Posts: 12
Joined: 05 Mar 2020, 06:25
Has liked: 0 time
Been liked: 0 time
FAF User Name: Printer

Re: Unhandled Exception @ Random Times in Game

Postby Printer » 27 Mar 2020, 10:58

Another crash, on Seton this time. Kinda no point to keep playing if dropping like this :'( Ahead of this had tested studio vs gaming video driver and hoped that was it. Seems not to be...
Attachments
game.log
27-Mar-20
(760.77 KiB) Downloaded 48 times
downlords-faf-client.log
27-Mar-20
(65.06 KiB) Downloaded 50 times
Exception Log.txt
27-Mar-20
(6.02 KiB) Downloaded 47 times
Printer
Crusader
 
Posts: 12
Joined: 05 Mar 2020, 06:25
Has liked: 0 time
Been liked: 0 time
FAF User Name: Printer

Re: Unhandled Exception @ Random Times in Game

Postby Uveso » 27 Mar 2020, 15:47

1:
Fist log was on map:
Code: Select all
info: Loading script file: \000/maps/dualgap_adaptive.v0003/DualGap_Adaptive_script.lua


Errors:
Code: Select all
warning: Error running DataReceived script in CScriptObject at 11660000: ...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua(4789): attempt to concatenate a nil value
         stack traceback:
            ...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua(4789): in function <...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua:4777>

Code: Select all
warning: Invalid args to yield(); tick count must be >=0
         stack traceback:
            [C]: in function `WaitTicks'
            ...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(30): in function `WaitSeconds'
            ...s\dualgap_adaptive.v0003\dualgap_adaptive_script.lua(92): in function <...s\dualgap_adaptive.v0003\dualgap_adaptive_script.lua:91>

Code: Select all
warning: Error running sim lua callback function 'CapMex':
         ...data\faforever\gamedata\lua.nx2\lua\simcallbacks.lua(90): attempt to call method `GetCurrentLayer' (a nil value)
         stack traceback:
            ...data\faforever\gamedata\lua.nx2\lua\simcallbacks.lua(90): in function `fn'
            ...data\faforever\gamedata\lua.nx2\lua\simcallbacks.lua(16): in function <...data\faforever\gamedata\lua.nx2\lua\simcallbacks.lua:13>


2:
Second Log was on map:
Code: Select all
info: Loading script file: \000/maps/dual_gap_fix.v0004.v0004/Dual_Gap_fix_script.lua


Errors:
Code: Select all
warning: Unknown DirectSound speaker configuration 8. Defaulting to Stereo.

Code: Select all
warning: Invalid args to yield(); tick count must be >=0
         stack traceback:
            [C]: in function `WaitTicks'
            ...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(30): in function `WaitSeconds'
            ...aps\dual_gap_fix.v0004.v0004\dual_gap_fix_script.lua(92): in function <...aps\dual_gap_fix.v0004.v0004\dual_gap_fix_script.lua:91>

Code: Select all
warning: SND: XACT3DApply failed.
         Invalid arg

Code: Select all
info: CNetTCPBuf::Flush(): send() failed: WSAECONNRESET


3.
Third Log was on map:
Code: Select all
info: Loading script file: \000/maps/dual_gap_fix.v0004.v0004/Dual_Gap_fix_script.lua


Errors:
Code: Select all
warning: Unknown DirectSound speaker configuration 8. Defaulting to Stereo.

Code: Select all
warning: Invalid args to yield(); tick count must be >=0
         stack traceback:
            [C]: in function `WaitTicks'
            ...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(30): in function `WaitSeconds'
            ...aps\dual_gap_fix.v0004.v0004\dual_gap_fix_script.lua(92): in function <...aps\dual_gap_fix.v0004.v0004\dual_gap_fix_script.lua:91>

Code: Select all
warning: SND: XACT3DApply failed.
         Invalid arg

Code: Select all
info: CNetTCPBuf::Flush(): send() failed: WSAECONNRESET




Looks like game log number 3 is the same as 2.

Error exception in fist game:
Code: Select all
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x007af258
    attempted to read memory at 0x00000007

Error exception on second game:
Code: Select all
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x0000e424
    attempted to read memory at 0x0000e424


So the game crashed on 2 different errors.

Info about the errors found in logs:

First and Second game has some script errors in DualGap_Adaptive_script.lua and Dual_Gap_fix_script.lua
(Don't use any adaptive map for testing/searching for errors. Those maps can hook system functions)

First game has a error in CapMex (function to build mass storage around mexes) That is strange since its a callback and simside.
(Should never happen, and code can only be changed by a sim mod. It's maybe the map ?)

Second game has errors because of soundsettings are not stereo
(Switch your soundcard to stereo, disable all sound enhancements.)

Second game got a disconnect.
(Could be the internetconnection or the client lost the serverconnection)

My suggestion:
1. Please use a non adaptive map and set your sound to stereo.
2. In case you are using Wireless lan, use a cable.
3. make a filecheck for the game via steam client
4. delete everything inside the folder "C:\ProgramData\FAForever\gamedata"
5. delete everything inside the folder "C:\ProgramData\FAForever\cache"
6. make a backup and delete the file "C:\Users\YOURNAME\AppData\Local\Gas Powered Games\Supreme Commander Forged Alliance\Game.prefs"

Then test again.
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: Unhandled Exception @ Random Times in Game

Postby Printer » 28 Mar 2020, 02:59

Thank you Uveso!

Avoiding Adaptive maps, playing on wired lan, and Validated Steam files. Found windows was doing system sounds on monitor and game sounds on headphones. I was able to ensure the monitor is set to stereo, but just to be safe disabled it anyways. Made sure spacial sound was off for the headphones. Is that the sound surround option you mentioned?

Applied 4-6 and will be testing again.
Printer
Crusader
 
Posts: 12
Joined: 05 Mar 2020, 06:25
Has liked: 0 time
Been liked: 0 time
FAF User Name: Printer

Re: Unhandled Exception @ Random Times in Game

Postby Printer » 30 Mar 2020, 02:48

After effecting these changes I had (2) more crashes but about 10-15 games with no issue.

1. Occured when I was messing around making templates not during regular play.
2. Occured when a pop-up from Window's defender notified me it had just finished a scan and make (1) correction. I don't know what it is though because the history in Window's defender didn't say anything except that it had scanned.

Thanks for the fixes so far, and the most recent crash files are attached. (not #1, forgot to get the game files for that before starting a new one). I am hoping these help.
Attachments
game.log
Occurred precisely when window's defender popped up, crash #2
(284.17 KiB) Downloaded 37 times
Exception Data.txt
Unhandled Exception Log from Crash #2
(91.03 KiB) Downloaded 40 times
Exception Log.txt
Unhandled Exception Log from Crash #1
(6.44 KiB) Downloaded 38 times
Printer
Crusader
 
Posts: 12
Joined: 05 Mar 2020, 06:25
Has liked: 0 time
Been liked: 0 time
FAF User Name: Printer

Re: Unhandled Exception @ Random Times in Game

Postby Uveso » 30 Mar 2020, 08:46

Sorry, i forgot to tell you, please test the game without any mods.
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: Unhandled Exception @ Random Times in Game

Postby Printer » 04 Apr 2020, 20:02

I've not had as much time to play and test things. Did get some time yesterday and had (2) crashes still; (1) complete Blue Screen Crash and an unhandled exception while viewing replay. I didn't think to record the Blue Screen log information, but here's the exception info that occured during replay. No mods enabled either instance.

Thanks for your help! I'll continue testing.
Attachments
replay.log
(176.82 KiB) Downloaded 27 times
downlords-faf-client.log
(1.73 MiB) Downloaded 31 times
Unhandled Exception Info.txt
(7.21 KiB) Downloaded 26 times
Printer
Crusader
 
Posts: 12
Joined: 05 Mar 2020, 06:25
Has liked: 0 time
Been liked: 0 time
FAF User Name: Printer

Re: Unhandled Exception @ Random Times in Game

Postby Uveso » 05 Apr 2020, 19:41

hello Printer,

i don't see any of the errors i mentioned before in your last log.
Looks like the game files and soundsettings are fixed.

Having a bluescreen means there is maybe no problem with the game but with your windows/drivers or hardware.
Also if the crash occurs when something change the windows priority (windows popup) you could try to switch the fullscreen/windowed mode in the game.

And a last guess:
in case you mave more then 1 RAM memory module installed, unplug them and reinstall the RAM in a different order.
(just to be sure its not a bad RAM module)
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: Unhandled Exception @ Random Times in Game

Postby Printer » 09 Apr 2020, 00:30

Thanks Uveso, I've not seen any errors but will re-configure my RAM just to check. I'll also slowly phase in some of the UI mods I was using to see if anything triggered it.

I'll post again after a week or so if there's no issues.
Printer
Crusader
 
Posts: 12
Joined: 05 Mar 2020, 06:25
Has liked: 0 time
Been liked: 0 time
FAF User Name: Printer

Next

Return to Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest