GPU Crashed or D3D Device Removed

For some reason I have suddenly started getting this error.

At first it was happening when trying to open a specific folder within the content browser.

It is know crashing instantly when opening the editor. This is possibly still linked to that folder as it is opening by default in the content browser.

I have monitored my GPU load/temps when opening the editor and it barely changes.

The GPU doesn’t have any issues outside of UE4 as everything else stays up fine and my CPU doesn’t have integrated graphics.

Anyone have any ideas? I appreciate this doesn’t really belong any blueprints but there wasn’t really anywhere else to post it.

Managed to find the problem in the end.

I was attaching skeletal mesh components to the parent skeletal mesh during construct and that was causing the crash. I suspect that the parent skeletal mesh component hadn’t finished constructing when it was trying to attach the child components so was just falling over.

Actually it does relate to blueprints just a tiny bit. I have a VR pawn that is very much empty at this point. It is a C++ class, that I derive from my other class APCPawn, which in turn is derived from APawn. I can create a blueprint from APCPawn without a problem, and the only thing AVRPawn currently has is the following constructor:


AVRPawn::AVRPawn()
    : Super()
{
   UMotionControllerComponent* leftController = CreateDefaultSubobject<UMotionControllerComponent>(TEXT("LeftController"));
   leftController->SetupAttachment(RootComponent);
   leftController->bDisplayDeviceModel = true;

   UMotionControllerComponent* rightController = CreateDefaultSubobject<UMotionControllerComponent>(TEXT("RightController"));
   rightController->SetupAttachment(RootComponent);
   rightController->MotionSource = FXRMotionControllerBase::RightHandSourceId;
   rightController->bDisplayDeviceModel = true;
}


Nevertheless, any attempt to create a blueprint out of AVRPawn crashes the editor with the subject message.

But… Commenting out


xxxController->bDisplayDeviceModel = true;

lines eliminates the crash.

Since having these lines uncommented and using AVRPawn directly from the game also has an issue: all materials are rendered unlit, I suspect that the bug is in SteamVR plugin…

Does your project by any chance also rely on VR?

Something that worked for me was close msi afterburner and riva tunner,