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

[android_alarm_manager] Flutter Audio Query plugin not loaded in callback isolate #50826

Closed
Tracked by #77
geisterfurz007 opened this issue Feb 14, 2020 · 3 comments
Closed
Tracked by #77
Labels
found in release: 1.20 Found to occur in 1.20 has reproducible steps The issue has been confirmed reproducible and is ready to work on p: android_alarm_manager The Android background execution plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels.

Comments

@geisterfurz007
Copy link

Steps to Reproduce

  1. Clone this demo repository.
  2. Get the packages.
  3. Run the app.
  4. Allow the app to access local files and folders.

Expected results:
When the callback is ran, the FlutterAudioQuery (FAQ for simplicity) plugin is loaded and functions of the plugin can be executed without any problems. The demo code should print something along the lines of

Setting up alarm!
true
Main function: 0
Callback 0!

Actual results:
While the FAQ plugin runs when called in the main function, it is not loaded in the isolate when the alarm callback runs. The PathProvider plugin however runs just fine with a similar setup.
From my understanding with Android Embedding V2 (as declared in the AndroidManifest.xml), all plugins should be loaded through reflection and creating my own Application to load the plugins should not be required.

For transparency: I asked a question about this on Stack Overflow here because I wasn't sure whether this is a bug with Embedding V2, the AndroidAlarmManager or the FlutterAudioQuery plugin.

Logs
[  +36 ms] executing: [D:\Programming\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +137 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] 0b8abb4724aa590dd0f429683339b1e045a1594d
[        ] executing: [D:\Programming\flutter\] git describe --match v*.*.* --first-parent --long --tags
[ +256 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.12.13+hotfix.8-0-g0b8abb472
[  +11 ms] executing: [D:\Programming\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[  +60 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [D:\Programming\flutter\] git ls-remote --get-url origin
[  +55 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +127 ms] executing: [D:\Programming\flutter\] git rev-parse --abbrev-ref HEAD
[  +58 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[ +187 ms] executing: D:\Programming\Android_SDK\platform-tools\adb.exe devices -l
[  +38 ms] Exit code 0 from: D:\Programming\Android_SDK\platform-tools\adb.exe devices -l
[        ] List of devices attached
           emulator-5554          device product:sdk_gphone_x86_arm model:AOSP_on_IA_Emulator device:generic_x86_arm transport_id:2
[  +23 ms] D:\Programming\Android_SDK\platform-tools\adb.exe -s emulator-5554 shell getprop
[ +144 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +7 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +39 ms] Found plugin android_alarm_manager at C:\Users\redacted\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\android_alarm_manager-0.4.5+3\
[  +60 ms] Found plugin flutter_audio_query at C:\Users\redacted\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_audio_query-0.3.3\
[ +162 ms] Found plugin android_alarm_manager at C:\Users\redacted\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\android_alarm_manager-0.4.5+3\
[  +18 ms] Found plugin flutter_audio_query at C:\Users\redacted\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_audio_query-0.3.3\
[ +121 ms] Generating D:\Projects\Other\flutter-android-alarm-manager-plugin-issue\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +103 ms] ro.hardware = ranchu
[ +101 ms] Launching lib\main.dart on AOSP on IA Emulator in debug mode...
[  +12 ms] executing: D:\Programming\Android_SDK\build-tools\28.0.3\aapt dump xmltree D:\Projects\Other\flutter-android-alarm-manager-plugin-issue\build\app\outputs\apk\app.apk AndroidManifest.xml
[  +83 ms] Exit code 0 from: D:\Programming\Android_SDK\build-tools\28.0.3\aapt dump xmltree D:\Projects\Other\flutter-android-alarm-manager-plugin-issue\build\app\outputs\apk\app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="io.github.geisterfurz007.stack_overflow_demo" (Raw: "io.github.geisterfurz007.stack_overflow_demo")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=22)
                 A: android:name(0x01010003)="android.permission.RECEIVE_BOOT_COMPLETED" (Raw: "android.permission.RECEIVE_BOOT_COMPLETED")
               E: uses-permission (line=23)
                 A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
               E: uses-permission (line=24)
                 A: android:name(0x01010003)="android.permission.READ_EXTERNAL_STORAGE" (Raw: "android.permission.READ_EXTERNAL_STORAGE")
               E: uses-permission (line=25)
                 A: android:name(0x01010003)="android.permission.WRITE_EXTERNAL_STORAGE" (Raw: "android.permission.WRITE_EXTERNAL_STORAGE")
               E: application (line=27)
                 A: android:label(0x01010001)="stack_overflow_demo" (Raw: "stack_overflow_demo")
                 A: android:icon(0x01010002)=@0x7f0a0000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=33)
                   A: android:theme(0x01010000)=@0x7f0c00a0
                   A: android:name(0x01010003)="io.github.geisterfurz007.stack_overflow_demo.MainActivity" (Raw: "io.github.geisterfurz007.stack_overflow_demo.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=40)
                     E: action (line=41)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=43)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=50)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: service (line=54)
                   A: android:name(0x01010003)="io.flutter.plugins.androidalarmmanager.AlarmService" (Raw: "io.flutter.plugins.androidalarmmanager.AlarmService")
                   A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=59)
                   A: android:name(0x01010003)="io.flutter.plugins.androidalarmmanager.AlarmBroadcastReceiver" (Raw: "io.flutter.plugins.androidalarmmanager.AlarmBroadcastReceiver")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=62)
                   A: android:name(0x01010003)="io.flutter.plugins.androidalarmmanager.RebootBroadcastReceiver" (Raw: "io.flutter.plugins.androidalarmmanager.RebootBroadcastReceiver")
                   A: android:enabled(0x0101000e)=(type 0x12)0x0
                   E: intent-filter (line=65)
                     E: action (line=66)
                       A: android:name(0x01010003)="android.intent.action.BOOT_COMPLETED" (Raw: "android.intent.action.BOOT_COMPLETED")
