Page 1 of 1
Random crashes when flipping elevator switch
Posted: Mon Jul 25, 2022 1:01
by filipetolhuizen
Hello,
I'm using the latest build for Winx64 (from July, 23) and I'm getting some random frequent crashes at level exits (not a certain one). I'm on Win7 64 bits and I saw this happening with Wolf3d 1.4 and SOD. Haven't tested with other versions yet. Any further information that would help to identify the problem? Thanks.
Re: Random crashes when flipping elevator switch
Posted: Mon Jul 25, 2022 1:07
by Blzut3
Yeah the best thing you can do is to try the previous versions and see if you can find which build starts crashing. I haven't run into crashes exiting levels myself, but some of that code did get touched recently so it's not implausible that a recent change is unstable.
Re: Random crashes when flipping elevator switch
Posted: Tue Jul 26, 2022 4:22
by filipetolhuizen
The worst thing about it is that is completely random. I could not reproduce the ones I got earlier.
EDIT: I have been able to reproduce and it crashes on about half of the attempts. Most of the times the elevator switch sound keeps playing on loop.
Re: Random crashes when flipping elevator switch
Posted: Mon Aug 22, 2022 2:45
by Blzut3
Good news is I seem to have reproduced the issue in testing today.
Re: Random crashes when flipping elevator switch
Posted: Mon Aug 29, 2022 0:46
by filipetolhuizen
That's excelent news. Any clues on what's causing it?
Re: Random crashes when flipping elevator switch
Posted: Mon Aug 29, 2022 1:54
by Blzut3
Sadly, upon trying to debug it today the issue disappeared so I have no clue (unless I happened to fix it in the process of fixing the Windows build). Can seemingly run through an entire episode worth of exits without a crash now.
Re: Random crashes when flipping elevator switch
Posted: Sat Sep 03, 2022 18:06
by filipetolhuizen
A quicker way I found to reproduce it with some tries is to load E6L1 with noclip and use the elevator.
Re: Random crashes when flipping elevator switch
Posted: Fri Sep 23, 2022 4:36
by Blzut3
The issue seems to be a crash in the sound code, so in theory with sound disabled it should not crash.
I can, however, only seem to be able to reproduce the crash in multiplayer with other people physically present. I can exit levels all day by myself even using three different computers in a net game just like the test scenario.
The mutexes look fine, but it seems like it must be some kind of race condition as TUniquePtr and FString appear to be double freeing.
Re: Random crashes when flipping elevator switch
Posted: Sun Sep 25, 2022 1:17
by filipetolhuizen
I'll try your latest build to see how it goes. Thanks again.
EDIT: Seems to be working fine now.