An error that's driving me insane

Talk about anything related to old versions of Armada.
posted on July 27th, 2010, 12:37 am
Hey guys, this is my first post on here but i've been playing Armada 2 for a very long time. About 3-4 months ago I googled it and found out there's this awesome, thriving modding community out there. Long story short, I'm working on my own ODF and AI files at the moment (the tutorials here really helped!). I know this place is mostly for fleetops but this place seems to be the only collection of experts on Armada 2 still running.

The problem I'm having is an EAccess violation, and I've been hunting this bug for weeks. The problem is that I can't find one .odf file it's linked to. The most frustrating part is that it takes a solid 30 minutes into an instant-action game to appear. I was thinking I could post the crash file and maybe someone who's been doing this for a while would just spot it. Any help is much appreciated!!!!

date/time        : 2010-07-26, 19:19:04, 218ms
computer name    : IMAC-WIN
user name        : **** 
registered owner  : ****
operating system  : Windows XP Service Pack 2 build 2600
system language  : English
system up time    : 1 hour 2 minutes
program up time  : 23 minutes 59 seconds
processors        : 2x Intel(R) Core(TM)2 Extreme CPU X7900 @ 2.80GHz
physical memory  : 2283/3053 MB (free/total)
free disk space  : (C:) 14.27 GB
display mode      : 1600x1200, 32 bit
process id        : $fa4
allocated memory  : 233.83 MB
executable        : Armada2.exe
current module    : Armada2Hook.dll
module date/time  : 2008-01-19 06:06
compiled with    : Delphi 2006/07
madExcept version : 3.0f
callstack crc    : $04504659, $778b16d0, $778b16d0
exception number  : 1
exception class  : EAccessViolation
exception message : Access violation at address 0043835C in module 'Armada2.exe'. Read of address 0000028C.

Main ($ca8):
0043835c +0000fc Armada2.exe  CraftProcess_Attack.obj
0043424f +00005f Armada2.exe  CraftProcess.obj
00437fd9 +000059 Armada2.exe  CraftProcess_Attack.obj
004322e0 +000110 Armada2.exe  CraftProcess.obj
0042eb0d +00005d Armada2.exe  CraftProcess.obj
0040195e +0000be Armada2.exe  AiMission.obj
00450de7 +000007 Armada2.exe  AISchedMission.obj
0044e84e +00001e Armada2.exe  AIController.obj
00483574 +000124 Armada2.exe  Program.obj
00559b7a +0000fa Armada2.exe  TransportLocal.obj
0045edd4 +000164 Armada2.exe  AudioManager.obj
00487293 +0001b3 Armada2.exe  Program.obj
00486b44 +000544 Armada2.exe  Program.obj
0047608d +000023 Armada2.exe  ArmadaWin.obj
00476042 +0000d2 Armada2.exe  ArmadaWin.obj
006734f4 +22507c Armada2.exe  savegame.obj

thread $f50:
7c90df48 +0a ntdll.dll                NtWaitForMultipleObjects
7c8094f8 +00 kernel32.dll              WaitForMultipleObjectsEx
7c80a080 +13 kernel32.dll              WaitForMultipleObjects
0106fb49 +0d Armada2Hook.dll madExcept CallThreadProcSafe
0106fbb3 +37 Armada2Hook.dll madExcept ThreadExceptFrame
>> created by Main ($ca8) at:
72d2328c +00 wdmaud.drv

thread $198:
7c90df48 +0a ntdll.dll                NtWaitForMultipleObjects
7c8094f8 +00 kernel32.dll              WaitForMultipleObjectsEx
7c80a080 +13 kernel32.dll              WaitForMultipleObjects
0106fb49 +0d Armada2Hook.dll madExcept CallThreadProcSafe
0106fbb3 +37 Armada2Hook.dll madExcept ThreadExceptFrame
>> created by Main ($ca8) at:
73f1a8df +00 DSOUND.dll

