Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using LoadObject will freeze the program #87

Open
xNocken opened this issue May 11, 2023 · 0 comments
Open

Using LoadObject will freeze the program #87

xNocken opened this issue May 11, 2023 · 0 comments

Comments

@xNocken
Copy link

xNocken commented May 11, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant