• Welcome to Battlezone Universe.
 

News:

Welcome to the BZU Archive dated December 24, 2009. Topics and posts are in read-only mode. Those with accounts will be able to login and browse anything the account had access granted to at the time. No changes to permissions will be made to be given access to particular content. If you have any questions, please reach out to squirrelof09/Rapazzini.

Main Menu

Experimental D3D9 Build (2009-12-10)

Started by Ultraken, December 10, 2009, 02:54:31 AM

Previous topic - Next topic

Ultraken

After a brief hiatus, it's time for another experimental build.  There aren't as many changes in this one.


  • fixed most of the application minimize/restore problems
  • eliminated the green tint on the target and sniper scopes
  • removed CPU speed check that used privileged instructions
The speed check might have been what was causing start-up problems for some people, but I don't know that for sure.  That's the big thing to check.  :)

Battlezone D3D9

Usual reminders:
1. This build requires the Visual C++ 2008 SP1 Redstributable Package
2. If using a retail install, rename the "splash" folder to "splash_" to disable Windows 7's compatibility layer
3. If running on Windows Vista or 7, make the install folder writable
4. If having trouble, try the DirectX End-User Runtime Web Installer

Commando

Do you have a debugger file for us to try loading in visual stuido 2008 express?  I just download and installed it since I have the day off.

Ultraken


Commando

What exactly do we do with this pdb file?

I have Visual C++ 2008 express installed.  I tried opening up the .exe and the .pdb using 2008 express and got an error stating that those files could not be opened.

1.  I reinstalled bz1 into C:\Documents\Temp
2.  I updated said install to 1.4
3.  I added the new .exe after backing up the original
4.  I added the pdb file

Commando

I tried opening both bzone.exe and bzone.exe.pdb with Visual C++ 2008 Express.  Neither will open.  The Exe's themselves won't open either.  I renamed the splash folder, but haven't touched the anim folder yet.

I think the 0CX00000005 error indicates the install is complete but won't load while the ANET.dll error I was getting was due to my install not completing, I could be wrong though.

Ultraken

You can't actually run BZ from Visual C++ without a project, so what you'll want to do is run BZ and then attach to its process with the debugger.  That should--in theory at least--give you a call stack so we can figure out where it's crashing if not why.

Commando

Debug file was no help.  GSH suggested that I try Dependency Walker, which I did.  I got these two files were missing.  GPSVC.DLL and IESHIMS.DLL both would not load because they could not be found.

Commando

Sorry, after looking in the output tab, I found the following.

'bzone.exe': Loaded 'C:\Windows\SysWOW64\SortServer2003Compat.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll'
The thread 'Win32 Thread' (0x11dc) has exited with code -1073741819 (0xc0000005).
The program '[5056] bzone.exe: Native' has exited with code -1073741819 (0xc0000005).

Ultraken

That result from Dependency Walker is immensely helpful.  Now I just need to figure out what those are, where they come from, and why the application wants them.

Commando

Hopefully the VS Debug info will provide some additional insight.

Commando

I tried two different installs. 

C:\Users\Commando\Documents\Temp
C:\Program Files (x86)\Activision\Battlezone

Each produces the same error.  I even tried copying Temp to Program Files (X86) before installing another instance under that folder.  No luck, getting the same crash at startup.

Ultraken

#11
I'm going to see if I can reproduce the problem on my work computer, which runs Vista 64-bit.

Update: I get the same crash on startup.

sabrebattletank

#12
Not exactly sure what to do with the .pdb file. Not sure if this is any help, but here's my output tab: [Edit: Just realized that this is with XP SP2 compat]

'bzone.exe': Loaded 'C:\Users\Bill\Desktop\Battlezone\Battlezone\bzone.exe'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
'bzone.exe': Loaded 'C:\Users\Bill\Desktop\Battlezone\Battlezone\ANET2.DLL', Binary was not built with debug information.
'bzone.exe': Loaded 'C:\Windows\SysWOW64\user32.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\version.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\dsound.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\powrprof.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\d3d9.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\d3d8thk.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll'
'bzone.exe': Loaded 'C:\Users\Bill\Desktop\Battlezone\Battlezone\STRLKUP.DLL', Binary was not built with debug information.
'bzone.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16385_none_ebf82fc36c758ad5\comctl32.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\comdlg32.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll'
'bzone.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a\msvcp90.dll'
'bzone.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a\msvcr90.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll'
'bzone.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll'
'bzone.exe': Loaded 'C:\Windows\AppPatch\AcGenral.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\samcli.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\msacm32.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\sfc.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\sfc_os.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\urlmon.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\iertutil.dll'
'bzone.exe': Loaded 'C:\Windows\AppPatch\AcXtrnal.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\shunimpl.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\SortServer2003Compat.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll'
'bzone.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll'
The thread 'Win32 Thread' (0x31c) has exited with code -1073741819 (0xc0000005).
The program '[6852] bzone.exe: Native' has exited with code -1073741819 (0xc0000005).


Ultraken

Now that I can reproduce the crash at will, I can start trying to fix it.  Of course, randomized base address means I can't use the map file to figure out where it crashed...   :-P

sabrebattletank

#14
Just out of curiosity's sake, how do I get to the dependency walker? Edit: Ah, I see, it's something else entirely.