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

Thousands of FlutterJNI errors when app is detached #79

Open
badger3512 opened this issue Jan 31, 2022 · 0 comments
Open

Thousands of FlutterJNI errors when app is detached #79

badger3512 opened this issue Jan 31, 2022 · 0 comments

Comments

@badger3512
Copy link

Flutter (Channel stable, 2.8.1, on Ubuntu 20.04.3 LTS 5.4.0-96-generic, locale en_US.UTF-8)

If you run the example app and then detach using the back button, you get 1000's of errors written to logcat:

01-31 11:56:35.544 2946 2946 W FlutterJNI: Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: hemanthraj/flutter_compass. Response ID: 10213

If you restart the example, then detach again, you get two streams of the error message. A third restart/detach, ditto. It appears that the only way to stop them is to reboot the device.

Is there some way to shutdown the channel, say at app inactive, so this doesn't occur? The error messages don't start until detach.

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