Actions
Bug #4828
openWifi Direct Will Not Reconnect After nfd-restart Using Button Inside NFD-android
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
02/01/2019
Due date:
% Done:
0%
Estimated time:
Description
Turning off NFD inside NFD-android and back on again while connected to a device through Wifi Direct will prevent reconnecting to that device unless NFD-android is force stopped and restarted.
Error when turning off NFD while WifiDirect is connected:
02-01 14:21:19.239 6705-6705/net.named_data.nfd.service.NfdService I/nfd.NfdWrapper: Stopping NFD...
02-01 14:21:19.240 6705-6705/net.named_data.nfd.service.NfdService D/net.named_data.nfd.service.NfdService: serviceStopNfd()
02-01 14:21:19.243 1279-1279/? I/wpa_supplicant: p2p-p2p0-12: CTRL-EVENT-DISCONNECTED bssid=f8:f1:b6:ff:72:5c reason=3 locally_generated=1
02-01 14:21:19.244 1279-1279/? I/wpa_supplicant: P2P-GROUP-REMOVED p2p-p2p0-12 client reason=REQUESTED
02-01 14:21:19.270 6686-6686/net.named_data.nfd E/NDNController: Unable to remove self from WifiP2p group, reason: Framework is busy.
02-01 14:21:19.270 6686-6686/net.named_data.nfd D/NDNController: Successfully removed self from WifiP2p group.
02-01 14:21:19.270 6686-6686/net.named_data.nfd D/WDBRService: onDestroy()
02-01 14:21:19.270 6686-6686/net.named_data.nfd D/WDBRService: unregisterReceiver()
02-01 14:21:19.331 6686-6686/net.named_data.nfd D/NFDService: ClientHandler: NFD is Stopped.
02-01 14:21:19.386 219-845/? D/CommandListener: Clearing all IP addresses on p2p-p2p0-12
02-01 14:21:19.417 1279-1279/? I/wpa_supplicant: nl80211: deinit ifname=p2p-p2p0-12 disabled_11b_rates=0
02-01 14:21:19.431 787-938/system_process D/NetUtils: android_net_utils_resetConnections in env=0x9ef39980 clazz=0x9c7ff3fc iface=p2p-p2p0-12 mask=0x3
02-01 14:21:19.445 6705-6725/net.named_data.nfd.service.NfdService I/nfd.NfdWrapper: NFD stopped
02-01 14:21:19.463 6686-6761/net.named_data.nfd W/System.err: com.intel.jndn.management.ManagementException: recvfrom failed: ECONNRESET (Connection reset by peer)
02-01 14:21:19.463 6686-6761/net.named_data.nfd W/System.err: at com.intel.jndn.management.Nfdc.unregister(Nfdc.java:368)
02-01 14:21:19.463 6686-6761/net.named_data.nfd W/System.err: at com.intel.jndn.management.Nfdc.unregister(Nfdc.java:391)
02-01 14:21:19.463 6686-6761/net.named_data.nfd W/System.err: at net.named_data.nfd.utils.NfdcHelper.ribUnregisterPrefix(NfdcHelper.java:118)
02-01 14:21:19.463 6686-6761/net.named_data.nfd W/System.err: at net.named_data.nfd.wifidirect.runnable.RibUnregisterPrefixRunnable.run(RibUnregisterPrefixRunnable.java:46)
02-01 14:21:19.463 6686-6761/net.named_data.nfd W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
02-01 14:21:19.463 6686-6761/net.named_data.nfd W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
02-01 14:21:19.463 6686-6761/net.named_data.nfd W/System.err: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
02-01 14:21:19.463 6686-6761/net.named_data.nfd W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
02-01 14:21:19.463 6686-6761/net.named_data.nfd W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
02-01 14:21:19.463 6686-6761/net.named_data.nfd W/System.err: at java.lang.Thread.run(Thread.java:818)
02-01 14:21:19.463 6686-6761/net.named_data.nfd W/System.err: Caused by: java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:588)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at libcore.io.IoBridge.recvfrom(IoBridge.java:564)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at java.nio.SocketChannelImpl.readImpl(SocketChannelImpl.java:342)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at java.nio.SocketChannelImpl.read(SocketChannelImpl.java:304)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at net.named_data.jndn.transport.TcpTransport.processEvents(TcpTransport.java:187)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at net.named_data.jndn.Node.processEvents(Node.java:365)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at net.named_data.jndn.Face.processEvents(Face.java:1361)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at com.intel.jndn.management.helpers.FetchHelper.getData(FetchHelper.java:158)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at com.intel.jndn.management.helpers.FetchHelper.getData(FetchHelper.java:85)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at com.intel.jndn.management.Nfdc.sendCommand(Nfdc.java:541)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at com.intel.jndn.management.Nfdc.unregister(Nfdc.java:366)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: ... 9 more
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: Caused by: android.system.ErrnoException: recvfrom failed: ECONNRESET (Connection reset by peer)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at libcore.io.Posix.recvfromBytes(Native Method)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at libcore.io.Posix.recvfrom(Posix.java:181)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:245)
02-01 14:21:19.464 6686-6761/net.named_data.nfd W/System.err: at libcore.io.IoBridge.recvfrom(IoBridge.java:561)
02-01 14:21:19.465 6686-6761/net.named_data.nfd W/System.err: ... 18 more
02-01 14:21:19.465 6686-6761/net.named_data.nfd D/NDNController: before cleaning up connected peers, the size of ipPeerMapOfConnectedPeers is 1
02-01 14:21:19.465 6686-6761/net.named_data.nfd D/NDNController: Cleaning up face towards peer: 192.168.49.1
02-01 14:21:19.467 6686-6741/net.named_data.nfd D/NFDService: Error communicating with NFD (recvfrom failed: ECONNRESET (Connection reset by peer))
02-01 14:21:19.524 6686-6761/net.named_data.nfd E/NDNController: Unable to destroy face to: 192.168.49.1
Error when trying to reconnect to device through Wifi Direct after turning NFD off and back on in the app:
02-01 16:57:19.565 7418-7418/? I/dhcpcd: p2p-p2p0-19: broadcasting for a lease
02-01 16:57:19.628 7418-7418/? I/dhcpcd: p2p-p2p0-19: offered 192.168.49.44 from 192.168.49.1
02-01 16:57:19.693 7418-7418/? I/dhcpcd: p2p-p2p0-19: acknowledged 192.168.49.44 from 192.168.49.1
02-01 16:57:19.731 7418-7418/? I/dhcpcd: p2p-p2p0-19: leased 192.168.49.44 for 3600 seconds
02-01 16:57:19.896 7212-7280/net.named_data.nfd D/ProbeRunnable: start to probe
02-01 16:57:20.134 7212-7212/net.named_data.nfd D/WDBroadcastReceiver: p2pconnection changed check
02-01 16:57:20.187 7212-7212/net.named_data.nfd D/NDNController: connection info is available!!
02-01 16:57:20.211 7212-7212/net.named_data.nfd D/NDNController: My WiFi Direct IP address is: 192.168.49.44
02-01 16:57:20.211 7212-7212/net.named_data.nfd D/NDNController: registerOwnLocalhop() starts to work
02-01 16:57:20.214 7212-7280/net.named_data.nfd D/RegisterPrefixRunnable: try to register local prefix/localhop/wifidirect/192.168.49.44
02-01 16:57:20.215 7212-7212/net.named_data.nfd D/NDNController: registerOwnLocalhop() called...
02-01 16:57:20.215 7212-7212/net.named_data.nfd D/NDNController: I am NOT the group owner.
02-01 16:57:20.230 7212-7281/net.named_data.nfd D/FaceCreateRunnable: -------- Inside face create runnable --------
02-01 16:57:20.281 7212-7281/net.named_data.nfd E/FaceCreateRunnable: sendto failed: EPIPE (Broken pipe)
02-01 16:57:20.281 7212-7281/net.named_data.nfd D/FaceCreateRunnable: ---------- END face create runnable -----------
Actions