[Help] Android: SCAN_FAILED_ALREADY_STARTED after turning Bluetooth Off then On #849
tucici opened this issue · 5 comments
FlutterBluePlus Version
1.32.13
Flutter Version
3.24.1
What OS?
Android
OS Version
Android. 13
Bluetooth Module
not clear
What is your feature request?
To reproduce the issue, do the following:
turn on bluetooth---> scan -- > quickly turn off bluetooth -- > quickly turn on bluetooth -- > scan again,
and it will appear.
"SCAN_FAILED_ALREADY_STARTED"
Android: SCAN_FAILED_ALREADY_STARTED after turning Bluetooth Off then On #849
Logs
Launching lib/main.dart on M2103K19C in debug mode...
You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply
You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply
Warning: unable to detect project KGP version. Skipping version checking.
This may be because you have applied KGP after the Flutter Gradle Plugin.
✓ Built build/app/outputs/flutter-apk/app-debug.apk
Connecting to VM Service at ws://127.0.0.1:53453/PRtMcjS9JL0=/ws
Connected to the VM Service.
I/flutter (27473): [FBP] <setLogLevel> args: 5
D/[FBP-Android](27473): [FBP] onMethodCall: setLogLevel
D/[FBP-Android](27473): [FBP] initializing BluetoothAdapter
D/hw-ProcessState(27473): Binder ioctl to enable oneway spam detection failed: Invalid argument
I/flutter (27473): [FBP] <setLogLevel> result: true
I/flutter (27473): [FBP] <getAdapterState> args: null
D/[FBP-Android](27473): [FBP] onMethodCall: flutterRestart
D/[FBP-Android](27473): [FBP] disconnectAllDevices(flutterRestart)
D/[FBP-Android](27473): [FBP] connectedPeripherals: 0
D/[FBP-Android](27473): [FBP] onMethodCall: getAdapterState
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/BLASTBufferQueue(27473): [SurfaceView[com.lib.flutter_blue_plus_example/com.lib.flutter_blue_plus_example.MainActivity]#1](f:0,a:1) acquireNextBufferLocked size=1080x2356 mFrameNumber=1 applyTransaction=true mTimestamp=625261675763267(auto) mPendingTransactions.size=0 graphicBufferId=117995636523008 transform=0
D/Drawable(27473): getShouldDeclineWhiteColor false
D/Drawable(27473): getShouldDeclineWhiteColor false
D/Drawable(27473): getShouldDeclineWhiteColor false
I/ue_plus_example(27473): ProcessProfilingInfo new_methods=1481 is saved saved_to_disk=1 resolve_classes_delay=8000
D/ue_plus_example(27473): MiuiProcessManagerServiceStub setSchedFifo
I/MiuiProcessManagerImpl(27473): setSchedFifo pid:27473, mode:3
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/BLASTBufferQueue(27473): [VRI[MainActivity]#0](f:0,a:1) acquireNextBufferLocked size=1080x2400 mFrameNumber=1 applyTransaction=true mTimestamp=625261714127882(auto) mPendingTransactions.size=0 graphicBufferId=117995636523009 transform=0
W/Parcel (27473): Expecting binder but got null!
D/DecorView[](27473): onWindowFocusChanged hasWindowFocus true
I/HandWritingStubImpl(27473): refreshLastKeyboardType: 1
I/HandWritingStubImpl(27473): getCurrentKeyboardType: 1
I/flutter (27473): [FBP] <getAdapterState> result: {adapter_state: 4}
I/HandWritingStubImpl(27473): getCurrentKeyboardType: 1
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/DecorView[](27473): getWindowModeFromSystem windowmode is 1
D/DecorView[](27473): updateDecorCaptionStatus windowMode is 1
D/Drawable(27473): getShouldDeclineWhiteColor false
E/gralloc4(27473): Empty SMPTE 2094-40 data
E/gralloc4(27473): Empty SMPTE 2094-40 data
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/ProfileInstaller(27473): Installing profile for com.lib.flutter_blue_plus_example
W/MirrorManager(27473): this model don't Support
I/ue_plus_example(27473): This is non sticky GC, maxfree is 8388608 minfree is 524288
I/flutter (27473): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_legacy: false, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](27473): [FBP] onMethodCall: startScan
D/BluetoothAdapter(27473): isLeEnabled(): ON
D/BluetoothLeScanner(27473): onScannerRegistered() - status=0 scannerId=8 mScannerId=0
I/flutter (27473): [FBP] <startScan> result: true
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -78, connectable: 1, manufacturer_data: {}, remote_id: 3C:5D:2A:66:68:E5, service_data: {1828: 01bc486b0d85376c6473c03abc39305d35}, service_uuids: [1828]}]}
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -97, manufacturer_data: {6: 01092022bf57d249799005ba1f8d9d88c517c431f9f0082d5609ea}, remote_id: 35:4B:65:FD:28:C2, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -85, manufacturer_data: {6: 010920228b4fc4c4cd142006ee9c9355ca74bea177756f5be91740}, remote_id: 12:F6:21:E1:E0:15, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -73, manufacturer_data: {6: 01092002d3253176b91a2a647b51a5fd29d06a4d5536a203346d19}, remote_id: 31:FB:CC:36:18:E4, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -89, manufacturer_data: {6: 010f202237c26baae6c629095fd6a849b4f3e6d0d06d590167b2c5}, remote_id: 1F:71:B5:41:DD:32, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -79, connectable: 1, manufacturer_data: {101: 01c905}, remote_id: D0:AD:08:4A:87:DD, service_data: {fdf7: 0119ed4b902a47d717fb96e76bba99db8c0000000001}, service_uuids: [fe78]}]}
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -91, manufacturer_data: {6: 010f20022da0d0454feaf19ac3717becd14385ad90eb152e8fa09a}, remote_id: 1D:D5:10:B8:42:4B, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -74, manufacturer_data: {6: 01092022741fb5b36e2d69e838baac0a1eb99150420339595fcb44}, remote_id: 3C:2E:57:7A:1D:1E, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -90, connectable: 1, manufacturer_data: {76: 10054b18700f7e}, remote_id: 7D:F9:D3:4F:23:0A, tx_power_level: 12, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -77, connectable: 1, manufacturer_data: {}, remote_id: 3C:5D:2A:66:6C:04, service_data: {1828: 011f784b7c13ea29481468ef3ad252bd33}, service_uuids: [1828]}]}
E/gralloc4(27473): Empty SMPTE 2094-40 data
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -94, manufacturer_data: {6: 010f20023435515adc0eb240c8b27bd7bc428f087e688f352ddb12}, remote_id: 26:73:B6:BB:B2:EE, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -81, manufacturer_data: {6: 010f2002c1bfc8d20898459854c4d040e23249238c339eab37df7f}, remote_id: F8:EC:A2:05:D3:07, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -90, manufacturer_data: {6: 01092002305d18049b847ed80bd8bb59a7fa25de565a795eebaddd}, remote_id: 5C:8C:53:E9:E6:B8, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -82, manufacturer_data: {6: 010f200259f75e1e94f704ce36d9768eb731450729ed642caa57d1}, remote_id: 29:39:80:22:60:E4, service_data: {}}]}
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -91, connectable: 1, manufacturer_data: {76: 1005341c337d58}, remote_id: 71:BA:6E:E6:08:44, tx_power_level: 7, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -82, connectable: 1, manufacturer_data: {76: 1006331e90aaa27c}, remote_id: 74:DD:C8:CF:AC:FE, tx_power_level: 12, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -94, manufacturer_data: {6: 01092002f8d87e5c27af60871fd7b0f5b119a63ffd6e945ff30903}, remote_id: 33:8E:C0:5B:EC:B1, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -99, manufacturer_data: {76: 12020000}, remote_id: FD:FA:23:B7:D6:35, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -82, connectable: 1, manufacturer_data: {637: 010300ffff}, remote_id: F4:BF:80:8C:99:E5, platform_name: HUAWEI WATCH GT-9E5, tx_power_level: 4, service_data: {3802: f4bf808c99e5}, adv_name: HUAWEI WATCH GT-9E5}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -86, manufacturer_data: {76: 09081302c0a801a51b58160800f5d9103428f302}, remote_id: 5A:97:4C:2F:CC:2C, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -62, manufacturer_data: {76: 160800a69e58bd9732f0}, remote_id: 56:90:4C:0D:CA:9D, service_data: {}}]}
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -88, connectable: 1, manufacturer_data: {}, remote_id: 3C:5D:2A:66:68:F6, service_data: {1828: 017ecde091f3cb8082f8f924bdfbef7abd}, service_uuids: [1828]}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -93, connectable: 1, manufacturer_data: {76: 0c0e00066382f718120586d4668c35fe1006451dbcf70e68}, remote_id: 70:F4:5A:05:FD:7E, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -77, manufacturer_data: {76: 12020001}, remote_id: EF:20:5E:84:D1:97, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -94, manufacturer_data: {6: 0109202239c3be21d9e33f31e4159a78ee3c662f76920a06e6c835}, remote_id: 23:C8:EB:3E:4A:DA, service_data: {}}]}
E/gralloc4(27473): Empty SMPTE 2094-40 data
E/gralloc4(27473): Empty SMPTE 2094-40 data
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -87, manufacturer_data: {6: 01092002750555a26ffedb1bb22f6ccf204c10a538003ad35a8c6c}, remote_id: 11:90:55:98:B8:FE, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -77, manufacturer_data: {76: 16080082f8e16918270d}, remote_id: 4C:6C:94:C3:7A:31, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -76, manufacturer_data: {76: 12020000}, remote_id: E5:2B:CC:25:1F:62, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -80, connectable: 1, manufacturer_data: {911: 191134653042103041a201152629d3c257010302}, remote_id: 41:AB:8C:B3:30:8B, service_data: {fdaa: 830c4343697669}, service_uuids: [fdaa]}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -91, manufacturer_data: {76: 09060303c0a86e39}, remote_id: 1C:CC:A2:57:01:96, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -73, connectable: 1, manufacturer_data: {}, remote_id: E0:75:23:1D:05:E6, platform_name: DSP8.8BT, tx_power_level: 0, service_data: {}, adv_name: DSP8.8BT, service_uuids: [feff]}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -88, connectable: 1, manufacturer_data: {76: 10060d1dadf55348}, remote_id: 7D:DB:10:84:24:6E, tx_power_level: 12, service_data: {}}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -88, manufacturer_data: {76: 12020002}, remote_id: E4:2F:EF:5F:31:45, service_data: {}}]}
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -89, manufacturer_data: {76: 12020000}, remote_id: F1:10:FB:D5:E2:B3, service_data: {}}]}
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -88, connectable: 1, manufacturer_data: {76: 10054b18700f7e}, remote_id: 6A:94:B6:E7:A5:B2, tx_power_level: 12, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -90, connectable: 1, manufacturer_data: {20682: 1b67aa41ca501b67aa4100}, remote_id: 41:AA:67:1B:50:CA, platform_name: Baseus BowieE3, service_data: {}, adv_name: Baseus BowieE3, service_uuids: [edfec62e-9910-0bac-5241-d8bda6932a2e]}]}
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -94, manufacturer_data: {76: 130b1b749de898cd294a949900}, remote_id: 42:D0:F2:1E:05:AA, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -88, manufacturer_data: {76: 1608002b5832056936e6}, remote_id: 6F:FE:AC:13:EE:42, service_data: {}}]}
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -85, connectable: 1, manufacturer_data: {76: 10077e1f6765510c68}, remote_id: 60:73:49:84:5C:C8, tx_power_level: 12, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -88, connectable: 1, manufacturer_data: {76: 1006231eac532ec7}, remote_id: 50:E1:63:11:68:0C, tx_power_level: 12, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -97, manufacturer_data: {76: 12020001}, remote_id: CA:FD:35:91:CB:B7, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -93, connectable: 1, manufacturer_data: {76: 0c0e00076345673f9ad513457ad967a21006451dbcf70e68}, remote_id: 70:F4:5A:05:FD:7E, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -99, manufacturer_data: {6: 010920223dc58e46aaed836264b3d1da234ea0802c3acfe67d86e0}, remote_id: 03:EF:60:CF:7B:38, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -97, connectable: 1, manufacturer_data: {911: 271134633736103041a201152629b66d57010302}, remote_id: 4F:C5:77:92:5A:1F, service_data: {fdaa: 830cf36469e9b9a4e79a845869616f6d6920233132}, service_uuids: [fdaa]}]}
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -97, manufacturer_data: {76: 12020002}, remote_id: F1:6E:3C:6B:83:3C, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -72, manufacturer_data: {76: 160800938b2349148da9}, remote_id: 75:12:41:68:33:01, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -99, manufacturer_data: {6: 010f202275b295a12f4cd74fc9169801ac081f28b7d5e0d363f1e5}, remote_id: 37:85:5F:21:88:BA, service_data: {}}]}
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -96, manufacturer_data: {76: 12020002}, remote_id: C2:DC:53:8B:5D:FC, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
D
E/gralloc4(27473): Empty SMPTE 2094-40 data
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -97, manufacturer_data: {76: 1608c100779b32e53c7a}, remote_id: 1B:EB:30:CA:92:F4, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -99, connectable: 1, manufacturer_data: {76: 1005231815b55c}, remote_id: 4C:F3:5F:82:F4:AC, tx_power_level: 8, service_data: {}}]}
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -90, manufacturer_data: {76: 12020002}, remote_id: F0:53:73:8B:0E:72, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -90, manufacturer_data: {76: 1608006176c4dace0fd4}, remote_id: 43:EE:2F:C5:D2:7A, service_data: {}}]}
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -99, connectable: 1, manufacturer_data: {76: 10053018d4cb7b}, remote_id: 61:19:88:95:9B:96, tx_power_level: 12, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -89, connectable: 1, manufacturer_data: {76: 0c0e00076345673f9ad513457ad967a21006451dbcf70e68}, remote_id: 76:A5:CE:49:F9:2F, service_data: {}}]}
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -94, manufacturer_data: {76: 1608002f26135174b8a5}, remote_id: 4B:10:34:5B:87:DF, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -87, manufacturer_data: {76: 160800a60151fd848dbc}, remote_id: 7B:19:2C:E2:A2:74, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -96, manufacturer_data: {76: 12020002}, remote_id: C7:72:7B:BA:93:FF, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -91, connectable: 1, manufacturer_data: {76: 10053718dc307e}, remote_id: 64:4E:B1:26:3E:C8, tx_power_level: 8, service_data: {}}]}
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
E/gralloc4(27473): Empty SMPTE 2094-40 data
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/DecorView[](27473): onWindowFocusChanged hasWindowFocus false
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] onScanResult
E/gralloc4(27473): Empty SMPTE 2094-40 data
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] onScanResult
D/[FBP-Android](27473): [FBP] OnAdapterStateChanged: turningOff
D/[FBP-Android](27473): [FBP] disconnectAllDevices(adapterTurnOff)
D/[FBP-Android](27473): [FBP] OnAdapterStateChanged: off
D/[FBP-Android](27473): [FBP] disconnectAllDevices(adapterTurnOff)
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnAdapterStateChanged ]] result: {adapter_state: 5}
D/[FBP-Android](27473): [FBP] onScanResult
I/flutter (27473): [FBP] [[ OnAdapterStateChanged ]] result: {adapter_state: 6}
E/gralloc4(27473): Empty SMPTE 2094-40 data
I/ue_plus_example(27473): oneway function results for code 1599295570 on binder at 0xb4000073949a4780 will be dropped but finished with status UNKNOWN_TRANSACTION
I/ue_plus_example(27473): oneway function results for code 1599295570 on binder at 0xb4000073949a4780 will be dropped but finished with status UNKNOWN_TRANSACTION
D/[FBP-Android](27473): [FBP] OnAdapterStateChanged: on
I/flutter (27473): [FBP] [[ OnAdapterStateChanged ]] result: {adapter_state: 4}
E/gralloc4(27473): Empty SMPTE 2094-40 data
E/gralloc4(27473): Empty SMPTE 2094-40 data
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/DecorView[](27473): onWindowFocusChanged hasWindowFocus true
I/HandWritingStubImpl(27473): refreshLastKeyboardType: 1
I/HandWritingStubImpl(27473): getCurrentKeyboardType: 1
I/flutter (27473): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_legacy: false, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](27473): [FBP] onMethodCall: startScan
D/BluetoothAdapter(27473): isLeEnabled(): ON
E/[FBP-Android](27473): [FBP] onScanFailed: SCAN_FAILED_ALREADY_STARTED
I/flutter (27473): [FBP] <startScan> result: true
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {error_string: SCAN_FAILED_ALREADY_STARTED, advertisements: [], success: 0, error_code: 1}
I/flutter (27473): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_legacy: false, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](27473): [FBP] onMethodCall: startScan
D/BluetoothAdapter(27473): isLeEnabled(): ON
E/[FBP-Android](27473): [FBP] onScanFailed: SCAN_FAILED_ALREADY_STARTED
I/flutter (27473): [FBP] <startScan> result: true
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {error_string: SCAN_FAILED_ALREADY_STARTED, advertisements: [], success: 0, error_code: 1}
I/flutter (27473): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_legacy: false, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](27473): [FBP] onMethodCall: startScan
D/BluetoothAdapter(27473): isLeEnabled(): ON
E/[FBP-Android](27473): [FBP] onScanFailed: SCAN_FAILED_ALREADY_STARTED
I/flutter (27473): [FBP] <startScan> result: true
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {error_string: SCAN_FAILED_ALREADY_STARTED, advertisements: [], success: 0, error_code: 1}
I/flutter (27473): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_legacy: false, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](27473): [FBP] onMethodCall: startScan
D/BluetoothAdapter(27473): isLeEnabled(): ON
E/[FBP-Android](27473): [FBP] onScanFailed: SCAN_FAILED_ALREADY_STARTED
I/flutter (27473): [FBP] <startScan> result: true
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {error_string: SCAN_FAILED_ALREADY_STARTED, advertisements: [], success: 0, error_code: 1}
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/DecorView[](27473): onWindowFocusChanged hasWindowFocus false
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/BLASTBufferQueue(27473): [SurfaceView[com.lib.flutter_blue_plus_example/com.lib.flutter_blue_plus_example.MainActivity]#1](f:0,a:1) destructor()
D/BufferQueueConsumer(27473): [SurfaceView[com.lib.flutter_blue_plus_example/com.lib.flutter_blue_plus_example.MainActivity]#1(BLAST Consumer)1](id:6b5100000001,api:0,p:-1,c:27473) disconnect
W/FramePolicy(27473): type=1400 audit(0.0:11095224): avc: denied { ioctl } for path="/proc/perfmgr/perf_ioctl" dev="proc" ino=4026533767 ioctlcmd=0x6716 scontext=u:r:untrusted_app:s0:c37,c257,c512,c768 tcontext=u:object_r:proc_perfmgr:s0 tclass=file permissive=0 app=com.lib.flutter_blue_plus_example
I/libPerfCtl(27473): fbcNotifySbeRescue ret=-1
D/BLASTBufferQueue(27473): [VRI[MainActivity]#0](f:0,a:1) destructor()
D/BufferQueueConsumer(27473): [VRI[MainActivity]#0(BLAST Consumer)0](id:6b5100000000,api:0,p:-1,c:27473) disconnect
I/ue_plus_example(27473): This is non sticky GC, maxfree is 8388608 minfree is 524288
I/ue_plus_example(27473): This is non sticky GC, maxfree is 8388608 minfree is 524288
D/AppScoutStateMachine(27473): 27473-ScoutStateMachinecreated
D/BufferQueueConsumer(27473): [](id:6b5100000002,api:0,p:-1,c:27473) connect: controlledByApp=false
D/BufferQueueConsumer(27473): [](id:6b5100000003,api:0,p:-1,c:27473) connect: controlledByApp=false
D/SurfaceView(27473): UPDATE Surface(name=SurfaceView[com.lib.flutter_blue_plus_example/com.lib.flutter_blue_plus_example.MainActivity])/@0xc7b2a3b, mIsProjectionMode = false
D/SurfaceControl(27473): nativeSetScreenProjection ===> setScreenProjection
D/SurfaceControl(27473): nativeSetScreenProjection ===> setScreenProjection
D/SurfaceControl(27473): nativeSetScreenProjection ===> setScreenProjection
D/Drawable(27473): getShouldDeclineWhiteColor false
D/Drawable(27473): getShouldDeclineWhiteColor false
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/BLASTBufferQueue(27473): [SurfaceView[com.lib.flutter_blue_plus_example/com.lib.flutter_blue_plus_example.MainActivity]#3](f:0,a:1) acquireNextBufferLocked size=1080x2356 mFrameNumber=1 applyTransaction=true mTimestamp=626392305617796(auto) mPendingTransactions.size=0 graphicBufferId=117995636523014 transform=0
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/BLASTBufferQueue(27473): [VRI[MainActivity]#2](f:0,a:1) acquireNextBufferLocked size=1080x2400 mFrameNumber=1 applyTransaction=true mTimestamp=626392320157796(auto) mPendingTransactions.size=0 graphicBufferId=117995636523015 transform=0
E/gralloc4(27473): Empty SMPTE 2094-40 data
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/DecorView[](27473): onWindowFocusChanged hasWindowFocus true
I/HandWritingStubImpl(27473): refreshLastKeyboardType: 1
I/HandWritingStubImpl(27473): getCurrentKeyboardType: 1
I/flutter (27473): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_legacy: false, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](27473): [FBP] onMethodCall: startScan
D/BluetoothAdapter(27473): isLeEnabled(): ON
E/[FBP-Android](27473): [FBP] onScanFailed: SCAN_FAILED_ALREADY_STARTED
I/flutter (27473): [FBP] <startScan> result: true
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {error_string: SCAN_FAILED_ALREADY_STARTED, advertisements: [], success: 0, error_code: 1}
I/flutter (27473): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_legacy: false, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](27473): [FBP] onMethodCall: startScan
D/BluetoothAdapter(27473): isLeEnabled(): ON
E/[FBP-Android](27473): [FBP] onScanFailed: SCAN_FAILED_ALREADY_STARTED
I/flutter (27473): [FBP] <startScan> result: true
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {error_string: SCAN_FAILED_ALREADY_STARTED, advertisements: [], success: 0, error_code: 1}
I/flutter (27473): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_legacy: false, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](27473): [FBP] onMethodCall: startScan
D/BluetoothAdapter(27473): isLeEnabled(): ON
E/[FBP-Android](27473): [FBP] onScanFailed: SCAN_FAILED_ALREADY_STARTED
I/flutter (27473): [FBP] <startScan> result: true
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {error_string: SCAN_FAILED_ALREADY_STARTED, advertisements: [], success: 0, error_code: 1}
I/flutter (27473): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_legacy: false, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](27473): [FBP] onMethodCall: startScan
D/BluetoothAdapter(27473): isLeEnabled(): ON
E/[FBP-Android](27473): [FBP] onScanFailed: SCAN_FAILED_ALREADY_STARTED
I/flutter (27473): [FBP] <startScan> result: true
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {error_string: SCAN_FAILED_ALREADY_STARTED, advertisements: [], success: 0, error_code: 1}
I/flutter (27473): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_legacy: false, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](27473): [FBP] onMethodCall: startScan
D/BluetoothAdapter(27473): isLeEnabled(): ON
E/[FBP-Android](27473): [FBP] onScanFailed: SCAN_FAILED_ALREADY_STARTED
I/flutter (27473): [FBP] <startScan> result: true
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {error_string: SCAN_FAILED_ALREADY_STARTED, advertisements: [], success: 0, error_code: 1}
D/DecorView[](27473): onWindowFocusChanged hasWindowFocus false
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/[FBP-Android](27473): [FBP] OnAdapterStateChanged: turningOff
D/[FBP-Android](27473): [FBP] disconnectAllDevices(adapterTurnOff)
I/flutter (27473): [FBP] [[ OnAdapterStateChanged ]] result: {adapter_state: 5}
D/[FBP-Android](27473): [FBP] OnAdapterStateChanged: off
D/[FBP-Android](27473): [FBP] disconnectAllDevices(adapterTurnOff)
I/flutter (27473): [FBP] [[ OnAdapterStateChanged ]] result: {adapter_state: 6}
E/gralloc4(27473): Empty SMPTE 2094-40 data
I/ue_plus_example(27473): oneway function results for code 1599295570 on binder at 0xb4000073949a4780 will be dropped but finished with status UNKNOWN_TRANSACTION
I/ue_plus_example(27473): oneway function results for code 1599295570 on binder at 0xb4000073949a4780 will be dropped but finished with status UNKNOWN_TRANSACTION
D/[FBP-Android](27473): [FBP] OnAdapterStateChanged: on
I/flutter (27473): [FBP] [[ OnAdapterStateChanged ]] result: {adapter_state: 4}
E/gralloc4(27473): Empty SMPTE 2094-40 data
E/gralloc4(27473): Empty SMPTE 2094-40 data
D/DecorView[](27473): onWindowFocusChanged hasWindowFocus true
I/HandWritingStubImpl(27473): refreshLastKeyboardType: 1
I/HandWritingStubImpl(27473): getCurrentKeyboardType: 1
I/flutter (27473): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_legacy: false, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](27473): [FBP] onMethodCall: startScan
D/BluetoothAdapter(27473): isLeEnabled(): ON
E/[FBP-Android](27473): [FBP] onScanFailed: SCAN_FAILED_ALREADY_STARTED
I/flutter (27473): [FBP] <startScan> result: true
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {error_string: SCAN_FAILED_ALREADY_STARTED, advertisements: [], success: 0, error_code: 1}
I/flutter (27473): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_legacy: false, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](27473): [FBP] onMethodCall: startScan
D/BluetoothAdapter(27473): isLeEnabled(): ON
E/[FBP-Android](27473): [FBP] onScanFailed: SCAN_FAILED_ALREADY_STARTED
I/flutter (27473): [FBP] <startScan> result: true
I/flutter (27473): [FBP] [[ OnScanResponse ]] result: {error_string: SCAN_FAILED_ALREADY_STARTED, advertisements: [], success: 0, error_code: 1}
@chipweinberger Inspiration comes from here : Android BLE scan, SCAN_FAILED_ALREADY_STARTED and getting hold of a BluetoothDevice instance
this was our previous fix
can you please debug why 99740a7 does not stop the scan?
turn on bluetooth---> scan -- > quickly turn off bluetooth -- > quickly turn on bluetooth -- > scan again,
does the problem only happen when you do it "quickly"?
turn on bluetooth---> scan -- > quickly turn off bluetooth -- > quickly turn on bluetooth -- > scan again,
does the problem only happen when you do it "quickly"?
No, in fact, before the scan duration is complete, turn off Bluetooth, turn it on again, and do the next scan, this error will definitely occur.
For example, with your demo, the scan duration is 15 seconds, turn off Bluetooth before 15 seconds, turn it on again, and then perform a scan,and it will appear