Similar to: https://answers.unrealengine.com/questions/185777/critical-error-landscape.html
Hi, I’ve been using splines in a project for some time with a track based on the Kart Racer Template.
I just started creating a blueprint function using spline functions like this one: https://forums.unrealengine.com/filedata/fetch?id=1122235&d=1485739091
I created a new PlayerState C++ class, closed UE, and cannot reopen my project.
// D:\Engine\Source\Runtime\Landscape\Private\Materials\MaterialExpressionLandscapeVisibilityMask.cpp
UObject* UMaterialExpressionLandscapeVisibilityMask::GetReferencedTexture() const
{
// Exception thrown at 0x00007FFA333868DA (UE4Editor-Landscape.dll) in UE4Editor.exe: 0xC0000005: Access violation reading location 0x0000000000000970. occurred
return GEngine->WeightMapPlaceholderTexture;
}
Suggestions? Why is GEngine invalid/null?
This is being triggered by this line in my GameMode constructor:
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(TEXT("/Game/_Racer/BP_RacerCharacter"));
That BP exists, compiles, and has a SkeletalMesh. Commenting this line out works around the crash. I’m working with it to see if I can learn more.
UPDATE: I fought this for a minute, but it’s trivial to change the pawn in a blueprint so I did that instead.
Ngenion
(Ngenion)
February 28, 2023, 1:44pm
3
Hi i think i have same problem.
Here i posted full answer.
Hello, I have crash.
Version UE5.1. No external plugins. Cpp project. MSVS 2022 for code.
I do my things at my main project. And once, after i close game window, VS give me error message:
“An exception was thrown at 0x00007FF932B37BB7 (nvwgf2umx.dll) in UnrealEditor.exe: 0xC0000005: access violation while reading at address 0x000001F4F2580010.”
After it i have 100% repitable this error in this project (after closing game window).
I try create new project (third person), without any new code…
Louspirit
(Louspirit)
March 25, 2024, 3:43pm
4
For me, deleting the Config folder worked
In my case, I disabled this line +D3D12TargetedShaderFormats=PCD3D_SM6
in the DefaultEngine.ini file, so the project can load with Shared Model 6 disabled. That made it for me