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

Crached when close overlay in android 12 #83

Closed
osama450 opened this issue Aug 28, 2023 · 5 comments · Fixed by #107
Closed

Crached when close overlay in android 12 #83

osama450 opened this issue Aug 28, 2023 · 5 comments · Fixed by #107

Comments

@osama450
Copy link

osama450 commented Aug 28, 2023

when i try to close overlay many times app crach only in android 12 phons

java.lang.NullPointerException: Attempt to invoke interface method 'void android.view.WindowManager.updateViewLayout(android.view.View, android.view.ViewGroup$LayoutParams)' on a null object reference
E/AndroidRuntime(29160): at flutter.overlay.window.flutter_overlay_window.OverlayService$TrayAnimationTimerTask.lambda$run$0$flutter-overlay-window-flutter_overlay_window-OverlayService$TrayAnimationTimerTask(OverlayService.java:355)
E/AndroidRuntime(29160): at flutter.overlay.window.flutter_overlay_window.OverlayService$TrayAnimationTimerTask$$ExternalSyntheticLambda0.run(Unknown Source:2)
E/AndroidRuntime(29160): at android.os.Handler.handleCallback(Handler.java:900)
E/AndroidRuntime(29160): at android.os.Handler.dispatchMessage(Handler.java:103)
E/AndroidRuntime(29160): at android.os.Looper.loop(Looper.java:219)
E/AndroidRuntime(29160): at android.app.ActivityThread.main(ActivityThread.java:8668)
E/AndroidRuntime(29160): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(29160): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
E/AndroidRuntime(29160): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)

@osama450
Copy link
Author

@X-SLAYER

@osama450 osama450 changed the title Crached when close overlay Crached when close overlay in android 12 Aug 28, 2023
@M-ImranNawaz
Copy link

Assalam-u-Alaikum @osama450!
I hope you are doing well. Have you found any solution regarding crashing?

@osama450
Copy link
Author

Assalam-u-Alaikum @osama450! I hope you are doing well. Have you found any solution regarding crashing?

This Fork fix problem : https://github.com/diegohzea/flutter_overlay_window

1 similar comment
@osama450
Copy link
Author

Assalam-u-Alaikum @osama450! I hope you are doing well. Have you found any solution regarding crashing?

This Fork fix problem : https://github.com/diegohzea/flutter_overlay_window

@X-SLAYER
Copy link
Owner

X-SLAYER commented Mar 3, 2024

can you try the new fix here

  flutter_overlay_window:
    git:
      url: git@github.com:X-SLAYER/flutter_overlay_window.git
      ref: feature/overlay-improvements

@X-SLAYER X-SLAYER linked a pull request Mar 30, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants