jrun
July 31, 2023, 4:23pm
1
With a brand new project, I add the Cesium plugin and restart. When I add my token and click the ‘Create New Project Default Token’, I get this error. I have done this half a dozen times before without issue, but never in 5.2 with the latest plugin.
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
UnrealEditor_CesiumEditor!CesiumIonClient::Connection::createToken()
UnrealEditor_CesiumEditor!<lambda_ff40746f3747dd0a512cf6f583c38994>::operator()() [D:\build\U5M-Marketplace\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\CesiumForUnreal\Source\CesiumEditor\Private\SelectCesiumIonToken.cpp:417]
UnrealEditor_CesiumEditor!SelectCesiumIonToken::UseOrCreate() [D:\build\U5M-Marketplace\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\CesiumForUnreal\Source\CesiumEditor\Private\SelectCesiumIonToken.cpp:444]
UnrealEditor_CesiumEditor!TBaseSPMethodDelegateInstance<0,SelectCesiumIonToken,1,FReply __cdecl(void),FDefaultDelegateUserPolicy>::Execute() [D:\RocketSync\5.2.0-25360045+++UE5+Release-5.2\Working\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:275]
I wrote up an issue for this:
opened 11:44AM - 01 Aug 23 UTC
If you're not logged in, the "Select a Cesium ion Token" panel looks like this:
…
![image](https://github.com/CesiumGS/cesium-unreal/assets/924374/6b74e47f-6253-4ff3-a87e-1e3c70e46401)
This is kind of broken in a few of ways:
1. There's only one option - to specify a token - but the button is mislabeled "Create New Project Default Token"
2. The radio button next to the Specify a token box is invisible. It also should be selected by default because it's the only option, but it's not.
3. Clicking that "Create New Project Default Token" causes Cesium for Unreal to crash.
If you actually select "Specify a token" first, then the panel looks like this:
![image](https://github.com/CesiumGS/cesium-unreal/assets/924374/8b797630-c58b-4423-8e63-a28dfd1ea93f)
And now you can click "Use as project default token" without crashing.
You should be able to work around it by clicking on the words “Specify a token”. That will change the label on the button, and clicking it will no longer crash.
jrun
August 2, 2023, 4:24pm
3
Thanks. I didn’t realize I wasn’t logged in. Once I read your message I realized I needed to scroll down and login. Once I did everything worked fine!