Crash Upon Exiting Game Build

Hey,

almost everytime when i close my game with application.quit() it crashes before closing.

When i have a look at the error it states the following (see below)

Everytime the first non SYSTEM32 dll is the fmodstudio.dll. Previously the steam audio phonon dll was at last position. but i removed it because i dont need it anymore. so it looks like this now.

Any known issues or advice on how to fix this?

Crash!!!

“Some long trace here”

S:\Builds\Unity_6_2\Data\Plugins\x86_64\fmodstudio.dll:fmodstudio.dll (00007FF888280000), size: 3461120 (result: 0), SymType: ‘-deferred-’, PDB: ‘’, fileVersion: 0.2.2.30C:\Windows\System32\MMDevApi.dll:MMDevApi.dll (00007FF93D790000), size: 647168 (result: 0), SymType: ‘-deferred-’, PDB: ‘’, fileVersion: 10.0.22621.4111C:\Windows\SYSTEM32\AUDIOSES.DLL:AUDIOSES.DLL (00007FF93F540000), size: 2019328 (result: 0), SymType: ‘-deferred-’, PDB: ‘’, fileVersion: 10.0.22621.4111C:\Windows\SYSTEM32\resourcepolicyclient.dll:resourcepolicyclient.dll (00007FF949F10000), size: 86016 (result: 0), SymType: ‘-deferred-’, PDB: ‘’, fileVersion: 10.0.22621.3527C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_adf5a840df867035\nvrtum64.dll:nvrtum64.dll (00007FF8AE760000), size: 78561280 (result: 0), SymType: ‘-deferred-’, PDB: ‘’, fileVersion: 32.0.15.6614C:\Windows\SYSTEM32\CoreUIComponents.dll:CoreUIComponents.dll (00007FF945160000), size: 3592192 (result: 0), SymType: ‘-deferred-’, PDB: ‘’, fileVersion: 10.0.22621.3672C:\Windows\SYSTEM32\SspiCli.dll:SspiCli.dll (00007FF94B7A0000), size: 274432 (result: 0), SymType: ‘-deferred-’, PDB: ‘’, fileVersion: 10.0.22621.3810

========== OUTPUTTING STACK TRACE ==================

“Some long trace here”

S:\Builds\Unity_6_2\Data\Plugins\x86_64\fmodstudio.dll:fmodstudio.dll (00007FF888280000), size: 3461120 (result: 0), SymType: ‘-exported-’, PDB: ‘S:\Builds\Unity_6_2\Data\Plugins\x86_64\fmodstudio.dll’, fileVersion: 0.2.2.30C:\Windows\System32\MMDevApi.dll:MMDevApi.dll (00007FF93D790000), size: 647168 (result: 0), SymType: ‘-exported-’, PDB: ‘C:\Windows\System32\MMDevApi.dll’, fileVersion: 10.0.22621.4111C:\Windows\SYSTEM32\AUDIOSES.DLL:AUDIOSES.DLL (00007FF93F540000), size: 2019328 (result: 0), SymType: ‘-exported-’, PDB: ‘C:\Windows\SYSTEM32\AUDIOSES.DLL’, fileVersion: 10.0.22621.4111C:\Windows\SYSTEM32\resourcepolicyclient.dll:resourcepolicyclient.dll (00007FF949F10000), size: 86016 (result: 0), SymType: ‘-exported-’, PDB: ‘C:\Windows\SYSTEM32\resourcepolicyclient.dll’, fileVersion: 10.0.22621.3527C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_adf5a840df867035\nvrtum64.dll:nvrtum64.dll (00007FF8AE760000), size: 78561280 (result: 0), SymType: ‘-exported-’, PDB: ‘C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_adf5a840df867035\nvrtum64.dll’, fileVersion: 32.0.15.6614C:\Windows\SYSTEM32\CoreUIComponents.dll:CoreUIComponents.dll (00007FF945160000), size: 3592192 (result: 0), SymType: ‘-exported-’, PDB: ‘C:\Windows\SYSTEM32\CoreUIComponents.dll’, fileVersion: 10.0.22621.3672C:\Windows\SYSTEM32\SspiCli.dll:SspiCli.dll (00007FF94B7A0000), size: 274432 (result: 0), SymType: ‘-exported-’, PDB: ‘C:\Windows\SYSTEM32\SspiCli.dll’, fileVersion: 10.0.22621.3810ERROR: SymGetSymFromAddr64, GetLastError: ‘Es wurde versucht, auf eine unzulässige Adresse zuzugreifen.’ (Address: 00007FF8A3F769BE)0x00007FF8A3F769BE (UnityPlayer) (function-name not available)0x00007FF94E14257D (KERNEL32) BaseThreadInitThunk0x00007FF94F18AF08 (ntdll) RtlUserThreadStart

Hi,

Thank you for sharing the information and stack trace!

I tested with Unity 6000.2.0b12 and FMOD Unity integration 2.02.30 in a game build but was unable to reproduce the issue.

Would it be possible to share a code snippet showing how you’re calling Application.Quit()?

It would also be helpful if you could provide more details on how to reproduce the crash. For example, any particular scene setup, timing, or audio activity happening when the game exits.

Hey thank you for your reply.

After removing the phonon.dll the crashes reduced by 50%.

Then i completely removed fmod from my project and reimported it.

Now i tried quitting 10 times and got no crash. So i suppose something corrupted the dlls which is weird because i updated fmod 1 day before the tests and recopied them but maybe my package download was already corrupt.

Anyway if the crashes come up again ill keep you updated.

I close the game like this. Its in a ui callback function when i click on a button.

1 Like

Glad to hear it’s stable for now and thank you for sharing your solution here!

If the issue comes back, feel free to let me know. I’d be happy to take another look and help further.