Hi. I have some build error.
I move the “CesiumforUnreal” folder in marketplace to “Plugins” Folder in MyProject.
and I built it. That is ok.
After That,
In My Actor cpp, I used component in cesium source code(ex- “CesiumGlobeAnchorComponent”) and build.
It results in crash.
and Unreal displayed "Unhandled Exception:EXCEPTION_ACCESS_VIOLATION"error in Crash reporter.
How to solve?
Current My Project:
CesiumforUnreal version: 2.9.0. and It downloaded in marketplace.
“Plugins” Folder - “CesiumForUnreal”
“MyProject.Build.cs”, I add “cesiumEditor” and “CesiumRuntime” to PublicDependecyMouleNames.
Hi @seongholee ,
I’m not aware of any reason that CesiumGlobeAnchor
would specifically fail when the plugin is embedded in a project. So my first guess is that your code that is attempting to use CesiumGlobeAnchor
in a way that is somehow incorrect, and that is causing the crash? In order to help us diagnose, we probably need to see the code. It would also be a big help to see the full call stack of the access violation.
Hi @Kevin_Ring ,
MyActor.h
class UCesiumGlobeAnchorComponent* GAC;
MyActor.cpp
AMyActor::AMyActor()
{
GAC = CreateDefaultSubObject(“GAC”);
}
and build
=> crash
Below is crash reporter. I’m sorry too long.
<?xml version="1.0" encoding="UTF-8"?>
<FGenericCrashContext>
<RuntimeProperties>
<CrashVersion>3</CrashVersion>
<ExecutionGuid>BA302B68419A8D12D533DB937223D1C9</ExecutionGuid>
<CrashGUID>UECC-Windows-B9DFF87944E067CC58C482AA39BBA031_0000</CrashGUID>
<IsEnsure>false</IsEnsure>
<IsStall>false</IsStall>
<IsAssert>false</IsAssert>
<CrashType>Crash</CrashType>
<ErrorMessage>Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000025dee1b0348</ErrorMessage>
<CrashReporterMessage />
<CrashReporterMessage>Attended</CrashReporterMessage>
<ProcessId>928</ProcessId>
<SecondsSinceStart>707</SecondsSinceStart>
<IsInternalBuild>false</IsInternalBuild>
<IsPerforceBuild>false</IsPerforceBuild>
<IsWithDebugInfo>true</IsWithDebugInfo>
<IsSourceDistribution>false</IsSourceDistribution>
<GameName>UE-TestCesium</GameName>
<ExecutableName>UnrealEditor</ExecutableName>
<BuildConfiguration>Development</BuildConfiguration>
<GameSessionID />
<PlatformName>WindowsEditor</PlatformName>
<PlatformFullName>Win64 [Windows 11 (23H2) [10.0.22631.4317] 64b]</PlatformFullName>
<PlatformNameIni>Windows</PlatformNameIni>
<EngineMode>Editor</EngineMode>
<EngineModeEx>Dirty</EngineModeEx>
<DeploymentName />
<EngineVersion>5.4.4-35576357+++UE5+Release-5.4</EngineVersion>
<EngineCompatibleVersion>5.4.4-35576357+++UE5+Release-5.4</EngineCompatibleVersion>
<CommandLine>E:\00_SH\01_NetProj\TestCesium\TestCesium.uproject</CommandLine>
<LanguageLCID>0</LanguageLCID>
<AppDefaultLocale>ko-KR</AppDefaultLocale>
<BuildVersion>++UE5+Release-5.4-CL-35576357</BuildVersion>
<Symbols>**UE5*Release-5.4-CL-35576357-Win64-Development</Symbols>
<IsUERelease>true</IsUERelease>
<IsRequestingExit>false</IsRequestingExit>
<UserName />
<BaseDir>C:/Program Files/Epic Games/UE_5.4/Engine/Binaries/Win64/</BaseDir>
<RootDir>C:/Program Files/Epic Games/UE_5.4/</RootDir>
<MachineId>286C2156478D1FFAC1B15F914D638B1B</MachineId>
<LoginId>286c2156478d1ffac1b15f914d638b1b</LoginId>
<EpicAccountId>f81d4a1e8b2a4c2aaab3996512f62ac9</EpicAccountId>
<SourceContext />
<UserDescription />
<UserActivityHint>Layout="LevelEditorSelectionDetails" Label="Details" Content=SB</UserActivityHint>
<CrashDumpMode>0</CrashDumpMode>
<GameStateName />
<Misc.NumberOfCores>16</Misc.NumberOfCores>
<Misc.NumberOfCoresIncludingHyperthreads>24</Misc.NumberOfCoresIncludingHyperthreads>
<Misc.Is64bitOperatingSystem>1</Misc.Is64bitOperatingSystem>
<Misc.CPUVendor>GenuineIntel</Misc.CPUVendor>
<Misc.CPUBrand>13th Gen Intel(R) Core(TM) i7-13700K</Misc.CPUBrand>
<Misc.PrimaryGPUBrand>NVIDIA GeForce RTX 3070 Ti</Misc.PrimaryGPUBrand>
<Misc.OSVersionMajor>Windows 11 (23H2) [10.0.22631.4317]</Misc.OSVersionMajor>
<Misc.OSVersionMinor />
<Misc.AnticheatProvider />
<MemoryStats.TotalPhysical>68447789056</MemoryStats.TotalPhysical>
<MemoryStats.TotalVirtual>79359184896</MemoryStats.TotalVirtual>
<MemoryStats.PageSize>4096</MemoryStats.PageSize>
<MemoryStats.TotalPhysicalGB>64</MemoryStats.TotalPhysicalGB>
<MemoryStats.AvailablePhysical>14908854272</MemoryStats.AvailablePhysical>
<MemoryStats.AvailableVirtual>17824239616</MemoryStats.AvailableVirtual>
<MemoryStats.UsedPhysical>3289399296</MemoryStats.UsedPhysical>
<MemoryStats.PeakUsedPhysical>4846727168</MemoryStats.PeakUsedPhysical>
<MemoryStats.UsedVirtual>5285851136</MemoryStats.UsedVirtual>
<MemoryStats.PeakUsedVirtual>6896779264</MemoryStats.PeakUsedVirtual>
<MemoryStats.bIsOOM>0</MemoryStats.bIsOOM>
<MemoryStats.OOMAllocationSize>0</MemoryStats.OOMAllocationSize>
<MemoryStats.OOMAllocationAlignment>0</MemoryStats.OOMAllocationAlignment>
<NumMinidumpFramesToIgnore>0</NumMinidumpFramesToIgnore>
<CallStack>UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll</CallStack>
<PCallStack>UnrealEditor-Engine 0x00007ffd048b0000 + 27a8b5a UnrealEditor-Engine 0x00007ffd048b0000 + 287abc9 UnrealEditor-Engine 0x00007ffd048b0000 + 170f681 UnrealEditor-UnrealEd 0x00007ffd0e340000 + 84c04c UnrealEditor-UnrealEd 0x00007ffd0e340000 + 14cf6b6 UnrealEditor 0x00007ff75a160000 + 8e0b UnrealEditor 0x00007ff75a160000 + 2e33c UnrealEditor 0x00007ff75a160000 + 2e42a UnrealEditor 0x00007ff75a160000 + 318a4 UnrealEditor 0x00007ff75a160000 + 470c4 UnrealEditor 0x00007ff75a160000 + 4a37a KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</PCallStack>
**<PCallStackHash>A7C610DD970A27F402140A7CEC7E654113829A19</PCallStackHash>**
** <Threads>**
** <Thread>**
** <CallStack>UnrealEditor-Engine 0x00007ffd048b0000 + 27a8b5a UnrealEditor-Engine 0x00007ffd048b0000 + 287abc9 UnrealEditor-Engine 0x00007ffd048b0000 + 170f681 UnrealEditor-UnrealEd 0x00007ffd0e340000 + 84c04c UnrealEditor-UnrealEd 0x00007ffd0e340000 + 14cf6b6 UnrealEditor 0x00007ff75a160000 + 8e0b UnrealEditor 0x00007ff75a160000 + 2e33c UnrealEditor 0x00007ff75a160000 + 2e42a UnrealEditor 0x00007ff75a160000 + 318a4 UnrealEditor 0x00007ff75a160000 + 470c4 UnrealEditor 0x00007ff75a160000 + 4a37a KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</CallStack>**
** <IsCrashed>true</IsCrashed>**
** <Registers />**
** <ThreadID>13376</ThreadID>**
** <ThreadName>GameThread</ThreadName>**
</Thread>
<Thread>
<CallStack>ntdll 0x00007ffdf1d70000 + a0c24 KERNELBASE 0x00007ffdef120000 + 56989 KERNELBASE 0x00007ffdef120000 + 5688e PTCommonDll64 0x00007ffdc7a40000 + 2cc76 KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</CallStack>
<IsCrashed>false</IsCrashed>
<Registers />
<ThreadID>26068</ThreadID>
<ThreadName>Unknown</ThreadName>
</Thread>
<Thread>
<CallStack>ntdll 0x00007ffdf1d70000 + a07f4 KERNELBASE 0x00007ffdef120000 + 769a1 UnrealEditor-Core 0x00007ffd110c0000 + 737c18 UnrealEditor-Core 0x00007ffd110c0000 + 6bacf5 UnrealEditor-Core 0x00007ffd110c0000 + 6a9899 UnrealEditor-Core 0x00007ffd110c0000 + 6bdca9 KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</CallStack>
<IsCrashed>false</IsCrashed>
<Registers />
<ThreadID>4832</ThreadID>
<ThreadName>Unknown</ThreadName>
</Thread>
<Thread>
<CallStack>ntdll 0x00007ffdf1d70000 + a0754 ntdll 0x00007ffdf1d70000 + 55663 KERNELBASE 0x00007ffdef120000 + 4a3cd UnrealEditor-TraceLog 0x00007ffdd7710000 + 12085 UnrealEditor-TraceLog 0x00007ffdd7710000 + 1086 KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</CallStack>
<IsCrashed>false</IsCrashed>
<Registers />
<ThreadID>25088</ThreadID>
<ThreadName>Unknown</ThreadName>
</Thread>
<Thread>
<CallStack>ntdll 0x00007ffdf1d70000 + a0154 KERNELBASE 0x00007ffdef120000 + 39cee UnrealEditor-Core 0x00007ffd110c0000 + 798531 UnrealEditor-Core 0x00007ffd110c0000 + f8e64 UnrealEditor-Core 0x00007ffd110c0000 + d67db UnrealEditor-Core 0x00007ffd110c0000 + 10a2c6 UnrealEditor-Core 0x00007ffd110c0000 + d23d0 UnrealEditor-Core 0x00007ffd110c0000 + 2d7c93 UnrealEditor-Core 0x00007ffd110c0000 + 73c93d UnrealEditor-Core 0x00007ffd110c0000 + 7302b7 KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</CallStack>
<IsCrashed>false</IsCrashed>
<Registers />
<ThreadID>10088</ThreadID>
<ThreadName>Foreground Worker #0</ThreadName>
</Thread>
<Thread>
<CallStack>ntdll 0x00007ffdf1d70000 + a0154 KERNELBASE 0x00007ffdef120000 + 39cee UnrealEditor-Core 0x00007ffd110c0000 + 798531 UnrealEditor-Core 0x00007ffd110c0000 + f8e64 UnrealEditor-Core 0x00007ffd110c0000 + d67db UnrealEditor-Core 0x00007ffd110c0000 + 10a2c6 UnrealEditor-Core 0x00007ffd110c0000 + d23d0 UnrealEditor-Core 0x00007ffd110c0000 + 2d7c93 UnrealEditor-Core 0x00007ffd110c0000 + 73c93d UnrealEditor-Core 0x00007ffd110c0000 + 7302b7 KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</CallStack>
<IsCrashed>false</IsCrashed>
<Registers />
<ThreadID>19704</ThreadID>
<ThreadName>Foreground Worker #1</ThreadName>
</Thread>
<Thread>
<CallStack>ntdll 0x00007ffdf1d70000 + a0154 KERNELBASE 0x00007ffdef120000 + 39cee UnrealEditor-Core 0x00007ffd110c0000 + 798531 UnrealEditor-Core 0x00007ffd110c0000 + f8e64 UnrealEditor-Core 0x00007ffd110c0000 + d67db UnrealEditor-Core 0x00007ffd110c0000 + 10a2c6 UnrealEditor-Core 0x00007ffd110c0000 + d23d0 UnrealEditor-Core 0x00007ffd110c0000 + 2d7c93 UnrealEditor-Core 0x00007ffd110c0000 + 73c93d UnrealEditor-Core 0x00007ffd110c0000 + 7302b7 KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</CallStack>
<IsCrashed>false</IsCrashed>
<Registers />
<ThreadID>20728</ThreadID>
<ThreadName>Background Worker #2</ThreadName>
</Thread>
<Thread>
<CallStack>ntdll 0x00007ffdf1d70000 + a0154 KERNELBASE 0x00007ffdef120000 + 39cee UnrealEditor-Core 0x00007ffd110c0000 + 798531 UnrealEditor-Core 0x00007ffd110c0000 + f8e64 UnrealEditor-Core 0x00007ffd110c0000 + d67db UnrealEditor-Core 0x00007ffd110c0000 + 10a2c6 UnrealEditor-Core 0x00007ffd110c0000 + d23d0 UnrealEditor-Core 0x00007ffd110c0000 + 2d7c93 UnrealEditor-Core 0x00007ffd110c0000 + 73c93d UnrealEditor-Core 0x00007ffd110c0000 + 7302b7 KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</CallStack>
<IsCrashed>false</IsCrashed>
<Registers />
<ThreadID>16136</ThreadID>
<ThreadName>Background Worker #3</ThreadName>
</Thread>
<Thread>
<CallStack>ntdll 0x00007ffdf1d70000 + a0154 KERNELBASE 0x00007ffdef120000 + 39cee UnrealEditor-Core 0x00007ffd110c0000 + 798531 UnrealEditor-Core 0x00007ffd110c0000 + f8e64 UnrealEditor-Core 0x00007ffd110c0000 + d67db UnrealEditor-Core 0x00007ffd110c0000 + 10a2c6 UnrealEditor-Core 0x00007ffd110c0000 + d23d0 UnrealEditor-Core 0x00007ffd110c0000 + 2d7c93 UnrealEditor-Core 0x00007ffd110c0000 + 73c93d UnrealEditor-Core 0x00007ffd110c0000 + 7302b7 KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</CallStack>
<IsCrashed>false</IsCrashed>
<Registers />
<ThreadID>24404</ThreadID>
<ThreadName>Background Worker #4</ThreadName>
</Thread>
<Thread>
<CallStack>ntdll 0x00007ffdf1d70000 + a0154 KERNELBASE 0x00007ffdef120000 + 39cee UnrealEditor-Core 0x00007ffd110c0000 + 798531 UnrealEditor-Core 0x00007ffd110c0000 + f8e64 UnrealEditor-Core 0x00007ffd110c0000 + d67db UnrealEditor-Core 0x00007ffd110c0000 + 10a2c6 UnrealEditor-Core 0x00007ffd110c0000 + d23d0 UnrealEditor-Core 0x00007ffd110c0000 + 2d7c93 UnrealEditor-Core 0x00007ffd110c0000 + 73c93d UnrealEditor-Core 0x00007ffd110c0000 + 7302b7 KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</CallStack>
<IsCrashed>false</IsCrashed>
<Registers />
<ThreadID>25832</ThreadID>
<ThreadName>Background Worker #5</ThreadName>
</Thread>
<Thread>
<CallStack>ntdll 0x00007ffdf1d70000 + a0154 KERNELBASE 0x00007ffdef120000 + 39cee UnrealEditor-Core 0x00007ffd110c0000 + 798531 UnrealEditor-Core 0x00007ffd110c0000 + f8e64 UnrealEditor-Core 0x00007ffd110c0000 + d67db UnrealEditor-Core 0x00007ffd110c0000 + 10a2c6 UnrealEditor-Core 0x00007ffd110c0000 + d23d0 UnrealEditor-Core 0x00007ffd110c0000 + 2d7c93 UnrealEditor-Core 0x00007ffd110c0000 + 73c93d UnrealEditor-Core 0x00007ffd110c0000 + 7302b7 KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</CallStack>
<IsCrashed>false</IsCrashed>
<Registers />
<ThreadID>25068</ThreadID>
<ThreadName>Background Worker #6</ThreadName>
</Thread>
<Thread>
<CallStack>ntdll 0x00007ffdf1d70000 + a0154 KERNELBASE 0x00007ffdef120000 + 39cee UnrealEditor-Core 0x00007ffd110c0000 + 798531 UnrealEditor-Core 0x00007ffd110c0000 + f8e64 UnrealEditor-Core 0x00007ffd110c0000 + d67db UnrealEditor-Core 0x00007ffd110c0000 + 10a2c6 UnrealEditor-Core 0x00007ffd110c0000 + d23d0 UnrealEditor-Core 0x00007ffd110c0000 + 2d7c93 UnrealEditor-Core 0x00007ffd110c0000 + 73c93d UnrealEditor-Core 0x00007ffd110c0000 + 7302b7 KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</CallStack>
<IsCrashed>false</IsCrashed>
<Registers />
<ThreadID>7408</ThreadID>
<ThreadName>Background Worker #7</ThreadName>
</Thread>
<Thread>
<CallStack>ntdll 0x00007ffdf1d70000 + a0154 KERNELBASE 0x00007ffdef120000 + 39cee UnrealEditor-Core 0x00007ffd110c0000 + 798531 UnrealEditor-Core 0x00007ffd110c0000 + f8e64 UnrealEditor-Core 0x00007ffd110c0000 + d67db UnrealEditor-Core 0x00007ffd110c0000 + 10a2c6 UnrealEditor-Core 0x00007ffd110c0000 + d23d0 UnrealEditor-Core 0x00007ffd110c0000 + 2d7c93 UnrealEditor-Core 0x00007ffd110c0000 + 73c93d UnrealEditor-Core 0x00007ffd110c0000 + 7302b7 KERNEL32 0x00007ffdf1500000 + 1257d ntdll 0x00007ffdf1d70000 + 5af08</CallStack>
<IsCrashed>false</IsCrashed>
<Registers />
<ThreadID>27848</ThreadID>
<ThreadName>Background Worker #8</ThreadName>
...
...
<TimeOfCrash>638670505567100000</TimeOfCrash>
<bAllowToBeContacted>1</bAllowToBeContacted>
<CPUBrand>13th Gen Intel(R) Core(TM) i7-13700K</CPUBrand>
<CrashReportClientVersion>1.0</CrashReportClientVersion>
...
...
..
</FGenericCrashContext>
@seongholee that doesn’t look like valid code. CreateDefaultSubObject
needs a template parameter, doesn’t it?
In any case, I can’t really tell what’s going on here. Your call stack isn’t very helpful because you don’t seem to have Unreal Engine symbols installed. But I think it’s notable that it doesn’t have AMyActor
or anything Cesium related in it. Which makes me wonder if the crash has some cause that is unrelated to this code?
We use CreateDefaultSubObject
with a CesiumGlobeAnchor in our own CesiumSunSky.cpp, so I believe that should be working fine:
// The Sky Atmosphere should be positioned relative to the
// Scene/RootComponent, which is kept at the center of the Earth by the
// GlobeAnchorComponent.
SkyAtmosphere =
CreateDefaultSubobject<USkyAtmosphereComponent>(TEXT("SkyAtmosphere"));
SkyAtmosphere->SetupAttachment(Scene);
SkyAtmosphere->TransformMode =
ESkyAtmosphereTransformMode::PlanetCenterAtComponentTransform;
SkyAtmosphere->TransmittanceMinLightElevationAngle = 90.0f;
this->GlobeAnchor =
CreateDefaultSubobject<UCesiumGlobeAnchorComponent>(TEXT("GlobeAnchor"));
this->GlobeAnchor->SetAdjustOrientationForGlobeWhenMoving(false);
}
void ACesiumSunSky::_handleTransformUpdated(
USceneComponent* InRootComponent,
EUpdateTransformFlags UpdateTransformFlags,
ETeleportType Teleport) {
// This Actor generally shouldn't move with respect to the globe, but this
// method will be called on georeference change. We need to update the sun