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

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

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.

Hey tmek,

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!

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]

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?

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.

Thomas Kadlec

Hi tmek,

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.



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)