Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

AntChannel assign fails generating a DeadObjectException

Rank

Total Posts: 19

Joined 0

PM

Hi,

Calling AntChannel.assign while opening a channel, sometimes generates a DeadObjectException

android.os.DeadObjectException
at com.dsi.ant.channel.AntChannel.checkResult(AntChannel.java:891)
at com.dsi.ant.channel.AntChannel.assign(AntChannel.java:210)
at com.dsi.ant.channel.AntChannel.assign(AntChannel.java:180)
at nz.org.hpsnz.antcommon.Communications.ChannelController.openChannel(ChannelController.java:100)
at nz.org.hpsnz.antcommon.Communications.ChannelController$ChannelEventCallback.onReceiveMessage(ChannelController.java:227)
at com.dsi.ant.channel.AntChannel$ChannelEventDispatcher.onReceiveMessage(AntChannel.java:148)
at com.dsi.ant.channel.ipc.aidl.AntChannelCommunicatorAidl.onRxAntMessage(AntChannelCommunicatorAidl.java:206)
at com.dsi.ant.channel.ipc.aidl.AntChannelCommunicatorAidl$AntIpcEventReceiver.handleMessage(AntChannelCommunicatorAidl.java:131)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)

When this occurs, onChannelDeath() is called on the AntChannelEventHandler for all existing channels.

After this occurs, no further attempts to connect to devices succeed (although channels continue to generate search timeouts - RX_SEARCH_TIMEOUT).

Is there a way to recover from this situation without restarting the smartphone/tablet?

The tablet this is occurring on is a Samsung S2 9.7 running Android 7