Git Product home page Git Product logo

Comments (3)

chinmay4github1987 avatar chinmay4github1987 commented on July 20, 2024

Same issue,

  1. I am calling a BroadcastReceiver to make a phone call from outside of the app from a flutterengineplugin on data receive i am triggering the flutter_overlay_window for first time its working.
  2. Giving error on 2nd call the window is not loading giving error W/TextureView(19304): A TextureView or a subclass can only be used with hardware acceleration enabled.
    W/FlutterView(19304): Tried to send viewport metrics from Android to Flutter but this FlutterView was not attached to a FlutterEngine.
    W/FlutterView(19304): Tried to send viewport metrics from Android to Flutter but this FlutterView was not attached to a FlutterEngine.
    W/FlutterView(19304): Tried to send viewport metrics from Android to Flutter but this FlutterView was not attached to a FlutterEngine.
    D/OverLay (19304): Destroying the overlay window service

from flutter_overlay_window.

chinmay4github1987 avatar chinmay4github1987 commented on July 20, 2024

When app is going to sleep mode and after wake mode its crashing
E/MethodChannel#x-slayer/overlay_channel( 2243): Failed to handle method call
E/MethodChannel#x-slayer/overlay_channel( 2243): java.lang.IllegalStateException: Not allowed to start service Intent { flg=0x30000000 cmp=com.qspiders.flutter_project/flutter.overlay.window.flutter_overlay_window.OverlayService (has extras) }: app is in background uid UidRecord{8681324 u0a168 RCVR bg:+36m31s630ms idle change:uncached procs:1 seq(0,0,0)}
E/MethodChannel#x-slayer/overlay_channel( 2243): at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1616)
E/MethodChannel#x-slayer/overlay_channel( 2243): at android.app.ContextImpl.startService(ContextImpl.java:1571)
E/MethodChannel#x-slayer/overlay_channel( 2243): at android.content.ContextWrapper.startService(ContextWrapper.java:669)
E/MethodChannel#x-slayer/overlay_channel( 2243): at flutter.overlay.window.flutter_overlay_window.FlutterOverlayWindowPlugin.onMethodCall(FlutterOverlayWindowPlugin.java:110)
E/MethodChannel#x-slayer/overlay_channel( 2243): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/MethodChannel#x-slayer/overlay_channel( 2243): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/MethodChannel#x-slayer/overlay_channel( 2243): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/MethodChannel#x-slayer/overlay_channel( 2243): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/MethodChannel#x-slayer/overlay_channel( 2243): at android.os.Handler.handleCallback(Handler.java:883)
E/MethodChannel#x-slayer/overlay_channel( 2243): at android.os.Handler.dispatchMessage(Handler.java:100)
E/MethodChannel#x-slayer/overlay_channel( 2243): at android.os.Looper.loop(Looper.java:214)
E/MethodChannel#x-slayer/overlay_channel( 2243): at android.app.ActivityThread.main(ActivityThread.java:7356)
E/MethodChannel#x-slayer/overlay_channel( 2243): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#x-slayer/overlay_channel( 2243): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
E/MethodChannel#x-slayer/overlay_channel( 2243): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)

from flutter_overlay_window.

abneradekz avatar abneradekz commented on July 20, 2024

Same issue:

E/AndroidRuntime(18128): FATAL EXCEPTION: main
E/AndroidRuntime(18128): Process: br.com.neodelivery.driver, PID: 18128
E/AndroidRuntime(18128): java.lang.RuntimeException: Unable to create service flutter.overlay.window.flutter_overlay_window.OverlayService: 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(18128): at android.app.ActivityThread.handleCreateService(ActivityThread.java:4664)
E/AndroidRuntime(18128): at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)
E/AndroidRuntime(18128): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2264)
E/AndroidRuntime(18128): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(18128): at android.os.Looper.loopOnce(Looper.java:205)
E/AndroidRuntime(18128): at android.os.Looper.loop(Looper.java:294)
E/AndroidRuntime(18128): at android.app.ActivityThread.main(ActivityThread.java:8177)
E/AndroidRuntime(18128): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(18128): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
E/AndroidRuntime(18128): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
E/AndroidRuntime(18128): 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(18128): at flutter.overlay.window.flutter_overlay_window.OverlayService.(OverlayService.java:58)
E/AndroidRuntime(18128): at java.lang.Class.newInstance(Native Method)
E/AndroidRuntime(18128): at android.app.AppComponentFactory.instantiateService(AppComponentFactory.java:129)
E/AndroidRuntime(18128): at androidx.core.app.CoreComponentFactory.instantiateService(CoreComponentFactory.java:75)
E/AndroidRuntime(18128): at android.app.ActivityThread.handleCreateService(ActivityThread.java:4626)
E/AndroidRuntime(18128): ... 9 more

from flutter_overlay_window.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.