thread $bbc:
7e41be55 +0a USER32.dll                GetForegroundWindow
0106fb49 +0d Armada2Hook.dll madExcept CallThreadProcSafe
0106fbb3 +37 Armada2Hook.dll madExcept ThreadExceptFrame
>> created by Main ($ca8) at:
73f1a8df +00 DSOUND.dll

thread $f10:
7c90df48 +0a ntdll.dll                NtWaitForMultipleObjects
7c8094f8 +00 kernel32.dll              WaitForMultipleObjectsEx
7c80a080 +13 kernel32.dll              WaitForMultipleObjects
00463ce7 +57 Armada2.exe              BinkThread.obj
0106fb49 +0d Armada2Hook.dll madExcept CallThreadProcSafe
0106fbb3 +37 Armada2Hook.dll madExcept ThreadExceptFrame
>> created by Main ($ca8) at:
00463ace +4e Armada2.exe              BinkThread.obj

thread $d18:
7c90d218 +00a ntdll.dll                NtDelayExecution
7c8023e7 +04b kernel32.dll              SleepEx
7c80244c +00a kernel32.dll              Sleep
004dd1f1 +191 Armada2.exe              InputThread.obj
0106fb49 +00d Armada2Hook.dll madExcept CallThreadProcSafe
0106fbb3 +037 Armada2Hook.dll madExcept ThreadExceptFrame
>> created by Main ($ca8) at:
004dd21b +01b Armada2.exe              InputThread.obj

thread $b7c:
7c90df48 +0a ntdll.dll                NtWaitForMultipleObjects
7c8094f8 +00 kernel32.dll              WaitForMultipleObjectsEx
7c80a080 +13 kernel32.dll              WaitForMultipleObjects
0106fb49 +0d Armada2Hook.dll madExcept CallThreadProcSafe
0106fbb3 +37 Armada2Hook.dll madExcept ThreadExceptFrame
>> created by Main ($ca8) at:
73f1a8df +00 DSOUND.dll

modules:
00330000 NetworkManager.dll                        C:Program FilesArmada_2
00380000 d3d8.dll                                  C:Program FilesArmada_2
00400000 Armada2.exe                43.0.0.0        C:Program FilesArmada_2
01020000 Armada2Hook.dll                            C:Program FilesArmada_2
01220000 FOmsvc.dll                                C:Program FilesArmada_2
10000000 Win2kDisableTaskSwitch.dll                C:Program FilesArmada_2
30000000 binkw32.dll                1.2.4.0        C:Program FilesArmada_2
58d40000 Wship6.dll                5.1.2600.2180  C:WINDOWSsystem32
5ad70000 uxtheme.dll                6.0.2900.2180  C:WINDOWSsystem32
5d090000 COMCTL32.dll              5.82.2900.2982  C:WINDOWSsystem32
6d990000 d3d8thk.dll                5.3.2600.2180  C:WINDOWSsystem32
6d9a0000 d3d8.dll                  5.3.2600.2180  C:WINDOWSsystem32
71aa0000 WS2HELP.dll                5.1.2600.2180  C:WINDOWSsystem32
71ab0000 WS2_32.dll                5.1.2600.2180  C:WINDOWSsystem32
71ad0000 wsock32.dll                5.1.2600.2180  C:WINDOWSsystem32
72d10000 msacm32.drv                5.1.2600.0      C:WINDOWSsystem32
72d20000 wdmaud.drv                5.1.2600.2180  C:WINDOWSsystem32
73b50000 AVIFIL32.dll              5.1.2600.3649  C:WINDOWSsystem32
73ee0000 KsUser.dll                5.3.2600.2180  C:WINDOWSsystem32
73f10000 DSOUND.dll                5.3.2600.2180  C:WINDOWSsystem32
74720000 MSCTF.dll                  5.1.2600.3319  C:WINDOWSsystem32
755c0000 msctfime.ime              5.1.2600.2180  C:WINDOWSsystem32
75a70000 MSVFW32.dll                5.1.2600.2180  C:WINDOWSsystem32
76080000 MSVCP60.dll                6.2.3104.0      C:WINDOWSsystem32
76390000 IMM32.dll                  5.1.2600.2180  C:WINDOWSsystem32
763b0000 comdlg32.dll              6.0.2900.2180  C:WINDOWSsystem32
76b40000 WINMM.dll                  5.1.2600.2180  C:WINDOWSsystem32
76c30000 WINTRUST.dll              5.131.2600.3661 C:WINDOWSsystem32
76c90000 IMAGEHLP.dll              5.1.2600.2180  C:WINDOWSsystem32
77120000 oleaut32.dll              5.1.2600.3266  C:WINDOWSsystem32
773d0000 comctl32.dll              6.0.2900.2982  C:WINDOWSWinSxSx86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03
774e0000 ole32.dll                  5.1.2600.2726  C:WINDOWSsystem32
77a80000 CRYPT32.dll                5.131.2600.2180 C:WINDOWSsystem32
77b20000 MSASN1.dll                5.1.2600.3624  C:WINDOWSsystem32
77bd0000 midimap.dll                5.1.2600.2180  C:WINDOWSsystem32
77be0000 MSACM32.dll                5.1.2600.2180  C:WINDOWSsystem32
77c00000 VERSION.dll                5.1.2600.2180  C:WINDOWSsystem32
77c10000 msvcrt.dll                7.0.2600.2180  C:WINDOWSsystem32
77dd0000 ADVAPI32.dll              5.1.2600.3520  C:WINDOWSsystem32
77e70000 RPCRT4.dll                5.1.2600.3555  C:WINDOWSsystem32
77f10000 GDI32.dll                  5.1.2600.3466  C:WINDOWSsystem32
77f60000 SHLWAPI.dll                6.0.2900.3653  C:WINDOWSsystem32
77fe0000 Secur32.dll                5.1.2600.3592  C:WINDOWSsystem32
7c800000 kernel32.dll              5.1.2600.3541  C:WINDOWSsystem32
7c900000 ntdll.dll                  5.1.2600.3520  C:WINDOWSsystem32
7c9c0000 SHELL32.dll                6.0.2900.3402  C:WINDOWSsystem32
7e410000 USER32.dll                5.1.2600.3099  C:WINDOWSsystem32

