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

Async method call from requestAnimationFrame ? #447

Open
devnewton opened this issue Jan 6, 2020 · 1 comment
Open

Async method call from requestAnimationFrame ? #447

devnewton opened this issue Jan 6, 2020 · 1 comment

Comments

@devnewton
Copy link
Contributor

@devnewton devnewton commented Jan 6, 2020

I have an async annotated method called from requestAnimationFrame.

I got an null pointer exception because $rt_nativeThread() returns null.

I think it is related to #436 but not sure.

@konsoletyper

This comment has been minimized.

Copy link
Owner

@konsoletyper konsoletyper commented Jan 9, 2020

You are right. Looks like you are trying to call async code from native JavaScript callback. Avoid this or run async code from a separate thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.