Skip to content

Attribute visualization functions crashing Unreal Engine 5.4.4 #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Archives0 opened this issue Jan 31, 2025 · 0 comments
Open

Attribute visualization functions crashing Unreal Engine 5.4.4 #132

Archives0 opened this issue Jan 31, 2025 · 0 comments

Comments

@Archives0
Copy link

I am attempting to use the functions defined in AttributeComponent.cpp to visualize attributes of the New York 3D Object dataset but am having an issue. I am creating the New York layer in Blueprints and then adding the layer to the map's layer collection. I am then calling the Setup3DAttributes function from blueprints and passing a reference of the previous layer to the function.

Image

Whenever either Setup3DAttributesFloatAndIntegerType or Setup3DAttributesOtherType are run, the engine crashes and produces the following error message.

Image

In file, the error message points to the following line of code in Setup3DAttributesFloatAndIntegerType:
layerAPIObject->SetAttributesToVisualize(layerAttributes.MoveToArray());

I have made many attempts to verify the validity of the layer APIObject and ensure it is not a nullptr, but no matter what I do, the engine always crashes at this line. Commenting this line out causes the engine to instead crash at the line:
Layer->SetMaterialReference(LoadObject<UMaterial>(this, TEXT("Material'/Game/Assets/MAT_BasicPBR'")));

I am not sure how to proceed with this issue and have been working to resolve it for a few days now. Any insight would be appreciated, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant