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

when close, the app crash #48

Closed
linkaituo opened this issue Feb 1, 2023 · 3 comments
Closed

when close, the app crash #48

linkaituo opened this issue Feb 1, 2023 · 3 comments

Comments

@linkaituo
Copy link

hey:
when i close the window with: FlutterOverlayWindow.closeOverlay();
the app will be crash, get log:

E/flutter (23445): [ERROR:flutter/fml/platform/android/jni_util.cc(204)] java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.ViewParent.requestSendAccessibilityEvent(android.view.View, android.view.accessibility.AccessibilityEvent)' on a null object reference
E/flutter (23445): at io.flutter.view.AccessibilityBridge.sendAccessibilityEvent(AccessibilityBridge.java:1908)
E/flutter (23445): at io.flutter.view.AccessibilityBridge.sendWindowContentChangeEvent(AccessibilityBridge.java:1967)
E/flutter (23445): at io.flutter.view.AccessibilityBridge.updateSemantics(AccessibilityBridge.java:1719)
E/flutter (23445): at io.flutter.view.AccessibilityBridge$1.updateSemantics(AccessibilityBridge.java:345)
E/flutter (23445): at io.flutter.embedding.engine.FlutterJNI.updateSemantics(FlutterJNI.java:762)
E/flutter (23445): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (23445): at android.os.MessageQueue.next(MessageQueue.java:374)
E/flutter (23445): at android.os.Looper.loopOnce(Looper.java:163)
E/flutter (23445): at android.os.Looper.loop(Looper.java:293)
E/flutter (23445): at android.app.ActivityThread.main(ActivityThread.java:9551)
E/flutter (23445): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (23445): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
E/flutter (23445): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1204)
E/flutter (23445):
F/flutter (23445): [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1233)] Check failed: fml::jni::CheckException(env).

any i will atention?
@linkaituo
Copy link
Author

i try the example on the project, it's good.
use the example , when close the overlay window, if hot reload, it will crash

@X-SLAYER
Copy link
Owner

the new version is published you can check the close it works fine flutter_overlay_window: ^0.4.1

@linkaituo
Copy link
Author

ok,ths

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

2 participants