Download

Cast of Blueprint /SunPosition/SunSky.SunSky to Class failed

I’m unable to create a SunSky in UE5. I get the following error. I tried disabling and enabling the Sun Position Calculator.

Fatal error: [File:D:/build/++UE5/Sync/Engine/Source/Runtime/CoreUObject/Private/Templates/Casts.cpp] [Line: 10] 
Cast of Blueprint /SunPosition/SunSky.SunSky to Class failed

0x00007ffa566319c5 UnrealEditor-CoreUObject.dll!UnknownFunction []
0x00007ffa23cd29c4 UnrealEditor-PlacementMode.dll!UnknownFunction []
0x00007ffa23d014ed UnrealEditor-PlacementMode.dll!UnknownFunction []
0x00007ffa5284f0af UnrealEditor-Slate.dll!UnknownFunction []
0x00007ffa528324b1 UnrealEditor-Slate.dll!UnknownFunction []
0x00007ffa528ae4c0 UnrealEditor-Slate.dll!UnknownFunction []
0x00007ffa52897267 UnrealEditor-Slate.dll!UnknownFunction []
0x00007ffa5288a592 UnrealEditor-Slate.dll!UnknownFunction []
0x00007ffa5978a7fb UnrealEditor-ApplicationCore.dll!UnknownFunction []
0x00007ffa597790b7 UnrealEditor-ApplicationCore.dll!UnknownFunction []
0x00007ffa5978cce0 UnrealEditor-ApplicationCore.dll!UnknownFunction []
0x00007ffa59774207 UnrealEditor-ApplicationCore.dll!UnknownFunction []
0x00007ffadfd1e858 USER32.dll!UnknownFunction []
0x00007ffadfd1e299 USER32.dll!UnknownFunction []
0x00007ffa5978dfe8 UnrealEditor-ApplicationCore.dll!UnknownFunction []
0x00007ff6355e76cb UnrealEditor.exe!UnknownFunction []
0x00007ff635600b2c UnrealEditor.exe!UnknownFunction []
0x00007ff635600c0a UnrealEditor.exe!UnknownFunction []
0x00007ff63561573d UnrealEditor.exe!UnknownFunction []
0x00007ff6356186ba UnrealEditor.exe!UnknownFunction []
0x00007ffadfb37034 KERNEL32.DLL!UnknownFunction []
0x00007ffae0b62651 ntdll.dll!UnknownFunction []

Crash in runnable thread StallDetectorThread

I know this is for UE_LOG, but is the for loop supposed to have only semicolons and missing statements?

/Engine/Source/Runtime/CoreUObject/Private/Templates/Casts.cpp:
SunSky Casts

The statement:
for(;;);
Just freezes. It’s the same as while (true);

This is the case to halt execution so nothing happens after the UE_LOG.
Doing a UE_LOG with severity Fatal causes the engine to crash, so the for(;;); is there so that the code doesn’t run anymore after the error.

1 Like

I see. Thanks @NachoMonkey2!