Description

Using the python commandlet to spawn actors within a Map and then saving it causes a crash in the commandline.

Tested in 4.21.2 (CL - 4753647), 4.22.1 (CL - 6063286),  4.23 (CL - 6338849)

Steps to Reproduce
  1. Create a Blank project
  2. Enable the Python and EditorScriptingUtilities plugins
  3. Create a Blueprint Actor class called BP_Actor
  4. Save the current map and name it NewMap
  5. Create the following Python script:
import unreal

projectContentDir = "/Game/"
unreal.EditorLevelLibrary.load_level(projectContentDir + "NewMap")
test_bp = unreal.EditorAssetLibrary.load_blueprint_class(projectContentDir + "BP_Actor")
vector = unreal.Vector(0, 0, 0)
unreal.EditorLevelLibrary.spawn_actor_from_class(test_bp, vector)
unreal.EditorLevelLibrary.save_all_dirty_levels()
  1. Open the Windows PowerShell to the location of the Engine/Binaries/Win64 for the current engine version you are testing in
  2. Run the following command:
.\UE4Editor-Cmd.exe "<path to UProject file>" -run-pythonscript -script= "<path to Python script>"

Expected: The Project loads and executes the above python script

Callstack

2019.05.06-20.25.31:683][ 0]LogWindows: Error: === Critical error: ===
[2019.05.06-20.25.31:683][ 0]LogWindows: Error:
[2019.05.06-20.25.31:685][ 0]LogWindows: Error: Fatal error!
[2019.05.06-20.25.31:686][ 0]LogWindows: Error:
[2019.05.06-20.25.31:687][ 0]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000860
[2019.05.06-20.25.31:688][ 0]LogWindows: Error:
[2019.05.06-20.25.31:689][ 0]LogWindows: Error: [Callstack] 0x00007ffc0f8d691b UE4Editor-UnrealEd.dll!UnknownFunction []
[2019.05.06-20.25.31:689][ 0]LogWindows: Error: [Callstack] 0x00007ffc0f783f29 UE4Editor-UnrealEd.dll!UnknownFunction []
[2019.05.06-20.25.31:690][ 0]LogWindows: Error: [Callstack] 0x00007ffc0fc7ee63 UE4Editor-UnrealEd.dll!UnknownFunction []
[2019.05.06-20.25.31:691][ 0]LogWindows: Error: [Callstack] 0x00007ffbfa3dc19c UE4Editor-EditorScriptingUtilities.dll!UnknownFunction []
[2019.05.06-20.25.31:691][ 0]LogWindows: Error: [Callstack] 0x00007ffbfa3dc3cf UE4Editor-EditorScriptingUtilities.dll!UnknownFunction []
[2019.05.06-20.25.31:692][ 0]LogWindows: Error: [Callstack] 0x00007ffbfa3e3a8f UE4Editor-EditorScriptingUtilities.dll!UnknownFunction []
[2019.05.06-20.25.31:692][ 0]LogWindows: Error: [Callstack] 0x00007ffc10bfbac8 UE4Editor-CoreUObject.dll!UnknownFunction []
[2019.05.06-20.25.31:694][ 0]LogWindows: Error: [Callstack] 0x00007ffc10e0df07 UE4Editor-CoreUObject.dll!UnknownFunction []
[2019.05.06-20.25.31:697][ 0]LogWindows: Error: [Callstack] 0x00007ffbfb8467db UE4Editor-PythonScriptPlugin.dll!UnknownFunction []
[2019.05.06-20.25.31:698][ 0]LogWindows: Error: [Callstack] 0x00007ffbfb887799 UE4Editor-PythonScriptPlugin.dll!UnknownFunction []
[2019.05.06-20.25.31:700][ 0]LogWindows: Error: [Callstack] 0x00007ffbfb8856cd UE4Editor-PythonScriptPlugin.dll!UnknownFunction []
[2019.05.06-20.25.31:700][ 0]LogWindows: Error: [Callstack] 0x00007ffbfb82f39f UE4Editor-PythonScriptPlugin.dll!UnknownFunction []
[2019.05.06-20.25.31:703][ 0]LogWindows: Error: [Callstack] 0x000000005cbf4dd3 python27.dll!UnknownFunction []
[2019.05.06-20.25.31:704][ 0]LogWindows: Error: [Callstack] 0x000000005cca1fbb python27.dll!UnknownFunction []
[2019.05.06-20.25.31:704][ 0]LogWindows: Error: [Callstack] 0x000000005cca1a55 python27.dll!UnknownFunction []
[2019.05.06-20.25.31:705][ 0]LogWindows: Error: [Callstack] 0x000000005cc9eeab python27.dll!UnknownFunction []
[2019.05.06-20.25.31:705][ 0]LogWindows: Error: [Callstack] 0x000000005cca0421 python27.dll!UnknownFunction []
[2019.05.06-20.25.31:706][ 0]LogWindows: Error: [Callstack] 0x000000005cc9b459 python27.dll!UnknownFunction []
[2019.05.06-20.25.31:708][ 0]LogWindows: Error: [Callstack] 0x00007ffbfb834545 UE4Editor-PythonScriptPlugin.dll!UnknownFunction []
[2019.05.06-20.25.31:709][ 0]LogWindows: Error: [Callstack] 0x00007ffbfb85f7d4 UE4Editor-PythonScriptPlugin.dll!UnknownFunction []
[2019.05.06-20.25.31:710][ 0]LogWindows: Error: [Callstack] 0x00007ffbfb83ffc2 UE4Editor-PythonScriptPlugin.dll!UnknownFunction []
[2019.05.06-20.25.31:711][ 0]LogWindows: Error: [Callstack] 0x00007ffbfb848e77 UE4Editor-PythonScriptPlugin.dll!UnknownFunction []
[2019.05.06-20.25.31:711][ 0]LogWindows: Error: [Callstack] 0x00007ff6cff3e402 UE4Editor-Cmd.exe!UnknownFunction []
[2019.05.06-20.25.31:712][ 0]LogWindows: Error: [Callstack] 0x00007ff6cff35377 UE4Editor-Cmd.exe!UnknownFunction []
[2019.05.06-20.25.31:712][ 0]LogWindows: Error: [Callstack] 0x00007ff6cff355ca UE4Editor-Cmd.exe!UnknownFunction []
[2019.05.06-20.25.31:712][ 0]LogWindows: Error: [Callstack] 0x00007ff6cff4316c UE4Editor-Cmd.exe!UnknownFunction []
[2019.05.06-20.25.31:713][ 0]LogWindows: Error: [Callstack] 0x00007ff6cff44cb6 UE4Editor-Cmd.exe!UnknownFunction []
[2019.05.06-20.25.31:714][ 0]LogWindows: Error: [Callstack] 0x00007ffc671f37e4 KERNEL32.DLL!UnknownFunction []
[2019.05.06-20.25.31:715][ 0]LogWindows: Error: [Callstack] 0x00007ffc68e9cb81 ntdll.dll!UnknownFunction []
[2019.05.06-20.25.31:715][ 0]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-74295 in the post.

4
Login to Vote

Won't Fix
ComponentUE - Editor - Workflow Systems
Affects Versions4.234.21.24.22.1
CreatedMay 7, 2019
ResolvedAug 27, 2021
UpdatedJan 22, 2024
View Jira Issue