SystemAlertWindow icon indicating copy to clipboard operation
SystemAlertWindow copied to clipboard

When the app is killed / Not recently, the application crashes.

Open Connect-Suraj-Chaudhari opened this issue 1 year ago • 1 comments

When the app is killed / Not recently, the application crashes.

I am trying to open the overlay whenever a notification is received. The background is not working. Can anyone help us?

E/AndroidRuntime(17843): Process: com.appName, PID: 17843 E/AndroidRuntime(17843): java.lang.RuntimeException: Unable to create service in.jvapps.system_alert_window.services.WindowServiceNew: java.lang.NullPointerException: Attempt to invoke virtual method 'io.flutter.embedding.engine.dart.DartExecutor io.flutter.embedding.engine.FlutterEngine.getDartExecutor()' on a null object reference

E/AndroidRuntime(17843): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'io.flutter.embedding.engine.dart.DartExecutor io.flutter.embedding.engine.FlutterEngine.getDartExecutor()' on a null object reference E/AndroidRuntime(17843): at in.jvapps.system_alert_window.services.WindowServiceNew.(WindowServiceNew.java:66)

Connect-Suraj-Chaudhari avatar Dec 21 '24 12:12 Connect-Suraj-Chaudhari

I am also having this issue in 2.0.4. This causes a dialog "AppName keeps stopping".

This is a fatal crash. Please catch this exception so the dialog does not appear. In the following image, the getDartExecutor function is producing this issue.

How to reproduce:

  1. adb root
  2. adb shell pkill -9 appName

Image

ScorpiosCrux avatar Feb 19 '25 17:02 ScorpiosCrux