landelare / ue5coro

A C++20 coroutine plugin offering seamless integration with Unreal Engine 5.
BSD 3-Clause Clear License
617 stars 57 forks source link

co_await Promise.GetFuture(); crash #9

Closed pk1234dva closed 1 year ago

pk1234dva commented 1 year ago

Hey, the following seems to cause a crash in UE 5.0, Develop/Debug editor builds, initiated from a UFUNCTION(CallInEditor)

TPromise<int> Promise;
Promise.SetValue(123);
auto val = co_await Promise.GetFuture(); // `0xC0000005: Access violation reading location 0x0000000000000000.`

Not sure if I'm doing something wrong, thought I would mention it.

landelare commented 1 year ago

Thank you for the bug report, it will be fixed in 1.7.