# Standalone game crashes (access violation)

**URL:** <https://forums.unrealengine.com/t/standalone-game-crashes-access-violation/374266>\
**Category:** Platform & Builds\
**Tags:** access-violation, unreal-engine, crash, bug-report, UE4, question\
**Created:** [October 24, 2016, 5:04am UTC](https://forums.unrealengine.com/t/standalone-game-crashes-access-violation/374266 "2016-10-24T05:04:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunchaser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sunchaser](https://forums.unrealengine.com/u/Sunchaser)\
**Post date:** [October 24, 2016, 5:04am UTC](https://forums.unrealengine.com/t/standalone-game-crashes-access-violation/374266/1 "2016-10-24T05:04:26Z")

</div>

Been working on this project for months. All of a sudden Standalone Game (launched from editor) has started to crash with this log from the Crash Reporter.  
Mind the third line (Access violation)

The dmp file (when opened in VIsual Studio) reads : The thread tried to read from or write to a virtual address for which it does not have the appropriate access.

Log from Crash Reporter :

```
> MachineId:EA85965B4FF40F18E088D296AEE6CE02
> EpicAccountId:25ebd8f1454040e396a3b75730c35153
> 
> Access violation - code c0000005
> (first/second chance not available)
> 
> UE4Editor_Engine!UWorld::GetDefaultPhysicsVolume()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\world.cpp:3576]
> UE4Editor_Engine!USceneComponent::UpdatePhysicsVolume()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\components\scenecomponent.cpp:2233]
> UE4Editor_Engine!USceneComponent::UpdateOverlaps()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\components\scenecomponent.cpp:2425]
> UE4Editor_Engine!USceneComponent::MoveComponentImpl()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\components\scenecomponent.cpp:2518]
> UE4Editor_Engine!USceneComponent::SetRelativeLocationAndRotation()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\components\scenecomponent.cpp:1006]
> UE4Editor_Engine!USceneComponent::SetRelativeTransform()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\components\scenecomponent.cpp:1132]
> UE4Editor_Engine!USceneComponent::SetWorldTransform()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\components\scenecomponent.cpp:1229]
> UE4Editor_Engine!USCS_Node::ExecuteNodeOnActor()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\scs_node.cpp:125]
> UE4Editor_Engine!USimpleConstructionScript::ExecuteScriptOnActor()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\simpleconstructionscript.cpp:531]
> UE4Editor_Engine!AActor::ExecuteConstruction()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\actorconstruction.cpp:669]
> UE4Editor_Engine!AActor::RerunConstructionScripts()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\actorconstruction.cpp:469]
> UE4Editor_Engine!ULevel::IncrementalUpdateComponents()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\level.cpp:904]
> UE4Editor_Engine!UWorld::PreSaveRoot()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\world.cpp:733]
> UE4Editor_CoreUObject!UPackage::Save()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\coreuobject\private\uobject\savepackage.cpp:3504]
> UE4Editor_UnrealEd!UEditorEngine::Save()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\editorengine.cpp:3953]
> UE4Editor_UnrealEd!UEditorEngine::SavePackage() [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\editorengine.cpp:4013]
> UE4Editor_UnrealEd!UEditorEngine::Exec_Obj()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\editorserver.cpp:4443]
> UE4Editor_UnrealEd!UEditorEngine::Exec()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\editorserver.cpp:5537]
> UE4Editor_UnrealEd!UUnrealEdEngine::Exec()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\unrealedsrv.cpp:624]
> UE4Editor_UnrealEd!SaveWorld()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\filehelpers.cpp:553]
> UE4Editor_UnrealEd!FEditorFileUtils::SaveWorlds()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\filehelpers.cpp:3376]
> UE4Editor_UnrealEd!UEditorEngine::SavePlayWorldPackages()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\playlevel.cpp:2133]
> UE4Editor_UnrealEd!UEditorEngine::SaveWorldForPlay()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\playlevel.cpp:1249]
> UE4Editor_UnrealEd!UEditorEngine::PlayStandaloneLocalPc()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\playlevel.cpp:1321]
> UE4Editor_UnrealEd!UEditorEngine::StartQueuedPlayMapRequest()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\playlevel.cpp:1098]
> UE4Editor_UnrealEd!UEditorEngine::Tick()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\editorengine.cpp:1306]
> UE4Editor_UnrealEd!UUnrealEdEngine::Tick()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\unrealedengine.cpp:371]
> UE4Editor!FEngineLoop::Tick()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:2834]
> UE4Editor!GuardedMain()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\launch\private\launch.cpp:156]
> UE4Editor!GuardedMainWrapper()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
> UE4Editor!WinMain()
> [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
> UE4Editor!__scrt_common_main_seh()
> [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264]
> kernel32 ntdll
```

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [October 24, 2016, 2:07pm UTC](https://forums.unrealengine.com/t/standalone-game-crashes-access-violation/374266/2 "2016-10-24T14:07:14Z")

</div>

Hey Sunchaser,

I have a few questions regarding this crash in order to gather more information:

- Could you please cause the crash to occur again and provide the logs from your project’s Saved-\>Logs folder?
- Are you able to reproduce the crash in a clean project?
- If so, please provide a detailed list of repro steps.

---

<div class="post-metadata">

**Author:** ![Sunchaser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sunchaser](https://forums.unrealengine.com/u/Sunchaser)\
**Post date:** [October 24, 2016, 7:47pm UTC](https://forums.unrealengine.com/t/standalone-game-crashes-access-violation/374266/3 "2016-10-24T19:47:03Z")

</div>

Thanks so much for taking the time to look at this issue.  
I am not able to reproduce the crash in a clean project. It is just the one project.

Log file is here: [http://pastebin.com/bGLUQ9GL](http://pastebin.com/bGLUQ9GL)

I guess this is the bad guy huh ? : _**"LogSpawn:Warning: SpawnActor failed because we are running a ConstructionScript (DefaultPhysicsVolume)"**_

Once again: thank you for your time.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [October 25, 2016, 1:06pm UTC](https://forums.unrealengine.com/t/standalone-game-crashes-access-violation/374266/4 "2016-10-25T13:06:58Z")

</div>

Thanks for the logs, and no problem, glad to try and help.

So you have numerous errors as far as certain files failing to load, but I don’t think that’s what is causing the crash. Are you attempting to spawn actors in your construction script?

If so, could you provide a screenshot of your setup?

---

<div class="post-metadata">

**Author:** ![Sunchaser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sunchaser](https://forums.unrealengine.com/u/Sunchaser)\
**Post date:** [October 25, 2016, 8:16pm UTC](https://forums.unrealengine.com/t/standalone-game-crashes-access-violation/374266/5 "2016-10-25T20:16:31Z")

</div>

I agree with the numerous errors - I plan on fishing them out later today. But these do not cause this crash - I agree with that too.

Obviously I have many blueprints with construction scripts. I included one that was worked on almost at the same time as the error started occurring The construction node is not connected in this one so it shouldn`t be triggering anything - let alone this error:

[![Imgur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/b/9cb7c2635dded9a1da6d58f8338b1426891c1f20.png "imgur.com") ](https://imgur.com/KyI8UOq)

---

<div class="post-metadata">

**Author:** ![Sunchaser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sunchaser](https://forums.unrealengine.com/u/Sunchaser)\
**Post date:** [October 25, 2016, 8:53pm UTC](https://forums.unrealengine.com/t/standalone-game-crashes-access-violation/374266/6 "2016-10-25T20:53:26Z")

</div>

Update - standalone game no longer crashes (for now) but shows up in a small screen (almost a square). It completely ignores the resolutions I have set in the Advanced Settings under “Play in New Window” and “Play in standalone game”

I have seen a number of threads referring to the same thing happening , none of them really have a conclusive answer.

Not sure what is going on here.  
Extra info: at the time of the crashes starting to happen I was also fiddling around with setting up a server etc (I m mentioning this cause there is some chatter about that in the answers - regarding the “small window” bug)

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [October 26, 2016, 12:39pm UTC](https://forums.unrealengine.com/t/standalone-game-crashes-access-violation/374266/7 "2016-10-26T12:39:19Z")

</div>

Hey Sunchaser,

I’m glad to hear that your game is no longer crashing in standalone. As a result, I’m going to mark this topic as resolved for the meantime. If the issue returns though, feel free to come back and post a comment to reopen the thread and I can continue to investigate.

For your other issue with the Standalone Window Size not displaying properly, please create a new Answerhub thread in the Bug Reports section for us to investigate, as this is a separate issue and we’d like to treat it as such.

Thanks!

---

<div class="post-metadata">

**Author:** ![Sunchaser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sunchaser](https://forums.unrealengine.com/u/Sunchaser)\
**Post date:** [March 10, 2017, 9:46pm UTC](https://forums.unrealengine.com/t/standalone-game-crashes-access-violation/374266/8 "2017-03-10T21:46:44Z")

</div>

coming back here - I’m not sure but I think the small resolution screen for “Play in new window” can be fixed by deleting intermediate and saved folders

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_05f5f0a3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_05f5f0a3](https://forums.unrealengine.com/u/anonymous_user_05f5f0a3)\
**Post date:** [April 15, 2019, 9:08am UTC](https://forums.unrealengine.com/t/standalone-game-crashes-access-violation/374266/9 "2019-04-15T09:08:37Z")

</div>

I had a similar issue and I was able to fix it by deleting Binaries, Intermediate, and Saved folders. Then rebuild and re-COOK the project.
