Strange Crash, help!
Posted: Mon Jul 16, 2007 3:47 pm
I've been working on this one game on and off for a few years now in Revolution. It's finally nearing completion and being ready to sell, except recently I upgraded/started using 2.8.1 and there has been some major crashes with the game. I was able to nail it down to a specific stack, let me explain it here:
The game uses what I call MODS for 90% of its graphics and alittle data (the landscape tiles, objects, opponents and spells). I created a mod editor, a stack, to import images and a text field to store the data (stats for opponents and spells..) and save them as another stack (which is what the MOD file is). On startup my game loads up the game.ini file and reads what mods it should load and then loads them up before presenting the title screen. After I switched to 2.8.1 (I was on 2.7 before that) and before I tested the game I added some new opponents and objects. When I loaded up the game I went into the editor which creates the levels and the entire rev environment crashed with a windows dialog informing me. I tried again, thinking it was a one-off thing, but alas it happened again. I then tried to play a level and before it started it crashed. After i settled down (a few hours) I decided it could have been the additions I made. I was able to get rid of an opponent (images and text) and some objects (just images) and it worked! I thought to try and add them again, maybe some bad write issue? But the exact same crash happened. I then added them to a new mod file, and loaded that up, thinking two stacks might help... Nope!
Next, I tried to compile the stack and run it as an exe. This worked! No crashes.. So for the last couple of weeks, I've been doing the last few code additions without the offending mod loaded, and when its time to create or test a level I compile and away I go. A few days ago I again added in some final opponents and again the crash occured.. This time I noticed I had doubled up on opponents and deleted the duplicate in the 2nd mod file (this time I just deleted the images, leaving the textdata intact) and the crash went away (only in the compiled version, not running the actual stack in rev). So its definately the images that are causing it. The mod editor randomizes an ID for the image, ensuring its not in use before validating it as well, each type (opponent, spell) had a differnet ID range. The first, Opponents, is from 10,000,000-19,999,999. The last is Objects, from 40,000,000-49,999,999. Could these be an issue perhaps?
I did try to use the 2.7 release and without any luck, the same thing happened. I'm not sure if 2.8.1 wrote some offending information to the stacks, or if its a bug that didn't show itself until after hundreds of images were imported. Any additional information I should include?
I wish to continue supporting the game after release, and also have the tools needed to create new mods released. This of course will prove a problem with the crashes happening. Not to mention I had planned an expansion pack. I've got no problem in supplying the rev team with my game/stacks, but I am worried I might have to postpone the game until a fix is released (and who knows how long that would take).. I've been around long enough to hear the complaints of bugs going unfixed even with supposed clear details of repeating it, and felt myself lucky that I've never really come across any bugs.... But now that I am staring at a major one I fear it will be ignored.
Screenshots
Crash Dialog
Crash Dialog - Data Report
Crash Dialog - Data Report Contents
I was unable to select all and copy the contents, is there a way to do it? and would it be helpful?
Basic System Info
Windows XP - Service Pack 2 (Latest hotfixes)
1.5GB Ram DDR
1x320gb Sata/2, 1x80gb IDE
Athlon 3700+ Socket 939
Geforce 7900GS PCI-E 16x (latest drivers, tried a few different ones as well)
Sound Blaster Audigy
The game uses what I call MODS for 90% of its graphics and alittle data (the landscape tiles, objects, opponents and spells). I created a mod editor, a stack, to import images and a text field to store the data (stats for opponents and spells..) and save them as another stack (which is what the MOD file is). On startup my game loads up the game.ini file and reads what mods it should load and then loads them up before presenting the title screen. After I switched to 2.8.1 (I was on 2.7 before that) and before I tested the game I added some new opponents and objects. When I loaded up the game I went into the editor which creates the levels and the entire rev environment crashed with a windows dialog informing me. I tried again, thinking it was a one-off thing, but alas it happened again. I then tried to play a level and before it started it crashed. After i settled down (a few hours) I decided it could have been the additions I made. I was able to get rid of an opponent (images and text) and some objects (just images) and it worked! I thought to try and add them again, maybe some bad write issue? But the exact same crash happened. I then added them to a new mod file, and loaded that up, thinking two stacks might help... Nope!
Next, I tried to compile the stack and run it as an exe. This worked! No crashes.. So for the last couple of weeks, I've been doing the last few code additions without the offending mod loaded, and when its time to create or test a level I compile and away I go. A few days ago I again added in some final opponents and again the crash occured.. This time I noticed I had doubled up on opponents and deleted the duplicate in the 2nd mod file (this time I just deleted the images, leaving the textdata intact) and the crash went away (only in the compiled version, not running the actual stack in rev). So its definately the images that are causing it. The mod editor randomizes an ID for the image, ensuring its not in use before validating it as well, each type (opponent, spell) had a differnet ID range. The first, Opponents, is from 10,000,000-19,999,999. The last is Objects, from 40,000,000-49,999,999. Could these be an issue perhaps?
I did try to use the 2.7 release and without any luck, the same thing happened. I'm not sure if 2.8.1 wrote some offending information to the stacks, or if its a bug that didn't show itself until after hundreds of images were imported. Any additional information I should include?
I wish to continue supporting the game after release, and also have the tools needed to create new mods released. This of course will prove a problem with the crashes happening. Not to mention I had planned an expansion pack. I've got no problem in supplying the rev team with my game/stacks, but I am worried I might have to postpone the game until a fix is released (and who knows how long that would take).. I've been around long enough to hear the complaints of bugs going unfixed even with supposed clear details of repeating it, and felt myself lucky that I've never really come across any bugs.... But now that I am staring at a major one I fear it will be ignored.
Screenshots
Crash Dialog
Crash Dialog - Data Report
Crash Dialog - Data Report Contents
I was unable to select all and copy the contents, is there a way to do it? and would it be helpful?
Basic System Info
Windows XP - Service Pack 2 (Latest hotfixes)
1.5GB Ram DDR
1x320gb Sata/2, 1x80gb IDE
Athlon 3700+ Socket 939
Geforce 7900GS PCI-E 16x (latest drivers, tried a few different ones as well)
Sound Blaster Audigy