Source SDK

Source SDK

Visual Studio Debugger Problem (dll's and their pdb files missing/access denied)
I am making a GoldSrc mod and I recently set up Visual Studio 2013 with half-life 2 days ago. I haven't had these problems until yesterday when I compiled in Jackhammer and got -

*******
Server info packet recieved.
Unable to open commandmenu.txt
Remote host: Half-Life
Spooling demo header
Compressing split packet (10128 -> 4029 bytes)
Verifying and downloading resources...
Setting up renderer...
SKY: desertrt, desertbk, desertlf, desertup, desertdn, done
Verifying and downloading resources...
Custom resources total 6.15K
Decals: 6.15K
-------------------------
Resources to request: 0 bytes
*******
So, I debugged half-life into Visual Studio and got the same error in the source dev console, but with an error stating -

*******
"Unhandled exception at 0x77C2166B (ntdll.dll) in hl.exe: 0xC0000005: Access violation reading location 0x00000004."
*******

A window opens in Visual Studio itself saying that wntdll.pdb can't be found. I ran Half-Life from Steam and I tried to do a new game. When I chose my difficulty, it just closed the menu and didn't load anything. I tried new game again and it loaded with the same console error as it did in Jackhammer and in Visual Studio. I verified the integrity of Half-Life's files from Steam and Half-Life istelf worked perfectly, but not when I debug it again. I checked to see if "Microsoft Symbol Servers" located in the Degub options was checked and it wasn't, so I checked it. There was no more error involving ntdll.dll. But when I try to debug again in Visual Studio, I get a new error -
*******
" Unhandled exception at 0x0493535D (hw.dll) in hl.exe: 0xC0000005: Access violation reading location 0x00BAB2EC."
*******

Not only that, but while I was just trying different solutions for this problem (directory changes, registry scans, etc.) I realized that the ntdll.dll error STILL pops up. only at random now.

Even before I started getting these errors and I had Visual Studio set up, if I compile in either Jackhammer or Visual Studio, Half-Life crashes at random. So, I recompile / debug until Half-Life loads without any crashes.

I'm using Visual Studio 2013, J.A.C.K. (Jackhammer), and the Half-Life SDK from this GitHub link: https://github.com/ValveSoftware/halflife

Any help is appreciated. If you want more details, ask. I really want to stop having compiling errors and debugging errors like this or at least have the greatly reduced.
< >
Showing 1-5 of 5 comments
Dmitriy Apr 6, 2018 @ 10:49pm 
If app crashes this usually means you have a programming error in your code. Unless of course you have a virus which corrupted your executables and/or DLLs.

You need to correct your code to fix it.

If your's created map is a source of the crash then you need to fix the map not the code.
xdshot Apr 6, 2018 @ 11:00pm 
Try verifying game cache
Originally posted by xDShot™:
Try verifying game cache
If by that you mean I verified the integrity of the game files through steam, then I did that and only got rid of the problem of Half-Life's main game not loading up.
xdshot Apr 7, 2018 @ 12:26am 
Then you need to take a stack trace during that crashing. It sucks that crash was happened in engine, not in game code, so it's kinda black box. See what functions were called in your game code. If these are parts you changed, then revert them back as initial before editing. Re-compile. See what happens.

Find tutorials about Visual Studio usage and it's debbuging tool. I can't tell anything about VS, I'm basically no-IDE guy.

Also, not exactly sure if hl really supports studio 2013. Might need to downgrade to, say, 2008, because of differences of ABI.
Last edited by xdshot; Apr 7, 2018 @ 12:26am
Originally posted by Dmitriy:
If app crashes this usually means you have a programming error in your code. Unless of course you have a virus which corrupted your executables and/or DLLs.

You need to correct your code to fix it.

If your's created map is a source of the crash then you need to fix the map not the code.

I deleted my custom code and went back to square 1. I now just get this error in Half-Life when I debug it in VisStudio:
***********
Console initialized.
Base networking initialized.
"sv_cheats" changed to "1"
Initializing deltas
Protocol version 48
Exe version 1.1.2.2 (valve)
Exe build: 09:10:05 Jul 7 2017 (7561)
128.0 Mb heap
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce GTX 750/PCIe/SSE2
GL_VERSION: 4.6.0 NVIDIA 391.01
GL_SIZES: r:8 g:8 b:8 a:0 depth:24
Sound Initialization
Set primary sound buffer format: yes
2 channel(s)
16 bits/sample
11025 bytes/sec
DirectSound initialized
Loaded library demoplayer.dll.
Loaded library core.dll.
Creating fake network channel.
Loaded library core.dll.
DemoPlayer module initialized.
Parsed 143 text messages
WARNING: failed to locate sequence file global
joystick not found -- driver not present

execing hw/geforce.cfg
execing valve.rc
execing language.cfg
execing autoexec.cfg
execing violence.cfg
execing hw/geforce.cfg
warning: MP3_InitStream(29, media\gamestartup.mp3) failed
execing config.cfg
***********
Last edited by Anonymous Bomb Threat; Apr 8, 2018 @ 8:16pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50