I think Unity is causing my games to crash

Started by persephone325, January 13, 2023, 07:53:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

persephone325

So, I've been having a problem that I can't seem to fix no matter what I do.

I've noticed that games that run on the Unity engine will randomly crash. Sunless Skies, Soul Hackers 2, Green Hell... Just to name a few.

I really have no idea what to do. Marvel Midnight Suns and Skyrim run totally fine. (Skyrim does crash occasionally, but it's always done that for me.)

I'm just frustrated because nothing seems to be working. I'm hoping someone here can help me figure out something I might have missed.
This doesn't have to end in a fight, Buck.
It always ends in a fight.
You pulled me from the river. Why?
I don't know.
"Don't dwell on those who hold you down. Instead, cherish those who helped you up."

TheTech

Unity is just like Unreal engine and about every other engine out there. It has its quirks, i should know since i've developed games in it. Most of the time its the coding that hiccups but I would say make sure your GPU drivers are up to date and fiddle with the graphics settings, like if they are ultra, lower them to say high or medium to see if this helps. Also the resolution sometimes does that for most games. If you mod the game, remove the mods to see if it still crashes. Skyrim only ever crashed for me when there was a mod that argued.



persephone325

So an update. Soul Hackers 2 is crashing only after a few minutes of playing.

I went into the Event Viewer and found this. Maybe someone who's more tech-savvy can make sense of it?

Faulting application name: SOUL HACKERS2.exe, version: 2020.3.24.51085, time stamp: 0x619c4afd
Faulting module name: UnityPlayer.dll, version: 2020.3.24.51085, time stamp: 0x619c4bf2
Exception code: 0xc0000005
Fault offset: 0x000000000043b4a3
Faulting process id: 0xe6c
Faulting application start time: 0x01d95c86f922fd08
Faulting application path: C:\Program Files (x86)\Steam\steamapps\common\SOUL HACKERS2\SOUL HACKERS2.exe
Faulting module path: C:\Program Files (x86)\Steam\steamapps\common\SOUL HACKERS2\UnityPlayer.dll
Report Id: 2c93b99f-7b65-4558-988d-bb24b383c34c
Faulting package full name:
Faulting package-relative application ID:

And with most crashes, I see this:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{2593F8B9-4EAF-457C-B68A-50F6B8EA6B54}
and APPID
{15C20B67-12E7-4BB6-92BB-7AFF07997402}

And this:
Display driver igfx stopped responding and has successfully recovered.

I've done a system refresh and edited the registry, but I can't seem to find a solution.
This doesn't have to end in a fight, Buck.
It always ends in a fight.
You pulled me from the river. Why?
I don't know.
"Don't dwell on those who hold you down. Instead, cherish those who helped you up."

TheTech

Can you post your PC stuff. Steam if you use it has a nifty way to show your rig's hardware and software. AKA under HELP you will see System information. Keep in mind if there is anything identifying like MAC address hash, delete it out before posting. Or if you dont want to do this, just basic info on cpu, vid card, windows os



Vekseid

0xc0000005 is what Windows calls a general protection fault these days. 99.9% of the time it is the result of trying to access unmapped memory. Which should not be happening in C#-based programs like Unity. It's possible you have corrupted RAM, but you would be having a lot more trouble. A program called Memtest exists to rule this out.

igfx - do you have a dedicated video card? If so is it actually being used? Like TheTech says we need more information about your machine.

You could try grabbing Intel drivers directly either way.

The COM error can be safely ignored and is expected behavior.

persephone325

Alrighty. Here's the info I got from Steam, since it was a bit easier - and I just woke up. So brain is still foggy.

Spoiler: Click to Show/Hide
Computer Information:
    Manufacturer:  System manufacturer
    Model:  System Product Name
    Form Factor: Desktop
    No Touch Input Detected

Processor Information:
    CPU Vendor:  GenuineIntel
    CPU Brand:  Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
    CPU Family:  0x6
    CPU Model:  0x9e
    CPU Stepping:  0xd
    CPU Type:  0x0
    Speed:  3600 Mhz
    8 logical processors
    8 physical processors
    HyperThreading:  Unsupported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported
    AES:  Supported
    AVX:  Supported
    AVX2:  Supported
    AVX512F:  Unsupported
    AVX512PF:  Unsupported
    AVX512ER:  Unsupported
    AVX512CD:  Unsupported
    AVX512VNNI:  Unsupported
    SHA:  Unsupported
    CMPXCHG16B:  Supported
    LAHF/SAHF:  Supported
    PrefetchW:  Unsupported

Operating System Version:
    Windows 10 (64 bit)
    NTFS:  Supported
    Crypto Provider Codes:  Supported 311 0x0 0x0 0x0

Video Card:
    Driver:  NVIDIA GeForce GTX 1650
    DirectX Driver Name:  nvldumd.dll
    Driver Version:  31.0.15.1694
    DirectX Driver Version:  31.0.15.1694
    Driver Date: 7 21 2022
    Desktop Color Depth: 32 bits per pixel
    Monitor Refresh Rate: 60 Hz
    DirectX Card: NVIDIA GeForce GTX 1650
    VendorID:  0x10de
    DeviceID:  0x1f82
    Revision:  0xa1
    Number of Monitors:  1
    Number of Logical Video Cards:  1
    No SLI or Crossfire Detected
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 1920 x 1080
    Primary Display Size: 23.54" x 13.23" (26.97" diag)
                                            59.8cm x 33.6cm (68.5cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 4095 MB
    Supported MSAA Modes:  2x 4x 8x

Sound card:
    Audio device: ASUS VP278 (Intel(R) Display Au

Memory:
    RAM:  16249 MB

VR Hardware:
    VR Headset: None detected

Miscellaneous:
    UI Language:  English
    Media Type:  Undetermined
    Total Hard Disk Space Available:  952490 MB
    Largest Free Hard Disk Block:  269576 MB
    OS Install Date: Feb 23 2023
    Game Controller: XInput Controller #2 detected
    MAC Address hash:

Storage:
    Disk serial number hash: 431c2584
    Number of SSDs: 0
    Number of HDDs: 0

When I open the Device Manager, I see two things under the Display Adapters: Intel(R) UHD Graphics 630 and NVIDIA GeForce GTX 1650. A while ago, I tried disabling the Intel adapter (at the boyfriend's suggestion) to see if that solved anything. But it didn't.

I think I used Memtest before, but everything came back normal. But, I'll try it again after I post this.
This doesn't have to end in a fight, Buck.
It always ends in a fight.
You pulled me from the river. Why?
I don't know.
"Don't dwell on those who hold you down. Instead, cherish those who helped you up."

TheTech

System requirements wise, you exceed basically so the hardware isn't the issue. Have you updated the drivers for your video card? Either way, check and see if there is an update available. But looking online, what i can tell you is there probably isn't much help to be had. Like Assassins' Creed Unity, its just a poorly made game :( I don't think its anything you did or your hardware, but that game's got a lot of bad reviews because its buggy.



persephone325

Quote from: TheTech on March 22, 2023, 03:47:10 PM
System requirements wise, you exceed basically so the hardware isn't the issue. Have you updated the drivers for your video card? Either way, check and see if there is an update available. But looking online, what i can tell you is there probably isn't much help to be had. Like Assassins' Creed Unity, its just a poorly made game :( I don't think its anything you did or your hardware, but that game's got a lot of bad reviews because its buggy.

I check for updates pretty regularly, but it always tells me I have the latest version.
This doesn't have to end in a fight, Buck.
It always ends in a fight.
You pulled me from the river. Why?
I don't know.
"Don't dwell on those who hold you down. Instead, cherish those who helped you up."

Vekseid

How many Unity games do you have that this is occurring on?

Are there any that it doesn't?

The only thing I can think of is if some shared library file used by Unity but not other programs is corrupted somehow. Stray cosmic ray flipped a bit or something.

persephone325

Quote from: Vekseid on March 26, 2023, 02:09:29 PM
How many Unity games do you have that this is occurring on?

The ones that come to mind (that I have installed right now after my system refresh) are Animal Shelter, Soul Hackers 2, and Sunless Skies. (I'm 99% positive that game runs on Unity.)

As for ones that don't, I think Ready Or Not doesn't crash. At least it hasn't so far, and I've played it for several hours with my friends with no issues.
This doesn't have to end in a fight, Buck.
It always ends in a fight.
You pulled me from the river. Why?
I don't know.
"Don't dwell on those who hold you down. Instead, cherish those who helped you up."

Vekseid

Well the first thing to do would be to verify windows files.

Quote
Make sure you've installed the latest updates for Windows, and then restart your machine. To find out more, read Update Windows.

In the search box on the taskbar, type command prompt, and right-click or press and hold Command Prompt (Desktop app) from the list of results. Select Run as administrator, and then select Yes.

Type DISM.exe /Online /Cleanup-image /Restorehealth (note the space before each "/"), and then press Enter. (Note: This step may take a few minutes to start and complete.)

After you see a message that says "The operation completed successfully," type sfc /scannow (note the space between "sfc" and "/") and press Enter.

After you see a message that says, "Verification 100% complete," type exit and press Enter.

You can also use NVCleaninstall to do a clean installation of your video card driver.

Double-check your Intel drivers, as well (linked above).

These applications should be giving you their own crash logs, as well - do you have any logs from them?

persephone325

Okey-dokey. So, I did the verification of Windows files. At the end, there was a message that said "Windows Resource Protection found corrupt files and successfully repaired them." When I looked at the log, it was a massive text document and I wasn't sure what I was looking for in it. I could post it if you need it. It's just really long.

After using the NVCleaninstall, I noticed that my graphic driver number changed on the dialogue box that pops up when I start the program. It said something like 516.31 and now it says 531.41. Whenever I use the update drivers option that's in the update section of my computer, it would always tell me I have the latest drivers. So, I'm hoping this helps in some way.

For the crash logs, I'm having trouble finding them. I did a Google search of where these logs might be, but they just kept directing me to the location of my save files. I searched through all of them, thinking it might be hidden somewhere but I couldn't seem to find anything relevant.

I do have this, but I think it's just what I posted earlier when I used Soul Hackers 2 as an example.

Source
Darkest Dungeon II.exe

Summary
Stopped responding and was closed

Date
‎3/‎28/‎2023 8:25 PM

Status
Report sent

Description
A problem caused this program to stop interacting with Windows.
Faulting Application Path:   C:\Program Files\Epic Games\DarkestDungeonII\Darkest Dungeon II.exe

Problem signature
Problem Event Name:   AppHangB1
Application Name:   Darkest Dungeon II.exe
Application Version:   2020.3.7.38898
Application Timestamp:   608d8859
Hang Signature:   a0dc
Hang Type:   134217728
OS Version:   10.0.19045.2.0.0.768.101
Locale ID:   1033
Additional Hang Signature 1:   a0dcf42e1c7b33c9173fbb35a2e33055
Additional Hang Signature 2:   8eea
Additional Hang Signature 3:   8eeaae015c61237ca48cf8a0fb820fca
Additional Hang Signature 4:   a0dc
Additional Hang Signature 5:   a0dcf42e1c7b33c9173fbb35a2e33055
Additional Hang Signature 6:   8eea
Additional Hang Signature 7:   8eeaae015c61237ca48cf8a0fb820fca

Extra information about the problem
Bucket ID:   74e54a9a6c3bfaf64e9b18c3d04c4b63 (2205383671820340067)
This doesn't have to end in a fight, Buck.
It always ends in a fight.
You pulled me from the river. Why?
I don't know.
"Don't dwell on those who hold you down. Instead, cherish those who helped you up."

Vekseid

Well don't need it but if your drivers are now actually up to date and your core Windows files are now fixed, see if things still crash?

persephone325

Quote from: Vekseid on March 29, 2023, 06:39:16 PM
Well don't need it but if your drivers are now actually up to date and your core Windows files are now fixed, see if things still crash?

Darkest Dungeon is still crashing. BUT, I didn't restart after I did all the things in the previous post. I'll do a restart and see if it still happens.
This doesn't have to end in a fight, Buck.
It always ends in a fight.
You pulled me from the river. Why?
I don't know.
"Don't dwell on those who hold you down. Instead, cherish those who helped you up."

persephone325

So, I did restart my computer and played Darkest Dungeon for a few hours and it didn't crash. *cautiously optimistic celebration* lol

I haven't tested Soul Hackers 2, yet. I think that'll be the true test because lately, I can't play for more than 5 minutes without it crashing.
This doesn't have to end in a fight, Buck.
It always ends in a fight.
You pulled me from the river. Why?
I don't know.
"Don't dwell on those who hold you down. Instead, cherish those who helped you up."

TheTech

Glad to know Vekseid was more help than me. I am so tempted to erase and restore my pc because of things. Also I am almost afraid to update mine cause it always breaks something lol. Glad to know that game no longer does its crashing for you. I do know Unity games to be a bit of a resource hog. Not to mention Unity has its own quirks.



Vekseid

I ran a computer repair business for a few years. >_>

Anyway is good to know things are working. : )

persephone325

Well, I think I celebrated too soon. Still getting crashes.

I might have to take the computer to Best Buy or something and have them take a look, and see what's going on. The first few months I had the computer, this wasn't a problem.

>.< Stupid technological problems. Bah!

I appreciate the help you guys gave, though. ^^
This doesn't have to end in a fight, Buck.
It always ends in a fight.
You pulled me from the river. Why?
I don't know.
"Don't dwell on those who hold you down. Instead, cherish those who helped you up."

persephone325

OK. Hang on. I think my boyfriend helped me fix it.

He had me use that MSI Afterburner program since I wasn't exactly sure how to use it myself. He explained it to me and it seems that the company that put together my computer had my graphics card already overclocked, even though I can't find any information that said they would be doing that.

It seems that messing with the MSI settings has fixed it. *knock on wood* I was able to play a game for at least 20 minutes tonight, whereas before this game would crash within maybe 5 minutes of playtime.
This doesn't have to end in a fight, Buck.
It always ends in a fight.
You pulled me from the river. Why?
I don't know.
"Don't dwell on those who hold you down. Instead, cherish those who helped you up."

TheTech

And folks, this is why i DONT overclock shit. :D Glad you can play things cause this was driving me nutz and i know Unity from a programer's prospective.