[  +11 ms] executing: D:\Programming\Android_SDK\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[  +72 ms] Exit code 0 from: D:\Programming\Android_SDK\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[        ] --------- beginning of main
           02-14 19:01:48.544 I/GnssLocationProvider( 1879): WakeLock released by handleMessage(REPORT_SV_STATUS, 0, com.android.server.location.GnssLocationProvider$SvStatusInfo@3fa0283)
[   +8 ms] executing: D:\Programming\Android_SDK\platform-tools\adb.exe version
[   +1 ms] executing: D:\Programming\Android_SDK\platform-tools\adb.exe -s emulator-5554 logcat -v time -T 02-14 19:01:48.544
[  +74 ms] Android Debug Bridge version 1.0.41
           Version 29.0.5-5949299
           Installed as D:\Programming\Android_SDK\platform-tools\adb.exe
[   +4 ms] executing: D:\Programming\Android_SDK\platform-tools\adb.exe start-server
[  +43 ms] Building APK
Running Gradle task 'assembleDebug'...
[  +68 ms] gradle.properties already sets `android.enableR8`
[   +6 ms] Using gradle from D:\Projects\Other\flutter-android-alarm-manager-plugin-issue\android\gradlew.bat.
[  +28 ms] executing: E:\IDEs\apps\AndroidStudio\ch-0\191.6010548\jre\bin\java -version
[ +188 ms] Exit code 0 from: E:\IDEs\apps\AndroidStudio\ch-0\191.6010548\jre\bin\java -version
[        ] openjdk version "1.8.0_202-release"
           OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
           OpenJDK 64-Bit Server VM (build 25.202-b03, mixed mode)