processes:
000 Idle
004 System            normal
5f0 smss.exe          normal C:WINDOWSsystem32
684 csrss.exe        normal C:WINDOWSsystem32
6ec winlogon.exe      high  C:WINDOWSsystem32
71c services.exe      normal C:WINDOWSsystem32
728 lsass.exe        normal C:WINDOWSsystem32
7d8 vmacthlp.exe      normal C:Program FilesVMwareVMware Tools
7e8 Ati2evxx.exe      normal C:WINDOWSsystem32
7f8 svchost.exe      normal C:WINDOWSsystem32
0a0 svchost.exe      normal C:WINDOWSsystem32
1a8 MsMpEng.exe      normal C:Program FilesWindows Defender
1d0 svchost.exe      normal C:WINDOWSSystem32
238 svchost.exe      normal C:WINDOWSsystem32
294 svchost.exe      normal C:WINDOWSsystem32
3a4 Ati2evxx.exe      normal C:WINDOWSsystem32
3e0 svchost.exe      normal C:WINDOWSsystem32
5e4 spoolsv.exe      normal C:WINDOWSsystem32
318 Explorer.EXE      normal C:WINDOWS
6a0 rundll32.exe      normal C:WINDOWSsystem32
6a4 IRW.exe          normal C:WINDOWSsystem32
6ac KbdMgr.exe        normal C:Program FilesBoot Camp
6b4 MSASCui.exe      normal C:Program FilesWindows Defender
114 ctfmon.exe        normal C:WINDOWSsystem32
3d8 svchost.exe      normal C:WINDOWSsystem32
458 AppleOSSMgr.exe  normal C:WINDOWSsystem32
468 AppleTimeSrv.exe  normal C:WINDOWSsystem32
2ac avgwdsvc.exe      normal C:PROGRA~1AVGAVG8
550 mDNSResponder.exe normal C:Program FilesBonjour
584 svchost.exe      normal C:WINDOWSsystem32
634 HPZipm12.exe      normal C:WINDOWSsystem32
60c svchost.exe      normal C:WINDOWSsystem32
848 avgrsx.exe        normal C:PROGRA~1AVGAVG8
85c avgnsx.exe        normal C:PROGRA~1AVGAVG8
864 avgemc.exe        normal C:PROGRA~1AVGAVG8
a9c avgcsrvx.exe      normal C:Program FilesAVGAVG8
d24 wscntfy.exe      normal C:WINDOWSsystem32
ef0 alg.exe          normal C:WINDOWSSystem32
3e8 iexplore.exe      normal C:Program FilesInternet Explorer
460 Staum.exe        normal C:Program FilesArmada_2
fa4 Armada2.exe      normal C:Program FilesArmada_2

