I have two Nexus 7's here on my desk. bought at the exact same time.
I'm playing around with NSD doing a simple exercise to get the two devices
to see each other.
The app I wrote to test the NSD works on one device and crashes on the
other, with some sort of internal NPE.
Has anyone else experienced this kind of flakiness on the Nexus 7?
Note: this works fine on the other Nexus 7 device.
Here is the output of LogCat in case it is relevant:
11-12 18:12:21.312: I/ActivityManager(360): START
{act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
flg=0x10200000 cmp=sixgreen.intercom/.IntercomActivity
bnds=[144,915][272,1043] u=0} from pid 736
11-12 18:12:21.372: D/dalvikvm(360): GC_FOR_ALLOC freed 338K, 23% free
14987K/19335K, paused 46ms, total 48ms
11-12 18:12:21.392: D/dalvikvm(3579): Late-enabling CheckJNI
11-12 18:12:21.392: I/ActivityManager(360): Start proc sixgreen.intercom
for activity sixgreen.intercom/.IntercomActivity: pid=3579 uid=10063
gids={3003, 1028}
11-12 18:12:21.542: D/NsdService(360): New client listening to asynchronous
messages
11-12 18:12:21.542: D/NsdService(360): New client, channel:
com.android.internal.util.AsyncChannel@415b1798 messenger:
android.os.Messenger@414ab7f0
11-12 18:12:21.542: D/NsdService(360): Register service
11-12 18:12:21.542: D/MDnsDS(121): serviceRegister(182, (null), Intercom
[c5513be8-af66-45c8-b2ea-24c03a286261], _intercom._tcp., (null), (null),
12348, 0, <binary>)
11-12 18:12:21.542: D/MDnsDS(121): startMonitoring 182
11-12 18:12:21.542: D/MDnsDS(121): triggering rescan
11-12 18:12:21.542: D/MDnsDS(121): serviceRegister successful
11-12 18:12:21.542: D/MDnsDS(121): Monitor poll got data pollCount = 5, 1
11-12 18:12:21.542: D/MDnsDS(121): controlSocket shows revent= 1
11-12 18:12:21.542: D/MDnsDS(121): MDnsSdListener::Monitor got 1
11-12 18:12:21.542: D/MDnsDS(121): MDnsSdListener::Monitor poll rescanning
- size=10, live=5
11-12 18:12:21.542: D/MDnsDS(121): Going to poll with pollCount 6
11-12 18:12:21.542: D/NsdService(360): registerService: 182 name: Intercom
[c5513be8-af66-45c8-b2ea-24c03a286261]type: _intercom._tcp.host: nullport:
12348txtRecord: null
11-12 18:12:21.552: D/MDnsDS(121): discover((null), _intercom._tcp.,
(null), 183, 0)
11-12 18:12:21.552: D/MDnsDS(121): using ref 0x40a05654
11-12 18:12:21.552: D/MDnsDS(121): startMonitoring 183
11-12 18:12:21.552: D/MDnsDS(121): triggering rescan
11-12 18:12:21.552: D/MDnsDS(121): discover successful
11-12 18:12:21.552: D/NsdService(360): Register 1 182
11-12 18:12:21.552: D/NsdService(360): Discover services
11-12 18:12:21.552: D/NsdService(360): discoverServices: 183 _intercom._tcp.
11-12 18:12:21.562: D/MDnsDS(121): Monitor poll got data pollCount = 6, 1
11-12 18:12:21.562: D/MDnsDS(121): controlSocket shows revent= 1
11-12 18:12:21.562: D/MDnsDS(121): MDnsSdListener::Monitor got 1
11-12 18:12:21.562: D/MDnsDS(121): MDnsSdListener::Monitor poll rescanning
- size=10, live=6
11-12 18:12:21.562: D/MDnsDS(121): Going to poll with pollCount 7
11-12 18:12:21.562: D/MDnsDS(121): Monitor poll got data pollCount = 7, 1
11-12 18:12:21.562: D/MDnsDS(121): Monitor found [1].revents = 1 - calling
ProcessResults
11-12 18:12:21.562: D/MDnsDS(121): Discover found new serviceName Intercom,
regType _intercom._tcp. and domain local. for 183
11-12 18:12:21.562: D/MDnsDS(121): controlSocket shows revent= 0
11-12 18:12:21.562: D/MDnsDS(121): Going to poll with pollCount 7
11-12 18:12:21.562: D/IntercomActivity(3579): Service discovery started
11-12 18:12:21.562: W/dalvikvm(3579): threadid=11: thread exiting with
uncaught exception (group=0x40c4d300)
11-12 18:12:21.562: D/NsdService(360): Discover 2 183_intercom._tcp.
11-12 18:12:21.562: D/NsdService(360): SERVICE_FOUND Raw: 603 183
"Intercom" _intercom._tcp. local.
11-12 18:12:21.562: E/AndroidRuntime(3579): FATAL EXCEPTION: NsdManager
11-12 18:12:21.562: E/AndroidRuntime(3579): java.lang.NullPointerException
11-12 18:12:21.562: E/AndroidRuntime(3579): at
android.net.nsd.NsdManager$ServiceHandler.handleMessage(NsdManager.java:328)
11-12 18:12:21.562: E/AndroidRuntime(3579): at
android.os.Handler.dispatchMessage(Handler.java:99)
11-12 18:12:21.562: E/AndroidRuntime(3579): at
android.os.Looper.loop(Looper.java:137)
11-12 18:12:21.562: E/AndroidRuntime(3579): at
android.os.HandlerThread.run(HandlerThread.java:60)
11-12 18:12:21.562: W/ActivityManager(360): Force finishing activity
sixgreen.intercom/.IntercomActivity
11-12 18:12:21.632: D/dalvikvm(360): GC_FOR_ALLOC freed 356K, 23% free
14938K/19335K, paused 55ms, total 55ms
11-12 18:12:21.662: D/libEGL(3579): loaded /system/lib/egl/libEGL_tegra.so
11-12 18:12:21.712: D/libEGL(3579): loaded
/system/lib/egl/libGLESv1_CM_tegra.so
11-12 18:12:21.722: D/libEGL(3579): loaded
/system/lib/egl/libGLESv2_tegra.so
11-12 18:12:21.752: D/OpenGLRenderer(3579): Enabling debug mode 0
11-12 18:12:21.762: D/NsdService(360): unregister service
11-12 18:12:21.762: D/MDnsDS(121): Stopping register with ref 0x400b63b4
11-12 18:12:21.762: D/MDnsDS(121): freeServiceRef 182
11-12 18:12:21.762: D/MDnsDS(121): triggering rescan
11-12 18:12:21.762: D/MDnsDS(121): Monitor poll got data pollCount = 7, 2
11-12 18:12:21.762: D/MDnsDS(121): Monitor found [2].revents = 32 - calling
ProcessResults
11-12 18:12:21.762: D/MDnsDS(121): controlSocket shows revent= 1
11-12 18:12:21.762: D/MDnsDS(121): MDnsSdListener::Monitor got 1
11-12 18:12:21.762: D/MDnsDS(121): MDnsSdListener::Monitor poll rescanning
- size=10, live=5
11-12 18:12:21.762: D/MDnsDS(121): Going to poll with pollCount 6
11-12 18:12:21.762: D/NsdService(360): unregisterService: 182
11-12 18:12:21.772: D/NsdService(360): Stop service discovery
11-12 18:12:21.772: D/MDnsDS(121): Stopping discover with ref 0x40a05654
11-12 18:12:21.772: D/MDnsDS(121): freeServiceRef 183
11-12 18:12:21.772: D/MDnsDS(121): triggering rescan
11-12 18:12:21.772: D/MDnsDS(121): Monitor poll got data pollCount = 6, 2
11-12 18:12:21.772: D/MDnsDS(121): Monitor found [1].revents = 32 - calling
ProcessResults
11-12 18:12:21.772: D/MDnsDS(121): controlSocket shows revent= 1
11-12 18:12:21.772: D/MDnsDS(121): MDnsSdListener::Monitor got 1
11-12 18:12:21.772: D/MDnsDS(121): MDnsSdListener::Monitor poll rescanning
- size=10, live=4
11-12 18:12:21.772: D/MDnsDS(121): Going to poll with pollCount 5
11-12 18:12:21.772: D/NsdService(360): stopServiceDiscovery: 183
11-12 18:12:21.842: I/ActivityManager(360): Displayed
sixgreen.intercom/.IntercomActivity: +461ms
11-12 18:12:24.352: I/Process(3579): Sending signal. PID: 3579 SIG: 9
11-12 18:12:24.362: I/ActivityManager(360): Process sixgreen.intercom (pid
3579) has died.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en