[   +6 ms] executing: [D:\Projects\Other\flutter-android-alarm-manager-plugin-issue\android\] D:\Projects\Other\flutter-android-alarm-manager-plugin-issue\android\gradlew.bat -q -Ptarget=D:\Projects\Other\flutter-android-alarm-manager-plugin-issue\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-x86 assembleDebug
[+5440 ms] calculateSha: LocalDirectory: 'D:\Projects\Other\flutter-android-alarm-manager-plugin-issue\build\app\outputs\apk'/app.apk
[ +233 ms] calculateSha: reading file took 232us
[ +888 ms] calculateSha: computing sha took 888us
[   +7 ms] √ Built build\app\outputs\apk\debug\app-debug.apk.
[   +5 ms] executing: D:\Programming\Android_SDK\build-tools\28.0.3\aapt dump xmltree D:\Projects\Other\flutter-android-alarm-manager-plugin-issue\build\app\outputs\apk\app.apk AndroidManifest.xml
[  +35 ms] Exit code 0 from: D:\Programming\Android_SDK\build-tools\28.0.3\aapt dump xmltree D:\Projects\Other\flutter-android-alarm-manager-plugin-issue\build\app\outputs\apk\app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="io.github.geisterfurz007.stack_overflow_demo" (Raw: "io.github.geisterfurz007.stack_overflow_demo")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=22)
                 A: android:name(0x01010003)="android.permission.RECEIVE_BOOT_COMPLETED" (Raw: "android.permission.RECEIVE_BOOT_COMPLETED")
               E: uses-permission (line=23)
                 A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
               E: uses-permission (line=24)
                 A: android:name(0x01010003)="android.permission.READ_EXTERNAL_STORAGE" (Raw: "android.permission.READ_EXTERNAL_STORAGE")
               E: uses-permission (line=25)
                 A: android:name(0x01010003)="android.permission.WRITE_EXTERNAL_STORAGE" (Raw: "android.permission.WRITE_EXTERNAL_STORAGE")
               E: application (line=27)
                 A: android:label(0x01010001)="stack_overflow_demo" (Raw: "stack_overflow_demo")
                 A: android:icon(0x01010002)=@0x7f0a0000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=33)
                   A: android:theme(0x01010000)=@0x7f0c00a0
                   A: android:name(0x01010003)="io.github.geisterfurz007.stack_overflow_demo.MainActivity" (Raw: "io.github.geisterfurz007.stack_overflow_demo.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=40)
                     E: action (line=41)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=43)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=50)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: service (line=54)
                   A: android:name(0x01010003)="io.flutter.plugins.androidalarmmanager.AlarmService" (Raw: "io.flutter.plugins.androidalarmmanager.AlarmService")
                   A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=59)
                   A: android:name(0x01010003)="io.flutter.plugins.androidalarmmanager.AlarmBroadcastReceiver" (Raw: "io.flutter.plugins.androidalarmmanager.AlarmBroadcastReceiver")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=62)
                   A: android:name(0x01010003)="io.flutter.plugins.androidalarmmanager.RebootBroadcastReceiver" (Raw: "io.flutter.plugins.androidalarmmanager.RebootBroadcastReceiver")
                   A: android:enabled(0x0101000e)=(type 0x12)0x0
                   E: intent-filter (line=65)
                     E: action (line=66)
                       A: android:name(0x01010003)="android.intent.action.BOOT_COMPLETED" (Raw: "android.intent.action.BOOT_COMPLETED")
[   +3 ms] Stopping app 'app.apk' on AOSP on IA Emulator.
[   +1 ms] executing: D:\Programming\Android_SDK\platform-tools\adb.exe -s emulator-5554 shell am force-stop io.github.geisterfurz007.stack_overflow_demo
[ +146 ms] executing: D:\Programming\Android_SDK\platform-tools\adb.exe -s emulator-5554 shell pm list packages io.github.geisterfurz007.stack_overflow_demo
[  +98 ms] Installing APK.
[   +2 ms] executing: D:\Programming\Android_SDK\platform-tools\adb.exe version
[  +38 ms] Android Debug Bridge version 1.0.41
           Version 29.0.5-5949299
           Installed as D:\Programming\Android_SDK\platform-tools\adb.exe
[        ] executing: D:\Programming\Android_SDK\platform-tools\adb.exe start-server
Installing build\app\outputs\apk\app.apk...
[  +37 ms] executing: D:\Programming\Android_SDK\platform-tools\adb.exe -s emulator-5554 install -t -r D:\Projects\Other\flutter-android-alarm-manager-plugin-issue\build\app\outputs\apk\app.apk
[+3951 ms] Performing Streamed Install
           Success
