Closed FLYPoPo7 closed 9 months ago
I can reproduce this. It seems that in a Standalone Game, WITH_EDITOR
is defined, yet GEditor
is nullptr. We need a null check in shouldValidateFlags
.
We'd appreciate a pull request to fix this if you're up for it, @FLYPoPo7!
// Only fixup flags in the editor, when not in play mode if (IsValid(GEditor) && GEditor->IsPlaySessionInProgress()) return false;
Adding the IsValid(GEditor) check fixes the issue for us. Using: CesiumForUnreal-52-v2.0.0
Makes sense to me, @armygamestudio. Would love if you could open a pull request with that change.
Actualy, a slightly better fix would be to return false
when GEditor isn't valid. So:
// Only fixup flags in the editor, when not in play mode
if (!IsValid(GEditor) || GEditor->IsPlaySessionInProgress())
return false;
Actualy, a slightly better fix would be to
return false
when GEditor isn't valid. So:// Only fixup flags in the editor, when not in play mode if (!IsValid(GEditor) || GEditor->IsPlaySessionInProgress()) return false;
Hi,May I ask where is this code to be written?
@NicoLee777 just search for that comment in the code, it'll pop right up.
I'm still having this problem with the new version OS windows 11 UE v5.3.2 Cesium for Unreal v2.2.0 `LoginId:3974f5af4246bbebe07c1db695afc0c4 EpicAccountId:26489ffc80134b54a04ec2cca0b92925
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000002100
UnrealEditor_CesiumRuntime!ACesium3DTileset::PostLoad() [D:\build\U5M-Marketplace\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\CesiumForUnreal\Source\CesiumRuntime\Private\Cesium3DTileset.cpp:2094] UnrealEditor_CoreUObject UnrealEditor_CoreUObject UnrealEditor_CoreUObject UnrealEditor_CoreUObject UnrealEditor_CoreUObject UnrealEditor_CoreUObject UnrealEditor_Engine UnrealEditor_Engine UnrealEditor_Engine UnrealEditor_Engine UnrealEditor UnrealEditor UnrealEditor UnrealEditor UnrealEditor UnrealEditor kernel32 ntdll`
The fix for this issue hasn't been released yet. You can try it out today by trying a pre-release build from the main
branch by following these instructions:
https://github.com/CesiumGS/cesium-unreal/blob/main/Documentation/using-prerelease-packages.md#download-a-pre-release-version-from-a-branch-or-commit
Or you can wait for the next official release, which will be next week.
The fix for this issue hasn't been released yet. You can try it out today by trying a pre-release build from the branch by following these instructions: https://github.com/CesiumGS/cesium-unreal/blob/main/Documentation/using-prerelease-packages.md#download-a-pre-release-version-from-a-branch-or-commit`main`
Or you can wait for the next official release, which will be next week.
thank you
Environment
OS windows 10 UE v5.3.1 Cesium for Unreal v2.0.0 It can be reproduced in the Cesium for Unreal Samples.
Reproduce
It can be reproduced in the Cesium for Unreal Samples. Just Open Map 01_CesiumWorld and run it in standalone mode.
Error Message
I guess it may caused by
CesiumActors::shouldValidateFlags
function.