# Using "profilegpu" from a "Standalone Game" (running in it's own process outside editor) causes UE4 to crash

**URL:** <https://forums.unrealengine.com/t/using-profilegpu-from-a-standalone-game-running-in-its-own-process-outside-editor-causes-ue4-to-crash/299557>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, bug-report, question\
**Created:** [November 21, 2014, 5:57pm UTC](https://forums.unrealengine.com/t/using-profilegpu-from-a-standalone-game-running-in-its-own-process-outside-editor-causes-ue4-to-crash/299557 "2014-11-21T17:57:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tmek](https://forums.unrealengine.com/u/tmek)\
**Post date:** [November 21, 2014, 5:57pm UTC](https://forums.unrealengine.com/t/using-profilegpu-from-a-standalone-game-running-in-its-own-process-outside-editor-causes-ue4-to-crash/299557/1 "2014-11-21T17:57:55Z")

</div>

link text  
Branch: I have this issue in both 4.6 preview and 4.5.1 binaries downloaded from Unreal Launcher.

Build version: 4.6.0-2357962+++depot+UE4-Releases+4.6

Detailed description of issue: Using “profilegpu” through console or ctrl+shift+, hotkey within a standalone process causes it to crash.

Screenshots/Link to video: [- YouTube](http://youtu.be/NpDWkudJ3vE)

Repro Steps

Action 1 Create a new “blank” blueprint project with default settings.

Action 2 When project opens, click Play-\>“Standalone Game” mode.

Action 3 Press ctrl+shift+, or type “profilegpu” into console of standalone process and standalone process.

This occurs 100% of time for me (only step three is actually required).

System Specs: Win8.1 i7 16gbram 760gtx.

See attached dxdiag.txt, DMP and LOG files.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [November 21, 2014, 6:40pm UTC](https://forums.unrealengine.com/t/using-profilegpu-from-a-standalone-game-running-in-its-own-process-outside-editor-causes-ue4-to-crash/299557/2 "2014-11-21T18:40:41Z")

</div>

Hey ,

I wasn’t able to reproduce this crash as described. It looks like your crash log is truncated. Would you mind getting this crash again and sending us a fresh log? Thanks!

---

<div class="post-metadata">

**Author:** ![tmek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tmek](https://forums.unrealengine.com/u/tmek)\
**Post date:** [November 21, 2014, 7:25pm UTC](https://forums.unrealengine.com/t/using-profilegpu-from-a-standalone-game-running-in-its-own-process-outside-editor-causes-ue4-to-crash/299557/3 "2014-11-21T19:25:22Z")

</div>

Hi ,

I created a new blank project (this was in 4.6 preview) opened up default level, launched in Standalone Process and typed “profilegpu” in console. It crashed and I zipped up everything in project Saved\Logs folder as Logs2.

Seems like it’s this…

[2014.11.21-19.17.44:819][589]LogWindows: === Critical error: ===  
Fatal error: [File:D:\BuildFarm\buildmachine\_++depot+UE4-Releases+4.6\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp] [Line: 650]  
Rendering thread exception:  
Assertion failed: BytesPerPixel [File:D:\BuildFarm\buildmachine\_++depot+UE4-Releases+4.6\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11RenderTarget.cpp] [Line: 573]

---

<div class="post-metadata">

**Author:** ![tmek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tmek](https://forums.unrealengine.com/u/tmek)\
**Post date:** [November 21, 2014, 7:31pm UTC](https://forums.unrealengine.com/t/using-profilegpu-from-a-standalone-game-running-in-its-own-process-outside-editor-causes-ue4-to-crash/299557/4 "2014-11-21T19:31:05Z")

</div>

one thing that might be unusual about my machine is that I have an Oculus Rift DK2. Maybe something to do with their special drivers that allow for direct to Rift mode for GPU access?

---

<div class="post-metadata">

**Author:** ![tmek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tmek](https://forums.unrealengine.com/u/tmek)\
**Post date:** [November 21, 2014, 7:42pm UTC](https://forums.unrealengine.com/t/using-profilegpu-from-a-standalone-game-running-in-its-own-process-outside-editor-causes-ue4-to-crash/299557/5 "2014-11-21T19:42:36Z")

</div>

Holy Moly! It is DK2 being connected that causes this!

If I unplug it (hdmi cable) or press power button to turn it off I do NOT get crash. When it’s plugged in and powered (even in standby mode with orange light) I DO get crash.

So bug report needs to be updated to reflect this happens with DK2. Although hopefully you guys can still resolve this because we can’t enter and do profiling in “STEREO ON” mode without hmd connected.

Thanks!  
Kadlec

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [November 21, 2014, 9:01pm UTC](https://forums.unrealengine.com/t/using-profilegpu-from-a-standalone-game-running-in-its-own-process-outside-editor-causes-ue4-to-crash/299557/6 "2014-11-21T21:01:27Z")

</div>

Hi ,

I was able to reproduce your issue and have entered it as JIRA UE-5752 in our tracking software. You’re correct, it only happens while a DK2 is plugged in. Our developers will be looking into it further.

As a temporary workaround, see if you can enter Stereo mode and then input ProfileGPU command.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![tmek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tmek](https://forums.unrealengine.com/u/tmek)\
**Post date:** [November 21, 2014, 11:48pm UTC](https://forums.unrealengine.com/t/using-profilegpu-from-a-standalone-game-running-in-its-own-process-outside-editor-causes-ue4-to-crash/299557/7 "2014-11-21T23:48:13Z")

</div>

Yes! Switching into stereo mode first and then running ProfileGPU does work!  
(I guess it has something to do with waking up DK2s screen vs it being in sleep mode)

Thanks!