hardware:
+ Bluetooth Radios
  - Apple Built-in Bluetooth (driver 2.1.0.1)
  - Microsoft Bluetooth Enumerator
+ Computer
  - ACPI Multiprocessor PC
+ Disk drives
  - WD My Book IEEE 1394 SBP2 Device
  - WDC WD5000AAKS-40YGA0
+ Display adapters
  - ATI Mobility Radeon HD 2600 XT (driver 8.450.0.0)
+ DVD/CD-ROM drives
  - PIONEER DVD-RW  DVR-K06A
+ Human Interface Devices
  - Apple IR Receiver (driver 2.0.1.1)
  - Apple Keyboard (driver 3.0.0.0)
  - Apple Keyboard (driver 3.0.0.0)
  - Bluetooth HID Device
  - HID-compliant consumer control device
  - HID-compliant consumer control device
+ IDE ATA/ATAPI controllers
  - Intel(R) ICH8M 3 port Serial ATA Storage Controller - 2828 (driver 8.2.0.1011)
  - Intel(R) ICH8M Ultra ATA Storage Controllers - 2850 (driver 8.2.0.1011)
  - Primary IDE Channel
  - Primary IDE Channel
  - Secondary IDE Channel
  - Secondary IDE Channel
+ IEEE 1394 Bus host controllers
  - OHCI Compliant IEEE 1394 Host Controller
+ Imaging devices
  - USB Video Device
+ Keyboards
  - HID Keyboard Device
+ Mice and other pointing devices
  - HID-compliant mouse
+ Monitors
  - Default Monitor
  - Default Monitor
  - Default Monitor
  - Generic Television
  - Plug and Play Monitor
+ Network adapters
  - 1394 Net Adapter
  - Bluetooth Device (Personal Area Network)
  - Broadcom 802.11n Network Adapter (driver 4.170.25.12)
  - Marvell Yukon 88E8058 PCI-E Gigabit Ethernet Controller (driver 10.12.7.3)
+ Processors
  - Intel(R) Core(TM)2 Extreme CPU X7900  @ 2.80GHz
  - Intel(R) Core(TM)2 Extreme CPU X7900  @ 2.80GHz
+ SBP2 IEEE 1394 Devices
  - SBP2 Compliant IEEE 1394 device
  - SBP2 Compliant IEEE 1394 device
+ Sound, video and game controllers
  - Audio Codecs
  - DbusAudio (driver 6.1.10102.333)
  - Legacy Audio Drivers
  - Legacy Video Capture Devices
  - Media Control Devices
  - Realtek High Definition Audio (driver 5.10.0.5512)
  - Video Codecs
