A Unity 3D program is crashing on startup (User32.dll and 0xc0000005 Access violation)

Hi,

This is my first post and would be grateful for some help. I’m trying to run a Unity 3D program created by someone else and it is crashing on startup. The program tries to load for a second, then the box disappears. I’ve attached a printscreen of this box.

The top of the crash log says:

HandbellStadium3D by changeringing.co.uk [version: Unity 2019.3.9f1_e6e740a1c473]
USER32.dll caused an Access Violation (0xc0000005)
in module USER32.dll at 0033:77090800.

Things I’ve tried so far, to no avail:

  • Turning on/off my firewall and antivirus (also uninstalling/reinstalling the antivirus). Also allowing the program through the Windows Firewall.
  • Updated the driver on my graphics card.
  • System restore

I suspect the crashing could be related to my computer specs - will these allow a Unity 3D program to run?

Acer Aspire 5733
Processor - Intel® Core™ i3 CPU M 380 @ 2.53GHz
Intel® HD Graphics (version 8.15.10.2993)
Windows 7 Home

Thanks
Dave

5794636--612052--Example_of_HBS_3D_error.PNG

I’ve also done all of the 8 steps mentioned in this article.

Would be very grateful for advice - many thanks in advance

It’s possible/likely that whoever gave you the program has a bug in their code that can only be fixed by them.

1 Like

Thank you PraetorBlue. After more digging in to this, I was able to run the 32-bit version of the program but not the 64-bit version of the program. Would be grateful for any thoughts what might be causing this?

I’ve checked my RAM again for errors using Windows Memory Diagnostic (no errors found). I have 8 GB of RAM, of which 7.68 GB is usable. But when I go into Resource Monitor then the Memory tab, it shows 330MB of the RAM is ‘hardware reserved’ - which I believe is perfectly normal. So I don’t think there is an issue with my RAM.

I think I have now solved this problem. I got a clean copy of the User32.dll file and put it in my Windows/system32 directory (overwriting the existing one). The application is now working, thankfully. How to correct common User32.dll file errors - Microsoft Support

Application Error 0xc0000005 (Access Violation) error is usually caused by your computer not being able to correctly process the files and settings required to run a particular program or installation. Despite the error showing when you try and use particular pieces of software, it has many different causes including faulty RAM problems, errors with the files of your PC and issues with the settings of your PC.

In this case, we suggest that you check for corrupted Windows system files. System File Checker (SFC) is a utility in Windows that scans for corrupted Windows system files. If it finds a problem, it will try to replace the problematic system files from a cached version that’s on your PC.

To run System File Checker (SFC), follow these steps:

  • In the search box on the taskbar, type command prompt, press and hold (or right-click) Command Prompt, then select Run as administrator > Yes.
  • At the command prompt, type sfc /scannow (note the space between sfc and the /). Scanning will take a few minutes.
  • If SFC finds corrupted files and replaces them, restart your PC and check if the issue persists.

For more info about System File Checker, see Use the System File Checker tool to repair missing or corrupted system files.

I hope it will work!

2 Likes

This worked for me, thank you :slight_smile:

Worked for me! Appreciate!