Pointer causing editor crash

Hello everyone,

I’ve been following the slate tutorial in wiki.

But when I add this line

MenuStyle = &MenuStyles::Get().GetWidgetStyle<FGlobalStyle>("Global");

in my project and press play the editor crash. My code is practically the same as the tutorial.

The crash reporter window says:
“Assertion failed: IsValid() [File:C:\Program Files\Epic Games\4.9\Engine\Source\Runtime\Core\Public\Templates\SharedPointer.h] [Line: 697]”

There is no build errors in Visual Studio, I believe that’s something with the pointers.

In Diagnostics.txt says ‘Source context from “menututorial/source/menututorial/menustyles.cpp”’
Diagnostics

Can anyone help me?

Sorry for my English

Thanks!

I have the exact same problem as this. Did you get it fixed by any chance?

I dont remember how I got it fixed, it just started working again. I remember changing something inside the GameMode. If you’re doing the same tutorial, download the finished project and take a look in the GameMode code, because is not the same like the tutorial.

Quickly going through that tutorial. Did you call Initialize first? FMenuStyles::Initialize();