+ System devices
  - ACPI Fixed Feature Button
  - ACPI Power Button
  - ACPI Sleep Button
  - Apple Built-in iSight (driver 2.0.1.1)
  - Apple panel backlight (driver 2.0.1.1)
  - Apple SMC device (driver 2.0.1.1)
  - Direct memory access controller
  - High precision event timer
  - Intel(R) 82801 PCI Bridge - 2448
  - Intel(R) 82802 Firmware Hub Device
  - Intel(R) ICH8 Family PCI Express Root Port 1 - 283F (driver 8.0.0.1010)
  - Intel(R) ICH8 Family PCI Express Root Port 4 - 2845 (driver 8.0.0.1010)
  - Intel(R) ICH8 Family PCI Express Root Port 5 - 2847 (driver 8.0.0.1010)
  - Intel(R) ICH8 Family PCI Express Root Port 6 - 2849 (driver 8.0.0.1010)
  - Intel(R) ICH8 Family SMBus Controller - 283E (driver 8.0.0.1008)
  - Intel(R) ICH8M-E LPC Interface Controller - 2815 (driver 8.0.0.1010)
  - ISAPNP Read Data Port
  - Logical Disk Manager
  - Microcode Update Device
  - Microsoft ACPI-Compliant Embedded Controller
  - Microsoft ACPI-Compliant System
  - Microsoft Composite Battery
  - Microsoft System Management BIOS Driver
  - Microsoft UAA Bus Driver for High Definition Audio
  - Mobile Intel(R) PM965/GM965/GL960 Express PCI Express Root Port - 2A01 (driver 8.2.0.1002)
  - Mobile Intel(R) PM965/GM965/GL960 Express Processor to DRAM Controller - 2A00  (driver 8.2.0.1002)
  - Motherboard resources
  - Motherboard resources
  - Numeric data processor
  - PCI bus
  - Plug and Play Software Device Enumerator
  - Programmable interrupt controller
  - System CMOS/real time clock
  - System timer
  - Terminal Server Device Redirector
  - Terminal Server Keyboard Driver
  - Terminal Server Mouse Driver
  - Volume Manager
+ Universal Serial Bus controllers
  - Generic USB Hub
  - Standard Enhanced PCI to USB Host Controller
  - Standard Enhanced PCI to USB Host Controller
  - Standard Universal PCI to USB Host Controller
  - Standard Universal PCI to USB Host Controller
  - Standard Universal PCI to USB Host Controller
  - Standard Universal PCI to USB Host Controller
  - Standard Universal PCI to USB Host Controller
  - USB Composite Device
  - USB Composite Device
  - USB Root Hub
  - USB Root Hub
  - USB Root Hub
  - USB Root Hub
  - USB Root Hub
  - USB Root Hub
  - USB Root Hub

cpu registers:
eax = 00000000
ebx = 090e4d00
ecx = 11a1ed30
edx = 112f979c
esi = 11b3f318
edi = 0926b3b8
eip = 0043835c
esp = 0012fad4
ebp = 0012fb10

