20tab / UnrealEnginePython

Embed Python in Unreal Engine 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

phyank opened this issue · comments

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