Custom music (ogg or mp3) causes game to freeze upon closing

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
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Custom music (ogg or mp3) causes game to freeze upon closing

Post by Ichor »

For a while now, there have been times when I want to close the game, and instead of actually closing, it simply sits there after selecting 'yes' to quit. However, it does not if you use the X in the top right. After a fair bit of testing, I have discovered that it will only happen if a custom music that is not a midi is used at any time. If it switches to a midi by SetMusic or changing maps, it will still freeze up. Here is a map for Doom 2 with three switches that plays various versions of D_E1M1. The left switch is for mp3, the right is for ogg and the center one is the midi. Hit the center switch and then quit the game. It will quit normally. Hit the left or right ones and then quit. It will freeze up. Hit the left or right and then the center and it will still freeze. Finally, hit the left or right then IDCLEV to any other map and then quit. It will freeze.

I have tested it with older versions such as 4.3.1 and that one works fine.

The zip file was a little too big to put here (about 3 MB), so here's a link to it:

musictest.zip
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Custom music (ogg or mp3) causes game to freeze upon clo

Post by _mental_ »

There are only two switches in the provided map. Most likely, this is irrelevant as the idea was to play mp3 and ogg music.
The problem is, I cannot reproduce the freeze on exit. Could you please post your config file?
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Custom music (ogg or mp3) causes game to freeze upon clo

Post by Ichor »

Strange, I thought there were three in that. The third switch would have been for changing it to midi, which I don't think you really need for testing. In any case, here's the ini file.

This also happens if I delete my ini file and start with a default one. Latest version I tested it with is 4.5pre-128.
Attachments
gzdoom-Owner.ini
(65.21 KiB) Downloaded 23 times
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Custom music (ogg or mp3) causes game to freeze upon clo

Post by _mental_ »

Works fine for me with your config file.
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Custom music (ogg or mp3) causes game to freeze upon clo

Post by Ichor »

By the way, whenever I download a new version and put it into a brand new directory, it says that it's missing zmusic.dll and won't start at all. I had to use an older one that was included in the file. It's likely that this is the problem, so where do I get the latest version of zmusic.dll? Also, it should be included in the .7z file.
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Custom music (ogg or mp3) causes game to freeze upon clo

Post by _mental_ »

Use zmusic.dll from the latest release which is 4.4.2 at the moment. Have no idea why it doesn't packaged with devbuilds.
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Custom music (ogg or mp3) causes game to freeze upon clo

Post by Ichor »

No, that still didn't fix the problem. Though now that I have the file, I could do some more testing.

First, I made a brand new folder and put in doom2.wad and musictest.wad (the one with 3 switches that I thought I uploaded last time, heh)
Second, I downloaded gzdoom 4.42 and tested it. It shuts down normally.
Third, I downloaded all of the versions, starting back from the earliest one possible, which was gzdoom 4.5pre-84, and I discovered something.

First of all, the zmusic.dll file is included on all of the x64 versions, but not the x86. If I try to use the zmusic.dll from the x64 for the x86, it won't work (this isn't any bug of course).
Second, this only occurs in the x86 versions. I used the zmusic.dll from 4.42 in all of my testing of the x86 versions, and all of them had this problem, but the x64 versions with their included zmusic.dll shut down normally.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3199
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: Custom music (ogg or mp3) causes game to freeze upon clo

Post by drfrag »

This is not a GZDoom bug, it's a buggy OpenAL 32 bit dll in devbuilds. Replace the dll with 1.19 from releases or with my custom VS 1.20 OpenAL32.dll (which i don't use myself).
https://github.com/kcat/openal-soft/fil ... enAL32.zip
Post Reply

Return to “Closed Bugs [GZDoom]”