stack dump:
0012fad4  00 00 00 00 18 f3 b3 11 - 54 42 43 00 44 0a 00 00  ........TBC.D...
0012fae4  18 f3 b3 11 80 4d 0e 09 - 0e 0c 4c 00 04 00 00 00  .....M....L.....
0012faf4  44 0a 00 00 18 f3 b3 11 - 10 fb 12 00 db 7f 43 00  D.............C.
0012fb04  00 00 48 44 00 00 00 00 - 00 00 48 44 28 fb 12 00  ..HD......HD(...
0012fb14  e3 22 43 00 a8 c2 10 11 - 18 f3 b3 11 90 1d e5 02  ."C.............
0012fb24  b8 b3 26 09 38 fb 12 00 - 10 eb 42 00 80 6a bc 3d  ..&.8.....B..j.=
0012fb34  80 6a bc 3d 6c fb 12 00 - 61 19 40 00 80 6a bc 3d  .j.=l...a.@..j.=
0012fb44  2e 00 00 00 80 6a bc 3d - 00 00 00 00 3d 00 00 80  .....j.=....=...
0012fb54  00 00 00 00 00 00 00 00 - 18 f3 b3 11 b4 fb 12 00  ................
0012fb64  b8 94 69 00 ff ff ff ff - 78 fb 12 00 ec 0d 45 00  ..i.....x.....E.
0012fb74  80 6a bc 3d 84 fb 12 00 - 51 e8 44 00 80 6a bc 3d  .j.=....Q.D..j.=
0012fb84  c0 fb 12 00 79 35 48 00 - 80 6a bc 3d 88 26 e4 02  ....y5H..j.=.&..
0012fb94  c6 6e 97 85 95 09 00 00 - 00 00 00 00 01 00 00 00  .n..............
0012fba4  95 09 00 00 00 00 00 00 - 01 00 00 00 80 6a bc 3d  .............j.=
0012fbb4  e4 fd 12 00 88 c0 69 00 - ff ff ff ff f0 fd 12 00  ......i.........
0012fbc4  7f 9b 55 00 7f 03 00 00 - 06 00 00 00 30 7b 73 00  ..U.........0{s.
0012fbd4  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 09 03  ................
0012fbe4  80 00 80 0f 00 00 00 00 - 00 7e e5 46 f0 22 56 bf  .........~.F."V.
0012fbf4  00 df 40 47 00 00 00 00 - 00 00 00 00 00 00 00 00  ..@G............
0012fc04  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  ................

disassembling:
[...]
00438349  test    ah, $41
0043834c  jnz    loc_438356
0043834e  fstp    st
00438350  fld    dword ptr [$6ae218]
00438356  mov    eax, [edx+$fc]
0043835c > fld    dword ptr [eax+$28c]
00438362  fxch    st(1)
00438364  fcompp  st(1), st
00438366  fnstsw  ax
00438368  test    ah, $41
0043836b  jz      loc_438386
[...]
posted on July 27th, 2010, 1:36 am
I'm guessing it is a converted Mac. Well, first thing's first. Exactly what did you change?

Look through, try to find any missing quotes, any missing lines of code, or any files requesting nonexistent ones. Then look through possible mis-implementation of code.

All of these are critical.

If none is changing any of the factors, a clean new install is the best probable solution. But it is necessary that if you were to mod, you test it piece by piece (or ship by ship). This way you can log what ship causes which errors and what add-ons are linked or possibly linked to the problem.
posted on July 27th, 2010, 1:48 am
It's running win XP in bootcamp so yes. See that's just it... I've used the STAUM program to go through every edited aramda 2 odf file I can think of. Found a few bugs and fixed them, but this is different. I've made mistakes with odf files before and usually the game will just crash right away. Or, I made a mistake with a fed ship and the game crashed as soon as it tried to leave the shipyard. This only rears it's head 25-30 minutes in to the game (realtime, the game is on game speed 6), everything's been built, the Ai has attacked eachother 4-5 times, everything seems fine. I always test after every little change and usually catch these things. This seems to only happen way into the game so my 5-10 min test runs didn't catch it.
posted on July 27th, 2010, 1:51 am
Also, when you open the memory debugger, is it normal for the num craftdata (might have that backwards, it's the very top value) never goes down? When I run tests it rutinely gets over 3000..... From what I can tell it's the number of ships that it has in memory, yet, when a fleet is destroyed and the AI rebuilds the number never goes down, only up.
posted on July 27th, 2010, 4:32 am
Since I assume you are running the patch project, I'd highly recommend sending your bug report to bugs @fleetops.net and reporting the issue :) . Doca will probably get back to you shortly :)
posted on July 27th, 2010, 5:14 am
Ok I'll try that. Thanks!
posted on July 27th, 2010, 6:25 pm
Sent. I'm hoping to get to the bottom of this. The crash is almost always in

0042b340 +0000f0 Armada2.exe  strategic_map.obj, "strategic_map.obj" with different addresses OR

"Craft attack proccess" with different addresses.
posted on August 4th, 2010, 7:52 pm
Hmmm. It's been a while and still no reply from Doca. Guess he's busy ha.
posted on August 4th, 2010, 7:54 pm
EDP07 wrote:Hmmm. It's been a while and still no reply from Doca. Guess he's busy ha.


just cos he doesnt reply here doesnt mean he hasnt taken note of this.

its quite possible that he doesnt have an immediate solution though, the devs dont get paid to do this, they probably have jobs and lives and stuff, balancing fo development with that must be challenging.
Reply

Who is online

Users browsing this forum: No registered users and 5 guests

cron