TMap with enum class key crashed on android

I use a enum class as a TMap key, and used TMap in blueprint to get value. The TMap is get from a class defaults,and it crashed in android device.

It is not crash on windows, and not crash by getting the TMap from a instanced character class . I upload the screen shot of my code , blueprint and the crash log.

127758-enumclass.png

Hi ,

I tried making a simple test project using a TMap with a custom UENUM as the key, and it appeared to work fine for me on an Android device. Would it be possible to get all of the logs for when the crash occurs, and more details about how you are using this TMap or a small sample project that shows the crash?

Hi ,

I crashed when I try to get the TMap property by “GetClassDefault” function from a class in anther class’s blueprint. Do you tried this way or not?

And how can I give you a smaple project? I can try to make one.

Thanks for your reply.

Hi ,

I believe I have actually managed to reproduce this issue on Windows. I need to run a few more tests to make sure this is the same crash, but it looks the same as what you described.

Hi ,

Thank you for bringing this to our attention. I was able to reproduce the issue that you described both on Windows as well as when launching onto an Android device. I have entered UE-43540 to have this investigated further.

Just a quick update on this issue. It looks like this was actually fixed internally a few days ago in a different stream from the one that I was testing in. The fix was added in CL 3353658, and when I tested again including that fix, the crash no longer occurred for me.

Thank you very much for your reply ,:slight_smile:

Is there any way to get access to this commit?

Hi draquod,

This does not appear to have been merged into the Master branch yet. Once that happens, I’ll try to get you the commit for that.

Hi draquod,

I apologize, I missed when this went into the Master branch. It was merged in as part of this commit. Specifically, the change to EnumProperty.cpp in that commit.