"turn" got a trap 5 @ 004126CF 01:000116CF in galciv.exe

I just got this exception after pushing the turn button (I used the enter key):

-----

OS Version : Windows ME
Video Card : NVIDIA GeForce2 GTS (IBM)
Application Exception code: C0000005 ACCESS_VIOLATION
Crash Addr: 004126CF 01:000116CF E:\DRENGIN.NET\GALCIV\GALCIV.EXE

Processor Registers (x86):
EAX:00000000
EBX:838F3DB0
ECX:00000000
EDX:00000001
ESI:838F3CD0
EDI:0000000F
CS:EIP:0187:004126CF
SS:ESP:018F:00A4F7F4 EBP:00A4F844
DS:018F ES:018F FS:5257 GS:0000
Flags:00010206


Current Application Call Stack:

Addr Frame Logical addr Module Name
---------------------------------------------
004126CF 00A4F844 0001:000116CF E:\DRENGIN.NET\GALCIV\GALCIV.EXE
00452C8A 00A4F89C 0001:00051C8A E:\DRENGIN.NET\GALCIV\GALCIV.EXE
0044DBFB 00A4F958 0001:0004CBFB E:\DRENGIN.NET\GALCIV\GALCIV.EXE
00433199 00A4F9BC 0001:00032199 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
00423896 00A4FA1C 0001:00022896 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
004234B4 00A4FA80 0001:000224B4 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
0042375C 00A4FAEC 0001:0002275C E:\DRENGIN.NET\GALCIV\GALCIV.EXE
0044B749 00A4FB54 0001:0004A749 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
0049FB02 00A4FBC4 0001:0009EB02 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
BAABD504 00A4FBF0 0001:0001C504 C:\WINDOWS\SYSTEM\DDRAW.DLL
BFF63613 00A4FC10 0001:00002613 C:\WINDOWS\SYSTEM\KERNEL32.DLL
BFF848F7 00A4FC24 0002:0001B8F7 C:\WINDOWS\SYSTEM\KERNEL32.DLL

-------
The "boing" sound for a completion sounded just before the crash.

Cheers,
Jack
197 views 10 replies
Reply #1 Top
Ick...that top logical address appears to be for one of the ship functions...so either a ship got destroyed and the engine attempted to update it, or it wasn't fully created/initialized before the engine attempted to update it...
Reply #2 Top
Isn't SmartException great! I bet you know a lot more about this problem than I would have been
able to give you without it. Think "turn causes crash" without it.

Cheers,
Jack
Reply #3 Top
Got another with the build I just downloaded this morning. I don't know if it is the same problem or not, so here
it is for your judgement.

----------------
OS Version : Windows ME
Video Card : NVIDIA GeForce2 GTS (IBM)
Application Exception code: C0000005 ACCESS_VIOLATION
Crash Addr: 0042955F 01:0002855F E:\DRENGIN.NET\GALCIV\GALCIV.EXE

Processor Registers (x86):
EAX:00003F80
EBX:83A823D8
ECX:00003F80
EDX:00000001
ESI:83A82314
EDI:0000000F
CS:EIP:0187:0042955F
SS:ESP:018F:00A4F7F4 EBP:00A4F844
DS:018F ES:018F FS:1357 GS:0000
Flags:00010206


Current Application Call Stack:

Addr Frame Logical addr Module Name
---------------------------------------------
0042955F 00A4F844 0001:0002855F E:\DRENGIN.NET\GALCIV\GALCIV.EXE
004567BA 00A4F89C 0001:000557BA E:\DRENGIN.NET\GALCIV\GALCIV.EXE
00433A4B 00A4F958 0001:00032A4B E:\DRENGIN.NET\GALCIV\GALCIV.EXE
0041CC29 00A4F9BC 0001:0001BC29 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
004408A7 00A4FA1C 0001:0003F8A7 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
004404D4 00A4FA80 0001:0003F4D4 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
0044075C 00A4FAEC 0001:0003F75C E:\DRENGIN.NET\GALCIV\GALCIV.EXE
0044FCDA 00A4FB54 0001:0004ECDA E:\DRENGIN.NET\GALCIV\GALCIV.EXE
004A24D2 00A4FBC4 0001:000A14D2 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
BAABD504 00A4FBF0 0001:0001C504 C:\WINDOWS\SYSTEM\DDRAW.DLL
BFF63613 00A4FC10 0001:00002613 C:\WINDOWS\SYSTEM\KERNEL32.DLL
BFF848F7 00A4FC24 0002:0001B8F7 C:\WINDOWS\SYSTEM\KERNEL32.DLL

--------------------

Also, I notice that during the last few turns I am suddenly getting "Error. Bad Memory".

Cheers,
Jack
Reply #4 Top
Cari,

You may be on the right track on this one. This time I looked at the last entry in the debug file and
found this message:
----
Debug Message: Cancel Destination for Drengin Empire BattleCruiser 90 because dead.
------
Since I am in a long protraced battle with the Drengins I suspect it lost an attack on one of my ships.

Cheers,
Jack
Reply #5 Top
Cari,

I got it again on the 3/2 build. There is also a strange error message in the debug file, and the content of the
exception file is sufficently different that I am including it here. The debug files last line is:
---
Debug Message: No AutoSave files in current directory.
-------------
The exception file content is:
-----
OS Version : Windows ME
Video Card : NVIDIA GeForce2 GTS (IBM)
Application Exception code: C0000005 ACCESS_VIOLATION
Crash Addr: 004295AF 01:000285AF E:\DRENGIN.NET\GALCIV\GALCIV.EXE

Processor Registers (x86):
EAX:00003F80
EBX:83911DA0
ECX:00003F80
EDX:0493CA80
ESI:83911CC0
EDI:0000000F
CS:EIP:0187:004295AF
SS:ESP:018F:00A4F2E8 EBP:00A4F338
DS:018F ES:018F FS:22D7 GS:0000
Flags:00010202


Current Application Call Stack:

Addr Frame Logical addr Module Name
---------------------------------------------
004295AF 00A4F338 0001:000285AF E:\DRENGIN.NET\GALCIV\GALCIV.EXE
0045844A 00A4F390 0001:0005744A E:\DRENGIN.NET\GALCIV\GALCIV.EXE
0044BA03 00A4F3F0 0001:0004AA03 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
00457156 00A4F654 0001:00056156 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
00408294 00A4F700 0001:00007294 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
00455CA2 00A4FA80 0001:00054CA2 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
00441D90 00A4FAEC 0001:00040D90 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
0045159B 00A4FB54 0001:0005059B E:\DRENGIN.NET\GALCIV\GALCIV.EXE
004A4292 00A4FBC4 0001:000A3292 E:\DRENGIN.NET\GALCIV\GALCIV.EXE
BAABD504 00A4FBF0 0001:0001C504 C:\WINDOWS\SYSTEM\DDRAW.DLL
BFF63613 00A4FC10 0001:00002613 C:\WINDOWS\SYSTEM\KERNEL32.DLL
BFF848F7 00A4FC24 0002:0001B8F7 C:\WINDOWS\SYSTEM\KERNEL32.DLL
---------

If getting additional exception reports are not useful for this problem let me know.

Cheers,
Jack
Reply #6 Top
They're all starship bugs, and they're all probably because the way that ships were destroyed was kinda weird. I modified that code today and didn't get errors during the normal course of a game, but I did get one strange crash at the very start of the game that I haven't gotten before, in a part of the code where it updates the animations. We'll probably have to test the code more internally, but I think that my code is a bit more robust than the previous version. It probably just needs a bit of tweaking.
Reply #7 Top
Thanks, Cari.

Jack
Reply #8 Top
Cari,
I have a saved game that crashes on reload every time that was started on the 3/2 build. Will I be able to
test your fix by using this saved game on a new level of the code? Or will the new level incompatable with
the saved game?

Cheers,
Jack
Reply #9 Top
umm..Send me the saved game and I'll see if it runs on my build. I'm doing my best to keep the save games compatible with each build.
Reply #10 Top
On its way.

Jack