ModPlug Central

OpenMPT Development (Archive) => Bug Reports => Bug Report Archive => Topic started by: dathmod on July 26, 2009, 09:00:31

Title: 1.17.02.54 Crash after export to MP3 using lame_enc
Post by: dathmod on July 26, 2009, 09:00:31
Full Version:
OpenMPT v1.17.02.52-54 (older unsure)

Has the bug occured in previous versions? If yes, please specify version(s):
52,53,54 (This will happen from 52)


Description of the bug:
When I export a song using the Export to MP3 funcion it does the job and creates correctly the file. The crash occurs if you press playback button an so other things.

How often does it happen?:
Happens all the time :(

How to reproduce (step by step description):
Open or create a song. Export to MP3 using any lame encoder config (bitrate, samplerate...). Then press the play button or change between tabs. Crash will appear.

PD: I dont know if is a problem with OpenMPT, but i use this function to preview my songs instead a WAV (small hard disk) Anyway, a suggestion or something to prevent the breakdown would be welcome. Thanks.
Title: Images of the crash
Post by: dathmod on July 26, 2009, 09:49:30
Two images of the crash, (I have istalled VS2008 to compile the latest code of OpenMPT 5 week ago but at this time I cant do this :()
In the second screenshot appears the VS debug window. May be useful.

http://yfrog.com/5j85373225jx
Title: .54 Crash after export to MP3 using lame_enc
Post by: Saga Musix on July 26, 2009, 10:32:40
Just to be sure, does this mean that it didn't happen with .51 and older versions?
Title: Update: versions of OpenMPT lame_enc bug
Post by: dathmod on July 26, 2009, 13:13:25
I tried with versions 1.17.02.48-54 and these has the bug. The only variation of the bug appearing is only the number of plays, about 2-4 times, but when you change the tab of the program will hang. I am testing with older versions.

EDIT: Versions from .47-54 are more faster than .46 this means by program speed and "creation" of the bug (for .46, play and stop OpenMPT while changing tabs, about 16 times is required)
Title: .54 Crash after export to MP3 using lame_enc
Post by: Saga Musix on August 07, 2009, 07:54:54
It's very strange that I don't get this bug in debug mode, but it definitely appeared using a "normal" MPT build. Hm...

Another interesting thing is that the "latest additions" section in MPT 1.16's file_id.diz says:
Quote- Fixed MP3 bug when exporting multiple times
strange!
Title: .54 Crash after export to MP3 using lame_enc
Post by: Slor on April 05, 2010, 18:28:09
Has this been circled around to at all since the previous posts?  I happened to run into the issue myself today in both 1.17.02.54 and 1.16.0194 (running in 64-bit Win7), and I found this thread while looking for a solution.

I grabbed the latest development source from SVN and have at least been able to trap the error in the debugger, so I can dig a bit deeper and see what I can find if nobody else is working on it.  If someone is, then I'll leave well enough alone for now.

Thanks
James
Title: .54 Crash after export to MP3 using lame_enc
Post by: Saga Musix on April 05, 2010, 19:40:31
I have not really looked into this since then. If you want to do some deeper investigation, by all means, do it! :)
Title: .54 Crash after export to MP3 using lame_enc
Post by: Slor on April 05, 2010, 19:53:39
Will do then.  Looks like a nice little heap corruption from what I've seen so far.
Title: Re: 1.17.02.54 Crash after export to MP3 using lame_enc
Post by: jmkz on April 02, 2011, 22:17:59
Quote from: Jojo on August 07, 2009, 07:54:54
It's very strange that I don't get this bug in debug mode, but it definitely appeared using a "normal" MPT build. Hm...

Another interesting thing is that the "latest additions" section in MPT 1.16's file_id.diz says:
Quote- Fixed MP3 bug when exporting multiple times
strange!

Jojo, can you give me a build of OpenMPT in debug mode? I like to find more about this...
Title: Re: 1.17.02.54 Crash after export to MP3 using lame_enc
Post by: Saga Musix on April 02, 2011, 22:45:47
How would that help? As said, I was not able to reproduce the bug with a debug build. That aside, I think the debug builds made with VS2008 on Win7 are not compatible with Windows XP (or you probably need VS2008 installed).
Title: Re: 1.17.02.54 Crash after export to MP3 using lame_enc
Post by: Saga Musix on June 29, 2011, 23:04:56
How to not fix heap corruptions (but how to find them):

dstBuffer = (LPBYTE)GlobalAllocPtr(GHND, dwDstBufSize + 16384);

I have finally found the cause for this problem (since it also crashes in debug mode now, maybe because I'm using a different OS) and the next version of OpenMPT should no longer crash when exporting to MP3.
Title: Re: [ASSIGNED] 1.17.02.54 Crash after export to MP3 using lame_enc
Post by: jmkz on June 30, 2011, 01:16:21
Nice Jojo! ;)  I have tested many times the test build and it really gone!

PS: cytrek have his own post on bug tracker: http://bugs.openmpt.org/view.php?id=97 (http://bugs.openmpt.org/view.php?id=97)
Title: Re: [ASSIGNED] 1.17.02.54 Crash after export to MP3 using lame_enc
Post by: Saga Musix on June 30, 2011, 19:17:13
I noticed that the current fix might not work with ACM codecs (I wonder if anyone is still using them...) - to be corrected in the next update.
Title: Re: 1.17.02.54 Crash after export to MP3 using lame_enc
Post by: Saga Musix on July 22, 2011, 22:08:21
I'm going to move this to the archive since the original reporter hasn't shown up in a long time and the fix has been confirmed by two other people.