After compiling a data asset blueprint, attempting to open the parent data asset will crash the editor.
From licensee: This is because in FAssetEditorToolkit::InitAssetEditor() the objects in ObjectsToEdit that are passed into a lambda `.IsEnabled_Lambda([ObjPtrsToEdit]()` and when it's called the object was collected. Using an array of TWeakObjectPtr (instead of UObject*) makes it possible to check if the object has been destroyed and the crash can be avoided.
Steps using attached example project:
Steps to repo without using attached example project:
[2023.02.16-19.14.51:137][834]LogWindows: Error: === Critical error: ===
[2023.02.16-19.14.51:137][834]LogWindows: Error:
[2023.02.16-19.14.51:137][834]LogWindows: Error: Fatal error!
[2023.02.16-19.14.51:137][834]LogWindows: Error:
[2023.02.16-19.14.51:137][834]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
[2023.02.16-19.14.51:137][834]LogWindows: Error:
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9defa4eec UnrealEditor-CoreUObject.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9c73c1c35 UnrealEditor-UnrealEd.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9ddedb23d UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de06cff9 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b1e1 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b3f8 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b291 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b3f8 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b291 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b3f8 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b291 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b3f8 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b291 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b3f8 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b291 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b3f8 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b291 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b3f8 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b291 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b3f8 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b291 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b3f8 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b291 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b3f8 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b291 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b3f8 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b291 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de05b3f8 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de069329 UnrealEditor-SlateCore.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de4cfb09 UnrealEditor-Slate.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de4cfc2f UnrealEditor-Slate.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de4ac132 UnrealEditor-Slate.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de4d0444 UnrealEditor-Slate.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de4acb09 UnrealEditor-Slate.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de4eec23 UnrealEditor-Slate.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff9de4ee333 UnrealEditor-Slate.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff709c995af UnrealEditor.exe!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff709cb287d UnrealEditor.exe!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff709cb296a UnrealEditor.exe!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff709cb5680 UnrealEditor.exe!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff709cc71b4 UnrealEditor.exe!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ff709cca516 UnrealEditor.exe!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ffa22397614 KERNEL32.DLL!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error: [Callstack] 0x00007ffa236426a1 ntdll.dll!UnknownFunction []
[2023.02.16-19.14.51:137][834]LogWindows: Error:
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-177367 in the post.
1 |
Component | UE - Gameplay - Blueprint Compiler |
---|---|
Affects Versions | 5.1 |
Target Fix | 5.2 |
Created | Feb 16, 2023 |
---|---|
Resolved | Mar 2, 2023 |
Updated | Mar 7, 2023 |