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

FlutterP2p.discoverDevices() not working #6

Open
agnoam opened this issue Feb 4, 2020 · 2 comments
Open

FlutterP2p.discoverDevices() not working #6

agnoam opened this issue Feb 4, 2020 · 2 comments

Comments

@agnoam
Copy link

@agnoam agnoam commented Feb 4, 2020

I use the example app and when I tapped the Discover Devices button, it threw an exception.

exception:

V/ContentValues(30506): Method: isLocationPermissionGranted
V/ContentValues(30506): Method: register
W/ter_p2p_exampl(30506): Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
I/flutter (30506): stateChange: false
I/flutter (30506): connectionChange: false, Connected: false
I/flutter (30506): deviceChange: Android_14f9 / 1a:f0:e4:dd:26:ad / 10-0050F204-5 /  -GO
V/ContentValues(30506): Method: discover
E/flutter (30506): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(2, null, null)
[38;5;244mE/flutter (30506): #0      StandardMethodCodec.decodeEnvelope[39;49m
[38;5;244mE/flutter (30506): #1      MethodChannel._invokeMethod[39;49m
E/flutter (30506): <asynchronous suspension>
[38;5;244mE/flutter (30506): #2      MethodChannel.invokeMethod[39;49m
[38;5;248mE/flutter (30506): #3      FlutterP2p.discoverDevices[39;49m
[38;5;248mE/flutter (30506): #4      _MyAppState.build.<anonymous closure>[39;49m
[38;5;244mE/flutter (30506): #5      _InkResponseState._handleTap[39;49m
[38;5;244mE/flutter (30506): #6      _InkResponseState.build.<anonymous closure>[39;49m
[38;5;244mE/flutter (30506): #7      GestureRecognizer.invokeCallback[39;49m
[38;5;244mE/flutter (30506): #8      TapGestureRecognizer.handleTapUp[39;49m
[38;5;244mE/flutter (30506): #9      BaseTapGestureRecognizer._checkUp[39;49m
[38;5;244mE/flutter (30506): #10     BaseTapGestureRecognizer.handlePrimaryPointer[39;49m
[38;5;244mE/flutter (30506): #11     PrimaryPointerGestureRecognizer.handleEvent[39;49m
[38;5;244mE/flutter (30506): #12     PointerRouter._dispatch[39;49m
[38;5;244mE/flutter (30506): #13     PointerRouter._dispatchEventToRoutes.<anonymous closure>[39;49m
[38;5;244mE/flutter (30506): #14     _LinkedHashMapMixin.forEach  (dart:collection-patch/compact_hash.dart:379:8)[39;49m
[38;5;244mE/flutter (30506): #15     PointerRouter._dispatchEventToRoutes[39;49m
[38;5;244mE/flutter (30506): #16     PointerRouter.route[39;49m
[38;5;244mE/flutter (30506): #17     GestureBinding.handleEvent[39;49m
[38;5;244mE/flutter (30506): #18     GestureBinding.dispatchEvent[39;49m
[38;5;244mE/flutter (30506): #19     GestureBinding._handlePointerEvent[39;49m
[38;5;244mE/flutter (30506): #20     GestureBinding._flushPointerEventQueue[39;49m
[38;5;244mE/flutter (30506): #21     GestureBinding._handlePointerDataPacket[39;49m
[38;5;244mE/flutter (30506): #22     _rootRunUnary  (dart:async/zone.dart:1138:13)[39;49m
[38;5;244mE/flutter (30506): #23     _CustomZone.runUnary  (dart:async/zone.dart:1031:19)[39;49m
[38;5;244mE/flutter (30506): #24     _CustomZone.runUnaryGuarded  (dart:async/zone.dart:933:7)[39;49m
[38;5;244mE/flutter (30506): #25     _invoke1  (dart:ui/hooks.dart:273:10)[39;49m
[38;5;244mE/flutter (30506): #26     _dispatchPointerDataPacket  (dart:ui/hooks.dart:182:5)[39;49m
E/flutter (30506):
V/ContentValues(30506): Method: unregister

Why does it happen ?

@devtronic

This comment has been minimized.

Copy link
Member

@devtronic devtronic commented Feb 5, 2020

What's the output of flutter --version?

@agnoam

This comment has been minimized.

Copy link
Author

@agnoam agnoam commented Feb 5, 2020

Result of flutter --version:

Waiting for another flutter command to release the startup lock...
Flutter 1.13.6 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 659dc8129d (5 weeks ago) • 2019-12-30 09:24:47 -0800
Engine • revision bdc9708d23
Tools • Dart 2.8.0 (build 2.8.0-dev.0.0 c547f5d933)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.