0000641: Crash when changing true color mode

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Enjay
 
 
Posts: 27087
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

0000641: Crash when changing true color mode

Post by Enjay »

https://mantis.zdoom.org/view.php?id=641

Code: Select all

Summary	0000641: Crash when changing true color mode
Description	I can reliably get a crash in 3.0.0 64 bit when changing to software output and switching true color mode off.
Steps To Reproduce	Start game in OpenGL mode (you can start an actual game or just do it from the title screen)
Go to the change rendering output menu
Change hardware acceleration to Doom software
Change Software true color to off
Crash
https://mantis.zdoom.org/file_download. ... 5&type=bug
User avatar
Rachael
Posts: 13955
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: 0000641: Crash when changing true color mode

Post by Rachael »

Figures someone would find this bug, and of all people you would be the one. :)
User avatar
Rachael
Posts: 13955
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: 0000641: Crash when changing true color mode

Post by Rachael »

User avatar
Chris
Posts: 2978
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: 0000641: Crash when changing true color mode

Post by Chris »

The crash still occurs even with this commit. There's problems when you go the other way too, BTW. If you start with software rendering, change to opengl, then toggle the truecolor option, the window seems to reinitialize using opengl rendering, but if you try to start a game it's all messed up with only the HUD being drawn.

gzdoom-crash.7z (7,341 bytes)
User avatar
Enjay
 
 
Posts: 27087
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: 0000641: Crash when changing true color mode

Post by Enjay »

Rachael wrote:Figures someone would find this bug, and of all people you would be the one. :)
Federal Network Newsreel announcer (Starship troopers) wrote:Every day, Federal scientists are looking for new ways to kill bugs.
I'm doing my part! ;)
User avatar
leodoom85
Posts: 684
Joined: Sun Sep 14, 2014 6:40 pm
Location: Earth-shaking Chile

Re: 0000641: Crash when changing true color mode

Post by leodoom85 »

Also, that bug works in the 32-bit version but probably it was fixed too :)
User avatar
Rachael
Posts: 13955
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: 0000641: Crash when changing true color mode

Post by Rachael »

Reopened this one, then - I will address it when I have some extra time. Ultimately, maybe it might be better to compare "vid_renderer" and "currentrenderer" and latch vid_renderer before changing the mode.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: 0000641: Crash when changing true color mode

Post by Graf Zahl »

Once this is fixed I'll do a new release.
User avatar
Rachael
Posts: 13955
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: 0000641: Crash when changing true color mode

Post by Rachael »

I would advise against that. This fix definitely needs to be tested.

I basically took out any reference to "vid_renderer" that was not directly in the hardware code. So far it seems to be working.

Addressed in this commit.
User avatar
leodoom85
Posts: 684
Joined: Sun Sep 14, 2014 6:40 pm
Location: Earth-shaking Chile

Re: 0000641: Crash when changing true color mode

Post by leodoom85 »

You can check this one better...at the end of the video, the crash happens. This one's the 32-bit version
User avatar
Enjay
 
 
Posts: 27087
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: 0000641: Crash when changing true color mode

Post by Enjay »

Rachael wrote:I would advise against that. This fix definitely needs to be tested.
For what it's worth, I've just made myself a build with the fix and changed the options a dozen or more times: no crash for me.
User avatar
Rachael
Posts: 13955
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: 0000641: Crash when changing true color mode

Post by Rachael »

Technically, this bug is actually very old, it's just that having a menu on the vid_renderer and an option that forces a video reset right next to it just brought it to light. You could reproduce it in ancient versions of GZDoom simply by changing vid_renderer in the console and then selecting a new video mode.

Enjay wrote:For what it's worth, I've just made myself a build with the fix and changed the options a dozen or more times: no crash for me.
Thank you! :) - I suppose if no one else reports any problems with this, you should be clear to do a release, Graf. I'd wait for the CI's to finish building, first, though, just to be sure.
Post Reply

Return to “Closed Bugs [GZDoom]”