CUE4Parse icon indicating copy to clipboard operation
CUE4Parse copied to clipboard

Using LoadObject will freeze the program

Open xNocken opened this issue 1 year ago • 0 comments

Whenever i use the LoadObject function instead of the LoadObjectAsync function the program freezes forever. Using the LoadObjectAsync function with await seems to work but using the async function in a not async context wont work.

I figured out that the problem comes from AbstractFileProvider.cs

var uasset = await uassetTask;

I also noticed that it works when i use the debugger to step into the Task.Run(CreateReader) function thats being called above by file.CreateReaderAsync() even tho it doesnt step into the function.

Current workaround: Using the LoadObjectAsync function in an async function seems to fix it but is quite annoying.

xNocken avatar May 11 '23 15:05 xNocken