Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > Bug Reports & Feature Requests > Crashed when loading file while playing Owner: Dwedit New post
Page 1 of 1 Sort:  
Crashed when loading file while playing Posted: 2011-07-06 07:09 Reply | Quote
Dwedit

Avatar

Member for: 4972 days
Location: Chicago
Status: Offline

#19493
I just had Famitracker freeze (stuttering audio buffer) after loading a file while playing another.
Then I tried it again several times, and it didn't crash.

Gotta love those intermittent bugs.

Posted: 2011-07-13 07:20  (Last Edited: 2011-07-13 22:36) Reply | Quote
Dwedit

Avatar

Member for: 4972 days
Location: Chicago
Status: Offline

#19881
It just happened again. I was playing a song that used the DMC channel, if that matters.

The crash happened after the Open File dialog was confirmed.

Edit: And it just did it AGAIN. This is really annoying.

Posted: 2011-07-14 07:21 Reply | Quote
jrlepage
Moderator

Avatar

Member for: 4982 days
Location: Canada
Status: Offline

#19934
Does the program record any minidump file after the crash?

Posted: 2011-07-15 01:16 Reply | Quote
Dwedit

Avatar

Member for: 4972 days
Location: Chicago
Status: Offline

#19948
It actually freezes, not a crash. Sorry for incorrect terminology.

Posted: 2011-07-15 02:51 Reply | Quote
rainwarrior

Avatar

Member for: 4150 days
Location: Canada
Status: Offline

#19950
Telling us the version of FamiTracker you are using might help; also maybe posting the file that makes it crash.

Posted: 2011-07-15 03:02 Reply | Quote
Dwedit

Avatar

Member for: 4972 days
Location: Chicago
Status: Offline

#19952
It's Version 0.3.7 beta 0. The crash happens sporadically, and it doesn't really matter which file is opened.

Next time it happens, I'll try to attach a debugger or something.

Posted: 2011-08-13 04:13 Reply | Quote
Dwedit

Avatar

Member for: 4972 days
Location: Chicago
Status: Offline

#21463
It just crashed again, looping the audio buffer.

As for which code is actually getting executed, it varies...

On one trace, I saw this loop:
(lead spaces indicate function calls, decrease of indent indicates returning from a function call)

00431F45
_0043116A
__004694A0
__00477028
_0043117A
00431F83
_00468AA0
00431F8C
_00457651
_0045763A
__GDI32.SetBkColor
__GDI32.ExtTextOutA
0043200E
jumps back to 00431F45

Of course, these hex addresses are nearly useless without debug information (labels), but those GDI32 calls might help to identify which function it's executing.

The actual EXE is the publicly available build I already mentioned above.

I can also see that it calls PeekMessageA a lot.

Oh well, I can't produce anything worthwhile here. Maybe I need to run a debug build.

Posted: 2011-08-15 00:14 Reply | Quote
jsr
Administrator

Avatar

Member for: 5924 days
Location: Sweden
Status: Offline

#21636
Actually this might be helpful, because I got something similar and tried to fix it some months ago. I don't remember the details but I think these API calls was close to the bug, so hopefully that won't appear any more.

PeekMessage is called in the sound generator loop.

_______________________
Programmer and developer
Page 1 of 1 Sort: