Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: thecatamites on Sun 25/10/2009 02:39:18

Title: occasional crashing
Post by: thecatamites on Sun 25/10/2009 02:39:18
Hi,
When running a game I'm making I'll occasionally (about half the time) get an error message when I try to either close the window (through the top right X button, not the menu) or change room (via a hotspot click). Sometimes I can do either of these things with no problem and I'm trying to find out what the variable is but no luck so far. Here's the error report:

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x77B21A56 ; program pointer is +6, ACI version 3.02.1025, gtags (3,119)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.



Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.

An error file CrashInfo.dmp has been created. You may be asked to upload this file when reporting this problem on the AGS Forums. (code 0)
---------------------------
OK  
---------------------------


I'm using an edited version of the default game run in 640x400 res, in AGS ver. 3.0.2.44 . I can upload the crashinfo file if necessary.


UPDATE: It looks like just before the problem occurs a sort of broken pink-and-blue line appears at the very top of the screen. Before it comes up there's apparantly no problem, after it does attempting to leave the room causes the game to crash. The two times I've noticed it are at the end of a 'cutscene' conversation and just as you try to interact with one of the characters after it. I haven't done anything strange with views or sprites as far as I know but I'm gonna keep looking.

UPDATE #2: Looked around a little and saw that some similar problems were apparantly solved by upgrading the version of AGS so I'm trying that now  ;D

UPDATE #3: Upgraded to the most recent version, now I get the same error message but without the small graphical glitch.
Title: Re: occasional crashing
Post by: thecatamites on Sun 25/10/2009 11:16:27
Anyone? Sorry to bump but this is for a contest whose deadline is within the next few days, so if I have to actually remake the whole game I'd rather know as soon as possible!
Title: Re: occasional crashing
Post by: Pumaman on Sun 25/10/2009 12:05:03
You say you still get the crash with 3.1.2 SP1?

Could you upload the crash dump file from when it happened with this version?
Title: Re: occasional crashing
Post by: thecatamites on Sun 25/10/2009 12:13:24
Here it is http://uploadbox.com/files/636dbf22a5/ (http://uploadbox.com/files/636dbf22a5/)

I'm pretty sure it has something to do with how much time is spent in the room, as it generally occurs when I go through the dialogue at normal pace and not when I skip through it.

Thanks!
Title: Re: occasional crashing
Post by: Pumaman on Sun 25/10/2009 12:38:14
Thanks for posting the crash dump... I can see where it is crashing but I'm not sure why.

Is it one particular room where this happens?

Would you mind zipping up and uploading the game source code? (PM me the link if you don't want it public)
Title: Re: occasional crashing
Post by: thecatamites on Sun 25/10/2009 13:15:02
http://www.mediafire.com/?sharekey=59ecb6a64be0086fe62ea590dc5e5dbbe04e75f6e8ebb871 (http://www.mediafire.com/?sharekey=59ecb6a64be0086fe62ea590dc5e5dbbe04e75f6e8ebb871)

Here's the source code, the crash happens in Room 3... Usually either directly after the 'room first load' scene or after interacting with the cFrankie character in the room. I haven't found it in any other room so far, and if I leave and return then the crash doesn't seem to happen either.
Title: Re: occasional crashing
Post by: Pumaman on Sun 25/10/2009 14:11:09
Thanks for uploading.

It looks like it might be a problem with the MP3 decoder ... could you try converting the music to OGG (or just remove the music temporarily) and see if you still get the problem?
Title: Re: occasional crashing
Post by: thecatamites on Sun 25/10/2009 14:48:31
I'm running it without music and not getting any crashes now! I'll convert the mp3s to ogg and see if that works too but yeah that looks like it's done it. Thanks a lot! ;D
Title: Re: occasional crashing
Post by: Pumaman on Sun 25/10/2009 16:44:11
Good to hear!

The MP3 file for that room is probably slightly corrupt, so it still sounds ok but is causing the player to crash. You could try re-encoding it, but the better option is just to switch to using OGG for your audio :)