20tab / UnrealEnginePython

Embed Python in Unreal Engine 4
MIT License
2.75k stars 746 forks source link

First demo in docs/Http_API.md cause the editor crashed in 4.27.2 #885

Closed phyank closed 2 years ago

phyank commented 2 years ago

I tried the demo in docs/Http_API.md and my unreal editor crashed with the following error:

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000000 UE4Editor_UnrealEnginePython!ue_py_ihttp_request_init() [C:\Users\jasonjhong\Documents\Unreal Projects\myproject4\Plugins\UnrealEnginePython\Source\UnrealEnginePython\Private\Http\UEPyIHttpRequest.cpp:316]

After I convert the input strings to bytes, another exception was raised and the editor crashed: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION writing address 0x0000000000000000 UE4Editor_UnrealEnginePython!ue_PyIHttpRequest_dealloc() [C:\Users\jasonjhong\Documents\Unreal Projects\myproject4\Plugins\UnrealEnginePython\Source\UnrealEnginePython\Private\Http\UEPyIHttpRequest.cpp:265]

I tried to hold the reference of IHttpRequest in a global variable before the request result was processed but nothing changed.

It seems like HTTP APIs didn't work in 4.27.2