Amulets and Armor Forum

Amulets and Armor => Bug Reports => Topic started by: Beardy on April 03, 2015, 09:05:46 PM

Title: End trigger crashes on various levels
Post by: Beardy on April 03, 2015, 09:05:46 PM
So far I've encountered crashes at the end of a level on the following levels:

2-1
2-2
3-3
3-4
Title: Re: End trigger crashes on various levels
Post by: Faremmy on April 04, 2015, 09:50:57 AM
Have you tried re-installing the game and/or play with another character?
Title: Re: End trigger crashes on various levels
Post by: LysleShields on April 04, 2015, 12:32:18 PM
Just to be clear, what version of the game are you running?
Title: Re: End trigger crashes on various levels
Post by: Diodon on April 04, 2015, 01:19:34 PM
I'm experiencing this bug consistently on map 2-1 and cannot advance past this level.  I had it happen once while ending one of the 1-? maps and another crash midway through the 3-1 map.

I'm running on Windows 8.1 Pro x64.
I installed from AAClassicV1.04_Windows.zip
Title: Re: End trigger crashes on various levels
Post by: LysleShields on April 04, 2015, 05:59:11 PM
Please attach your character file here and let me see if I can recreate the problem.
Title: Re: End trigger crashes on various levels
Post by: Diodon on April 04, 2015, 07:44:31 PM
"Cannot access attachments upload path!" upon submission.  Both from C:\Games\Amulets & Armor and from trying to attach it from the Desktop.

Edit: From IE as well as Firefox.
Title: Re: End trigger crashes on various levels
Post by: LysleShields on April 04, 2015, 08:14:27 PM
That's strange.  Maybe try emailing it to support@amuletsandarmor.com ?  I'm not sure if the web browser is the problem or if it is something about the file itself.  Thanks for trying again.
Title: Re: End trigger crashes on various levels
Post by: Beardy on April 05, 2015, 12:29:50 AM
Have you tried re-installing the game and/or play with another character?

i've tried on both the windows port and the dosbox version

Just to be clear, what version of the game are you running?

1.04

Also the crash on Elmore's (3-4) happens whenever I grab the key and try to exit with it. I've tried both killing all the enemies and running past them, but the key is always the consistent factor for the crash. Probably the same for the other levels.
Title: Re: End trigger crashes on various levels
Post by: LysleShields on April 05, 2015, 11:50:01 AM
I took your character (mage) through the Knights of Andrew and did not have any problems.  As for leaving a level with the key, I have not done that, but I would not be surprised if that is a problem.

Are you doing anything special when leaving the levels 2-1 and 2-2?

I usually play with the Windows Classic v1.04 version.

I've even downloaded it again and make sure I didn't patch it or change out files.  No differences from the download.

Looks like you have played it a bunch.  Do the crashes occur after playing the game a long time?  Might have a memory leak that needs fixing.
Title: Re: End trigger crashes on various levels
Post by: Diodon on April 05, 2015, 02:05:59 PM
Just re-installed / re-booted.  Copied my saves to the fresh install and had no problem finishing 2-1 & 2-2 but then crashed finishing 2-3 (which is a bummer cause that new wand was NICE!)

Edit: I just re-attempted and made it through 2-3.  It seems to be intermittent when it occurs and it doesn't necessarily occur after playing for a long time.  Many of the times I caused the crash were simply loading the game, playing one map, and crashing at the end.
Title: Re: End trigger crashes on various levels
Post by: Beardy on April 05, 2015, 05:12:28 PM
I took your character (mage) through the Knights of Andrew and did not have any problems.  As for leaving a level with the key, I have not done that, but I would not be surprised if that is a problem.

Are you doing anything special when leaving the levels 2-1 and 2-2?

I usually play with the Windows Classic v1.04 version.

I've even downloaded it again and make sure I didn't patch it or change out files.  No differences from the download.

Looks like you have played it a bunch.  Do the crashes occur after playing the game a long time?  Might have a memory leak that needs fixing.

For 2-1 and 2-2 I've been both killing all enemies and not killing enemies while rushing to the exit. For both those levels it just randomly decides to crash on exit. It might be some item being picked up that does it, but at the same time it might just be a random bug in the code that fails to trigger a specific action.

Also the crashes occur no matter if I play 1-2 hours or 5 minutes.
Title: Re: End trigger crashes on various levels
Post by: LysleShields on April 05, 2015, 05:26:24 PM
I'm not thinking.  Please send me the file "stdout.txt" after a crash has occurred.  It might tell me what the problem is.  Again, send to support@amuletsandarmor.com .
Title: Re: End trigger crashes on various levels
Post by: Diodon on April 06, 2015, 11:34:40 PM
I haven't been crashing lately and I've just completed 4-2.  I did have one crash a while ago but I didn't see anything in stdout.txt apart from the stock message:

Ahhh ... plenty of memory to run in.
Amulets & Armor version 1.0 -- (C) 1996 United Software Artists

I will keep an eye out.
Title: Re: End trigger crashes on various levels
Post by: LysleShields on April 07, 2015, 08:24:28 AM
I've got a plan that I'll try to execute tonight that should tell us what the problem is, but it involves building a new version of the code.
Title: Re: End trigger crashes on various levels
Post by: LysleShields on April 08, 2015, 09:50:50 AM
My attempt last night failed to work like I planned.  But not to worry, I've found another possibly solution called BlackBox that generates a report.  Let's see if that'll slip into the code easily.
Title: Re: End trigger crashes on various levels
Post by: LysleShields on April 09, 2015, 11:34:12 PM
I've just created a patch that can be applied onto v1.04 called v1.04d.  The patch is a .zip file with two files in it -- a new AA.exe and a new BlackBox.dll.  Just overwrite AA.exe with the new AA.exe and add the BlackBox.dll next to the AA.exe.  (in other words, unzip the file on top of your A&A directory).

You can download the .zip file from www.amuletsandarmor.com/download/AAv104d_Patch.zip (http://www.amuletsandarmor.com/download/AAv104d_Patch.zip)

If there is a crash, the application will exit and a dialog will appear asking you to copy/save/email the results.  Please follow the instructions as this will help me greatly find the problem.
Title: Re: End trigger crashes on various levels
Post by: LysleShields on April 13, 2015, 07:03:52 PM
Should have checked the patch on a non-developer computer.  This patch should fix it:  www.amuletsandarmor.com/download/AAv104db_Patch.zip
Title: Re: End trigger crashes on various levels
Post by: LysleShields on April 14, 2015, 06:51:35 PM
Just to let everyone know, Beardy has sent me a log of the failure case and I see now there is some problem with deleting objects with effects when unloading a level.  I'm digging deeper.