• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Network Service Discovery

rajar11

Lurker
Hi All,
I have an app on Samsung J5 2016 model which uses Network Service Discovery to find devices on the network. There are about 60-70 devices on the network. During the discovery of the devices the NsdService fails with an ArrayIndexOutOfBoundsException which causes the samsung J5 to restart. Here is the dump state log.

<6>[ 1773.596525] [0: NsdService: 1465] ss_platform_log: !@*** FATAL EXCEPTION IN SYSTEM PROCESS: NsdService
<6>[ 1773.596525] [0: NsdService: 1465] java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
<6>[ 1773.596525] [0: NsdService: 1465] at com.android.server.NsdService$NsdStateMachine$EnabledState.handleNativeEvent(NsdService.java:434)
<6>[ 1773.596525] [0: NsdService: 1465] at com.android.server.NsdService$NsdStateMachine$EnabledState.processMessage(NsdService.java:397)
<6>[ 1773.596525] [0: NsdService: 1465] at com.android.internal.util.StateMachine$SmHandler.processMsg(StateMachine.java:980)
<6>[ 1773.596525] [0: NsdService: 1465] at com.android.internal.util.StateMachine$SmHandler.handleMessage(StateMachine.java:799)
<6>[ 1773.596525] [0: NsdService: 1465] at android.os.Handler.dispatchMessage(Handler.java:102)
<6>[ 1773.596525] [0: NsdService: 1465] at android.os.Looper.loop(Looper.java:154)
<6>[ 1773.680553] [2: NsdService: 1465] ss_platform_log: !@DumpState : SHIP
<6>[ 1773.680668] [2: NsdService: 1465] ss_platform_log: !@DumpState : debug level:0x4f4c
<13>[ 1773.685098] [1: init: 1] init: Starting service 'bugreportsys'...
<6>[ 1774.181709] [2: NsdService: 1465] ss_platform_log: !@dumpstate auto run

Uploading full dump state log.

Thanks,
Raghu
 
Back
Top Bottom