Description

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 to Reproduce

Steps using attached example project:

  • Open DataAsset
  • Open DataAsset_Parent (while keeping DataAsset open)
  • Compile DataAsset_Parent
  • Select DataAsset editor tab, and observe editor will crash

 

Steps to repo without using attached example project:

  • Create a new primary data asset
  • Create a new data asset that is derived from the new primary data asset
  • Open data asset and its parent (primary data asset) in the asset editor
  • Compile primary data asset
  • Select data asset tab
Callstack

[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: 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-177367 in the post.

1
Login to Vote

Duplicate
ComponentUE - Gameplay - Blueprint Compiler
Affects Versions5.1
Target Fix5.2
CreatedFeb 16, 2023
ResolvedMar 2, 2023
UpdatedMar 7, 2023