Random crashes when flipping elevator switch

Advanced Wolfenstein 3D source port based upon Wolf4SDL and ZDoom.
[Home] [Download] [HG builds (Win)] [HG builds (Mac)] [Wiki] [Repo]

Moderator: Blzut3

filipetolhuizen
Posts: 76
Joined: Wed Jun 25, 2014 1:08

Random crashes when flipping elevator switch

Post 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.
Blzut3
Developer
Developer
Posts: 491
Joined: Sun Jan 24, 2010 22:21

Re: Random crashes when flipping elevator switch

Post 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.
filipetolhuizen
Posts: 76
Joined: Wed Jun 25, 2014 1:08

Re: Random crashes when flipping elevator switch

Post 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.
Blzut3
Developer
Developer
Posts: 491
Joined: Sun Jan 24, 2010 22:21

Re: Random crashes when flipping elevator switch

Post by Blzut3 »

Good news is I seem to have reproduced the issue in testing today.
filipetolhuizen
Posts: 76
Joined: Wed Jun 25, 2014 1:08

Re: Random crashes when flipping elevator switch

Post by filipetolhuizen »

That's excelent news. Any clues on what's causing it?
Blzut3
Developer
Developer
Posts: 491
Joined: Sun Jan 24, 2010 22:21

Re: Random crashes when flipping elevator switch

Post 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.
filipetolhuizen
Posts: 76
Joined: Wed Jun 25, 2014 1:08

Re: Random crashes when flipping elevator switch

Post by filipetolhuizen »

A quicker way I found to reproduce it with some tries is to load E6L1 with noclip and use the elevator.
Blzut3
Developer
Developer
Posts: 491
Joined: Sun Jan 24, 2010 22:21

Re: Random crashes when flipping elevator switch

Post 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.
filipetolhuizen
Posts: 76
Joined: Wed Jun 25, 2014 1:08

Re: Random crashes when flipping elevator switch

Post by filipetolhuizen »

I'll try your latest build to see how it goes. Thanks again.
EDIT: Seems to be working fine now.
Post Reply

Return to “ECWolf”