[   +3 ms] executing: D:\Programming\Android_SDK\platform-tools\adb.exe -s emulator-5554 shell echo -n bd782db971dbfb43be648ea96de7231edc81c67f > /data/local/tmp/sky.io.github.geisterfurz007.stack_overflow_demo.sha1
[  +92 ms] AOSP on IA Emulator startApp
[   +3 ms] executing: D:\Programming\Android_SDK\platform-tools\adb.exe -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true io.github.geisterfurz007.stack_overflow_demo/io.github.geisterfurz007.stack_overflow_demo.MainActivity
[ +359 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=io.github.geisterfurz007.stack_overflow_demo/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[+1075 ms] D/FlutterActivity( 4865): Using the launch theme as normal theme.
[   +6 ms] D/FlutterActivityAndFragmentDelegate( 4865): Setting up FlutterEngine.
[        ] D/FlutterActivityAndFragmentDelegate( 4865): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
[+1445 ms] Observatory URL on device: http://127.0.0.1:46831/HwCpGu8plBA=/
[   +1 ms] executing: D:\Programming\Android_SDK\platform-tools\adb.exe -s emulator-5554 forward tcp:0 tcp:46831
[  +43 ms] 54892
[        ] Forwarded host port 54892 to device port 46831 for Observatory
[  +12 ms] Connecting to service protocol: http://127.0.0.1:54892/HwCpGu8plBA=/
[ +149 ms] D/FlutterActivityAndFragmentDelegate( 4865): Attaching FlutterEngine to the Activity that owns this Fragment.
[ +209 ms] D/FlutterView( 4865): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@39d0e92
[  +35 ms] D/FlutterActivityAndFragmentDelegate( 4865): Executing Dart entrypoint: main, and sending initial route: /
[ +118 ms] Successfully connected to service protocol: http://127.0.0.1:54892/HwCpGu8plBA=/
[   +5 ms] Sending to VM service: getVM({})
[   +9 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: AMD FX(tm)-6300 Six-Core Processor, operatingSystem: android, targetCPU: ia32, version: 2.7.0 (Fri Dec 6 16:26:51 2019 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid:...
[  +13 ms] Sending to VM service: getIsolate({isolateId: isolates/3656447266023239})
[   +9 ms] Sending to VM service: _flutter.listViews({})
[  +15 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xe6914710, isolate: {type: @Isolate, fixedId: true, id: isolates/3656447266023239, name: main.dart$main-3656447266023239, number: 3656447266023239}}]}
[   +7 ms] DevFS: Creating new filesystem on the device (null)
[   +1 ms] Sending to VM service: _createDevFS({fsName: flutter-android-alarm-manager-plugin-issue})
[   +2 ms] W/OpenGLRenderer( 4865): Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
[        ] D/OpenGLRenderer( 4865): Swap behavior 0
[        ] D/eglCodecCommon( 4865): setVertexArrayObject: set vao to 0 (0) 0 0
[        ] D/EGL_emulation( 4865): eglCreateContext: 0xe8205600: maj 3 min 1 rcv 4
[        ] D/EGL_emulation( 4865): eglMakeCurrent: 0xe8205600: ver 3 1 (tinfo 0xe8203980)
[        ] E/eglCodecCommon( 4865): glUtilsParamSize: unknow param 0x000082da
[        ] E/eglCodecCommon( 4865): glUtilsParamSize: unknow param 0x000082da
[        ] D/HostConnection( 4865): HostConnection::get() New Host Connection established 0xe822a640, tid 4897
[        ] D/HostConnection( 4865): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1 
[        ] D/eglCodecCommon( 4865): setVertexArrayObject: set vao to 0 (0) 0 0
[        ] D/EGL_emulation( 4865): eglCreateContext: 0xe82058a0: maj 3 min 1 rcv 4
[  +90 ms] Result: {type: FileSystem, name: flutter-android-alarm-manager-plugin-issue, uri: file:///data/user/0/io.github.geisterfurz007.stack_overflow_demo/code_cache/flutter-android-alarm-manager-plugin-issueOGQKJG/flutter-android-alarm-manager-plugin-issue/}
[        ] DevFS: Created new filesystem on the device (file:///data/user/0/io.github.geisterfurz007.stack_overflow_demo/code_cache/flutter-android-alarm-manager-plugin-issueOGQKJG/flutter-android-alarm-manager-plugin-issue/)
[   +4 ms] Updating assets
Syncing files to device AOSP on IA Emulator...
[ +343 ms] Scanning asset files
[   +4 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[  +39 ms] D:\Programming\flutter\bin\cache\dart-sdk\bin\dart.exe D:\Programming\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root D:\Programming\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter -Ddart.developer.causal_async_stacks=true --output-dill C:\Users\redacted\AppData\Local\Temp\flutter_tool.72c0e161-4f5c-11ea-8a05-7824afd8cc62\app.dill --packages D:\Projects\Other\flutter-android-alarm-manager-plugin-issue\.packages -Ddart.vm.profile=false -Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation
[   +1 ms] D/HostConnection( 4865): createUnique: call
[        ] D/HostConnection( 4865): HostConnection::get() New Host Connection established 0xd316d000, tid 4897
[   +7 ms] <- compile package:stack_overflow_demo/main.dart
[        ] E/eglCodecCommon( 4865): GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1
[        ] D/HostConnection( 4865): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1 
[        ] D/EGL_emulation( 4865): eglMakeCurrent: 0xe82058a0: ver 3 1 (tinfo 0xe8203700)
[        ] E/eglCodecCommon( 4865): glUtilsParamSize: unknow param 0x000082da
[  +27 ms] Result: {type: Isolate, id: isolates/3656447266023239, name: main, number: 3656447266023239, _originNumber: 3656447266023239, startTime: 1581706923401, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 2, avgCollectionPeriodMillis...
[ +100 ms] E/eglCodecCommon( 4865): glUtilsParamSize: unknow param 0x000082da
[ +223 ms] I/FlutterBackgroundExecutor( 4865): Starting AlarmService...
[   +5 ms] D/eglCodecCommon( 4865): setVertexArrayObject: set vao to 0 (0) 0 0
[        ] D/EGL_emulation( 4865): eglCreateContext: 0xe82ef5e0: maj 3 min 1 rcv 4
[   +4 ms] D/HostConnection( 4865): HostConnection::get() New Host Connection established 0xe822adc0, tid 4915
[  +10 ms] D/HostConnection( 4865): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1 
[  +30 ms] D/EGL_emulation( 4865): eglMakeCurrent: 0xe82ef5e0: ver 3 1 (tinfo 0xe8203d10)
[   +2 ms] E/eglCodecCommon( 4865): glUtilsParamSize: unknow param 0x000082da
[  +98 ms] E/eglCodecCommon( 4865): glUtilsParamSize: unknow param 0x000082da
[        ] I/AndroidAlarmManagerPlugin( 4865): onAttachedToEngine
[   +5 ms] I/Choreographer( 4865): Skipped 69 frames!  The application may be doing too much work on its main thread.
[  +39 ms] D/EGL_emulation( 4865): eglMakeCurrent: 0xe8205600: ver 3 1 (tinfo 0xe8203980)
[  +60 ms] D/eglCodecCommon( 4865): setVertexArrayObject: set vao to 0 (0) 1 2
[  +85 ms] I/flutter ( 4865): Setting up alarm!
[  +90 ms] I/OpenGLRenderer( 4865): Davey! duration=1421ms; Flags=1, IntendedVsync=1534022653989, Vsync=1535172653943, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=1535187171000, AnimationStart=1535187271200, PerformTraversalsStart=1535192508500, DrawStart=1535208007900, SyncQueued=1535215911700, SyncStart=1535221088000, IssueDrawCommandsStart=1535226107900, SwapBuffers=1535348884700, FrameCompleted=1535449334200, DequeueBufferDuration=35292000, QueueBufferDuration=3964000, 
[ +741 ms] D/EGL_emulation( 4865): eglMakeCurrent: 0xe82058a0: ver 3 1 (tinfo 0xe8203700)
[   +4 ms] D/eglCodecCommon( 4865): setVertexArrayObject: set vao to 0 (0) 1 0
[  +19 ms] I/flutter ( 4865): true
[ +128 ms] I/AlarmService( 4865): AlarmService started!
[+4375 ms] E/flutter ( 4865): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method getSongs on channel boaventura.com.devel.br.flutteraudioquery)
[        ] E/flutter ( 4865): #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7)
[        ] E/flutter ( 4865): <asynchronous suspension>
[        ] E/flutter ( 4865): #1      FlutterAudioQuery.getSongs (package:flutter_audio_query/src/flutter_audio_query.dart:179:44)
[        ] E/flutter ( 4865): #2      Scheduler.callback (package:stack_overflow_demo/main.dart:32:45)
[        ] E/flutter ( 4865): #3      _alarmManagerCallbackDispatcher.<anonymous closure> (package:android_alarm_manager/android_alarm_manager.dart:43:14)
[        ] E/flutter ( 4865): #4      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:402:55)
[        ] E/flutter ( 4865): #5      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:370:54)
[        ] E/flutter ( 4865): #6      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:200:33)
[        ] E/flutter ( 4865): #7      _invoke3.<anonymous closure> (dart:ui/hooks.dart:303:15)
[        ] E/flutter ( 4865): #8      _rootRun (dart:async/zone.dart:1126:13)
[        ] E/flutter ( 4865): #9      _CustomZone.run (dart:async/zone.dart:1023:19)
[        ] E/flutter ( 4865): #10     _CustomZone.runGuarded (dart:async/zone.dart:925:7)
[        ] E/flutter ( 4865): #11     _invoke3 (dart:ui/hooks.dart:302:10)
[        ] E/flutter ( 4865): #12     _dispatchPlatformMessage (dart:ui/hooks.dart:162:5)
[        ] E/flutter ( 4865): 
[ +367 ms] I/flutter ( 4865): Main function: 1
[+11892 ms] Updating files
[ +195 ms] DevFS: Sync finished
[   +1 ms] Synced 0.8MB.
[   +2 ms] Sending to VM service: _flutter.listViews({})
[  +17 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xe6914710, isolate: {type: @Isolate, fixedId: true, id: isolates/3656447266023239, name: main.dart$main-3656447266023239, number: 3656447266023239}}, {type: FlutterView, id: _flutterView/0xe6919090, isolate: {type: @Isolate, fixedId: true, id: isolates/656970413518163, name: main.dart$main-656970413518163, number: 656970413518163}}]}
[   +1 ms] Sending to VM service: getIsolate({isolateId: isolates/656970413518163})
[   +1 ms] <- accept
[        ] Connected to _flutterView/0xe6914710.
[        ] Connected to _flutterView/0xe6919090.
[  +28 ms] Result: {type: Isolate, id: isolates/656970413518163, name: main, number: 656970413518163, _originNumber: 656970413518163, startTime: 1581706924853, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 1, avgCollectionPeriodMillis: 1...
[ +707 ms] Sending to VM service: ext.flutter.platformOverride({isolateId: isolates/3656447266023239})
[   +1 ms] Sending to VM service: ext.flutter.timeDilation({isolateId: isolates/3656447266023239})
[   +6 ms] Sending to VM service: ext.flutter.debugPaint({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.debugPaintBaselinesEnabled({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.repaintRainbow({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.showPerformanceOverlay({isolateId: isolates/3656447266023239})
[   +1 ms] Sending to VM service: ext.flutter.debugAllowBanner({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.structuredErrors({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.structuredErrors({enabled: true, isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.show({isolateId: isolates/3656447266023239})
[   +1 ms] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({enabled: false, isolateId: isolates/3656447266023239})
[   +1 ms] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({enabled: false, isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({isolateId: isolates/3656447266023239})
[  +32 ms] Result: {value: android, type: _extensionType, method: ext.flutter.platformOverride}
[   +1 ms] Result: {timeDilation: 1.0, type: _extensionType, method: ext.flutter.timeDilation}
[   +2 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaint}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaintBaselinesEnabled}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.repaintRainbow}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.showPerformanceOverlay}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.debugAllowBanner}
[  +10 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.structuredErrors}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.inspector.structuredErrors}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.show}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets}
[   +2 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets}
[  +76 ms] Sending to VM service: ext.flutter.platformOverride({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.platformOverride({value: android, isolateId: isolates/3656447266023239})
[   +1 ms] Sending to VM service: ext.flutter.timeDilation({isolateId: isolates/3656447266023239})
[   +2 ms] Sending to VM service: ext.flutter.debugPaint({isolateId: isolates/3656447266023239})
[   +8 ms] Sending to VM service: ext.flutter.debugPaintBaselinesEnabled({isolateId: isolates/3656447266023239})
[   +1 ms] Sending to VM service: ext.flutter.repaintRainbow({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.showPerformanceOverlay({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.debugAllowBanner({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.debugAllowBanner({enabled: true, isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.structuredErrors({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.show({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({isolateId: isolates/3656447266023239})
[        ] Result: {value: android, type: _extensionType, method: ext.flutter.platformOverride}
[  +62 ms] Result: {value: android, type: _extensionType, method: ext.flutter.platformOverride}
[   +7 ms] Result: {timeDilation: 1.0, type: _extensionType, method: ext.flutter.timeDilation}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaint}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaintBaselinesEnabled}
[   +1 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.repaintRainbow}
[   +5 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.showPerformanceOverlay}
[   +2 ms] Result: {enabled: true, type: _extensionType, method: ext.flutter.debugAllowBanner}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.debugAllowBanner}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.inspector.structuredErrors}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.show}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets}
[ +243 ms] Sending to VM service: ext.flutter.platformOverride({isolateId: isolates/3656447266023239})
[   +3 ms] Sending to VM service: ext.flutter.platformOverride({value: android, isolateId: isolates/3656447266023239})
[   +2 ms] Sending to VM service: ext.flutter.timeDilation({isolateId: isolates/3656447266023239})
[   +2 ms] Sending to VM service: ext.flutter.debugPaint({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.debugPaintBaselinesEnabled({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.repaintRainbow({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.showPerformanceOverlay({isolateId: isolates/3656447266023239})
[   +1 ms] Sending to VM service: ext.flutter.debugAllowBanner({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.debugAllowBanner({enabled: true, isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.structuredErrors({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.structuredErrors({enabled: true, isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.show({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({isolateId: isolates/3656447266023239})
[   +3 ms] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({isolateId: isolates/3656447266023239})
[   +1 ms] Result: {value: android, type: _extensionType, method: ext.flutter.platformOverride}
[   +5 ms] Sending to VM service: ext.flutter.platformOverride({isolateId: isolates/3656447266023239})
[  +15 ms] Sending to VM service: ext.flutter.platformOverride({value: android, isolateId: isolates/3656447266023239})
[  +10 ms] Sending to VM service: ext.flutter.timeDilation({isolateId: isolates/3656447266023239})
[   +8 ms] Sending to VM service: ext.flutter.debugPaint({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.debugPaintBaselinesEnabled({isolateId: isolates/3656447266023239})
[   +2 ms] Sending to VM service: ext.flutter.repaintRainbow({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.showPerformanceOverlay({isolateId: isolates/3656447266023239})
[   +1 ms] Sending to VM service: ext.flutter.debugAllowBanner({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.debugAllowBanner({enabled: true, isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.structuredErrors({isolateId: isolates/3656447266023239})
[   +4 ms] Sending to VM service: ext.flutter.inspector.structuredErrors({enabled: true, isolateId: isolates/3656447266023239})
[   +3 ms] Sending to VM service: ext.flutter.inspector.show({isolateId: isolates/3656447266023239})
[   +1 ms] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({isolateId: isolates/3656447266023239})
[        ] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({isolateId: isolates/3656447266023239})
[   +1 ms] Result: {timeDilation: 1.0, type: _extensionType, method: ext.flutter.timeDilation}
[   +2 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaint}
[   +1 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaintBaselinesEnabled}
[   +2 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.repaintRainbow}
[   +2 ms] Result: {value: android, type: _extensionType, method: ext.flutter.platformOverride}
[   +1 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.showPerformanceOverlay}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.debugAllowBanner}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.debugAllowBanner}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.inspector.structuredErrors}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.inspector.structuredErrors}
[   +1 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.show}
[   +1 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets}
[        ] Result: {value: android, type: _extensionType, method: ext.flutter.platformOverride}
[   +2 ms] Result: {value: android, type: _extensionType, method: ext.flutter.platformOverride}
[   +9 ms] Result: {timeDilation: 1.0, type: _extensionType, method: ext.flutter.timeDilation}
[   +1 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaint}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaintBaselinesEnabled}
[   +6 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.repaintRainbow}
[   +1 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.showPerformanceOverlay}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.debugAllowBanner}
[   +1 ms] Result: {enabled: true, type: _extensionType, method: ext.flutter.debugAllowBanner}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.inspector.structuredErrors}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.inspector.structuredErrors}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.show}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets}
D:\Projects\Other\flutter-android-alarm-manager-plugin-issue>flutter analyze
Analyzing flutter-android-alarm-manager-plugin-issue...
No issues found! (ran in 22.8s)
D:\Projects\Other\flutter-android-alarm-manager-plugin-issue>flutter doctor -v
[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18363.657], locale de-DE)
    • Flutter version 1.12.13+hotfix.8 at D:\Programming\flutter
    • Framework revision 0b8abb4724 (3 days ago), 2020-02-11 11:44:36 -0800
    • Engine revision e1e6ced81d
    • Dart version 2.7.0


[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at D:\Programming\Android_SDK
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 28.0.3
    • ANDROID_HOME = D:\Programming\Android_SDK
    • Java binary at: E:\IDEs\apps\AndroidStudio\ch-0\191.6010548\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[√] Android Studio (version 3.5)
    • Android Studio at E:\IDEs\apps\AndroidStudio\ch-0\191.6010548
    • Flutter plugin version 39.0.3
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[!] IntelliJ IDEA Ultimate Edition (version 2019.3)
    • IntelliJ at E:\IDEs\apps\IDEA-U\ch-0\193.6015.39
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[√] Connected device (1 available)
    • AOSP on IA Emulator • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

! Doctor found issues in 1 category.

(Project is created, edited and ran in Android Studio; IntelliJ is just on the computer for other projects)

@TahaTesser TahaTesser added p: android_alarm_manager The Android background execution plugin plugin labels Feb 17, 2020
@markusaksli-nc
Copy link
Member

markusaksli-nc commented Jul 15, 2020

Reproducible on latest master 1.20.0-8.0.pre.102 with latest android_alarm_manager 0.4.5+11 and latest flutter_audio_query 0.3.4+2

Exception during async callback (same as author's logs)
I/flutter (21851): Setting up alarm!
I/AlarmService(21851): AlarmService started!
I/flutter (21851): true
I/flutter (21851): Main function: 0
E/flutter (21851): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: MissingPluginException(No implementation found for method getSongs on channel boaventura.com.devel.br.flutteraudioquery)
E/flutter (21851): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:7)
E/flutter (21851): <asynchronous suspension>
E/flutter (21851): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:334:12)
E/flutter (21851): #2      FlutterAudioQuery.getSongs (package:flutter_audio_query/src/flutter_audio_query.dart:179:44)
E/flutter (21851): #3      Scheduler.callback (package:stack_overflow_demo/main.dart:32:45)
E/flutter (21851): #4      _alarmManagerCallbackDispatcher.<anonymous closure> (package:android_alarm_manager/android_alarm_manager.dart:43:14)
E/flutter (21851): #5      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:432:55)
E/flutter (21851): #6      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:385:33)
E/flutter (21851): #7      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:260:33)
E/flutter (21851): #8      _invoke3.<anonymous closure> (dart:ui/hooks.dart:282:15)
E/flutter (21851): #9      _rootRun (dart:async/zone.dart:1190:13)
E/flutter (21851): #10     _CustomZone.run (dart:async/zone.dart:1093:19)
E/flutter (21851): #11     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
E/flutter (21851): #12     _invoke3 (dart:ui/hooks.dart:281:10)
E/flutter (21851): #13     _dispatchPlatformMessage (dart:ui/hooks.dart:156:5)
E/flutter (21851): 
flutter doctor -v
[√] Flutter (Channel master, 1.20.0-8.0.pre.102, on Microsoft Windows [Version 10.0.18362.900], locale et-EE)
   • Flutter version 1.20.0-8.0.pre.102 at C:\Development\flutter_master
   • Framework revision f95f46e910 (9 hours ago), 2020-07-15 01:46:01 -0400
   • Engine revision be7595bafb
   • Dart version 2.9.0 (build 2.9.0-21.0.dev 20bf2fcf56)


[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
   • Android SDK at C:\Users\Isa\AppData\Local\Android\sdk
   • Platform android-30, build-tools 30.0.0
   • Java binary at: C:\Users\Isa\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\193.6626763\jre\bin\java
   • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
   • All Android licenses accepted.

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
   ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[√] Android Studio (version 4.0)
   • Android Studio at C:\Users\Isa\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\193.6626763
   • Flutter plugin version 47.1.2
   • Dart plugin version 193.7361
   • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (2 available)
   • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
   • Web Server (web)        • web-server    • web-javascript • Flutter Tools

! Doctor found issues in 1 category.

@VladyslavBondarenko VladyslavBondarenko added found in release: 1.20 Found to occur in 1.20 has reproducible steps The issue has been confirmed reproducible and is ready to work on labels Jul 15, 2020
@stuartmorgan stuartmorgan added the P6 label Feb 4, 2021
@stuartmorgan
Copy link
Contributor

stuartmorgan commented May 27, 2021

Closing as android_alarm_manager is deprecated in favor of android_alarm_manager_plus.

@github-actions
Copy link

github-actions bot commented Aug 1, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2021
@flutter-triage-bot flutter-triage-bot bot added P3 Issues that are less important to the Flutter project and removed P6 labels Jun 28, 2023
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
found in release: 1.20 Found to occur in 1.20 has reproducible steps The issue has been confirmed reproducible and is ready to work on p: android_alarm_manager The Android background execution plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels.
Projects
None yet
Development

No branches or pull requests

5 participants