-
Notifications
You must be signed in to change notification settings - Fork 124
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
Attempt to invoke virtual method 'wd.a io.flutter.embedding.engine.a.j()' on a null object reference #129
Comments
I'm having the same problem as you, for me the flow that happens is that when the application dies in a few moments the overlay disappears, but the overlay service still exists for a short period of time. If the user opens the application in this period, the application crashes |
Hi @PedroAlvim , Yes it happens with me as well, if i remove app from the recent apps and bubble is active so after some time it'll shows that app is keeps stopping. |
Hi @OsamaQureshi796, In my case, finding the cause in OverlayService, and fixed it there, what changed was that the flutterChannel and overlayMessageChannel variables no longer have initiators, and just before using them in onStartCommand, I check if it is null and fill it in if necessary. I'll try to make a pull request later with this fix, I don't know if it's the best way, but it definitely solved my problem. |
Hi @PedroAlvim i have tried to use your repo instead of X-SLAYER but same issue appear even while i'm using yours |
Hi @taghassan54 did you still see the error. if yes can you please share your crash report. Thanks |
Hi @X-SLAYER , please if you can fix this issue. |
I think i found the solution, So in my case when i remove the app from the background by swipe up the service try to restart and as a result there is no active intent. so i don't need the service to be restarted after the app is killed. i just simply added bellow line of code to OverlayService.java in onStartCommand: here's how my code looks like at the start of the onStartCommand method.
Change in MainActivity.kt
|
Dear @X-SLAYER
I'm using flutter_overlay_window latest version.
Unfortunately i'm getting lots of fatal exceptions in firebase crashlytics regarding flutter_overlay_window.
Bellow is the crash report from firebase crashlytics.
Could you please take some of your time look into this issue.
Thanks
The text was updated successfully, but these errors were encountered: