ac-custom-shaders-patch / acc-extension-config

Configuration files for Assetto Corsa Custom Shaders Patch
226 stars 221 forks source link

[Proton/Linux] CSP crashes when hitting the speed traps on servers with that plugin enabled #299

Open blah238 opened 2 years ago

blah238 commented 2 years ago

When running AC/CSP (1.7.7/1.7.8) under Proton (all versions), if you hit a speed trap at 100+ KPH, the game crashes. Speed traps are specific to SRP servers running the PatreonSpeedTrapPlugin. It is supposed to flash a red light and take a screenshot from the speed trap camera, but this crashes on Proton.

On Windows the custom_shaders_patch.log has these messages when you hit a speed trap:

2022-07-16T03:54:46:808 [08368] | INFO  | [Lua: server_script] Setup light
2022-07-16T03:54:46:808 [08368] | INFO  | [Lua: server_script] set mesh visible
2022-07-16T03:54:46:809 [08368] | INFO  | [Lua: server_script] Take photo
2022-07-16T03:54:46:813 [08368] | DEBUG | New instance of struct cui::imgui_offscreen created
2022-07-16T03:54:46:813 [08368] | INFO  | [Lua: server_script] drawing canvas
2022-07-16T03:54:46:813 [08368] | INFO  | [Lua: server_script] sending image

But on Linux a crash occurs and custom_shaders_patch.log file contains this instead:

2022-07-16T17:25:19:920 [00512] | INFO  | [Lua: server_script] Setup light
2022-07-16T17:25:19:920 [00512] | INFO  | [Lua: server_script] set mesh visible
2022-07-16T17:25:19:920 [00512] | INFO  | [Lua: server_script] Take photo
2022-07-16T17:25:19:927 [00512] | DEBUG | New instance of struct cui::imgui_offscreen created
2022-07-16T17:25:20:986 [00512] | ERROR | Crash! Trying to generate nice dump: 000000000011E000
2022-07-16T17:25:20:986 [00512] | INFO  | Create dump at: C:\users\steamuser\Temp\ue4.0

There is also this message in CM:

000000000141A412 (dwrite): (filename not available): lj_malloc
00000000011277C9 (dwrite): (filename not available): lj_setWingGain__cphys
00000000014F7859 (dwrite): (filename not available): lj_draw_car_icon__ui
00000000019657AC (dwrite): (filename not available): wscanf_s
00000000019358B2 (dwrite): (filename not available): wscanf_s
0000000001921E1A (dwrite): (filename not available): GFSDK_SSAO_GetVersion
000000000174776D (dwrite): (filename not available): lj_getGapBetweenCars
000000000174F47E (dwrite): (filename not available): lj_getGapBetweenCars
000000000174B03A (dwrite): (filename not available): lj_getGapBetweenCars
000000000174AF38 (dwrite): (filename not available): lj_getGapBetweenCars
000000000131A213 (dwrite): (filename not available): lj_set_corrections
00000000015BDEF5 (dwrite): (filename not available): lj_cshader_release
AC\game.cpp (261): Game::update
0000000001563527 (dwrite): (filename not available): lj_unloadImage__ui
AC\game.cpp (261): Game::update
0000000001563527 (dwrite): (filename not available): lj_unloadImage__ui
AC\game.cpp (112): Game::onIdle
AC\game.cpp (210): Game::run
AC\acs.cpp (477): wWinMain
f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c (618): __tmainCRTStartup
000000007B62C9E9 (kernel32): (filename not available): BaseThreadInitThunk
000000017005F507 (ntdll): (filename not available): RtlUserThreadStart

Along with this message box: image

Let me know if I can provide any more info. Thanks!

Trava715 commented 2 years ago

Does this happen when any server script is executed or the speedtrap one specifically?

blah238 commented 2 years ago

Does this happen when any server script is executed or the speedtrap one specifically?

I am able to use the teleport function and race challenge leaderboard just fine, assuming those are server scripts. The behavior (only crashes when passing a speed trap at 100+ KPH) and logs seem to pin it on the speed trap script specifically.