RestComm / jain-sip

Disclaimer: This repository is a git-svn mirror of the project found at http://java.net/projects/jsip whose original repository is developed collaboratively by the Advanced Networking Technologies Division at the National Institute of Standards and Technology (NIST) - an agency of the United States Department of Commerce and by a community of individual and enterprise contributors. TeleStax, Inc. will perform some productization work, new features experimentation branches, etc for its TelScale jSIP product that doesn't concern the community from the main repository hence this git repository.
http://www.restcomm.com/
144 stars 152 forks source link

Investigate crash stacktrace from Android SDK #156

Open atsakiridis opened 7 years ago

atsakiridis commented 7 years ago

@jaimecasero although probably nothing I'd like you to have a look to see if this issue sounds familiar from JAIN SIP perspective. I had a quick look at the JAIN SIP code and couldn't make something of it. It happens during Android device's first registration but I only have one occurrence of it so definitely not critical. Unfortunately the TestFairy session doesn't have other contextual data like android console logs because it occurs very early on. Here's the stack trace:

java.lang.IllegalMonitorStateException
    at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:123)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1235)
    at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:429)
    at android.gov.nist.javax.sip.stack.KeyedSemaphore.leaveIOCriticalSection(KeyedSemaphore.java:44)
    at android.gov.nist.javax.sip.stack.NIOHandler.openOutgoingConnection(NIOHandler.java:326)
    at android.gov.nist.javax.sip.stack.NIOHandler.createOrReuseSocket(NIOHandler.java:472)
    at android.gov.nist.javax.sip.stack.NioTcpMessageChannel.<init>(NioTcpMessageChannel.java:192)
    at android.gov.nist.javax.sip.stack.NioTlsMessageChannel.<init>(NioTlsMessageChannel.java:204)
    at android.gov.nist.javax.sip.stack.NioTlsMessageProcessor.constructMessageChannel(NioTlsMessageProcessor.java:89)
    at android.gov.nist.javax.sip.stack.NioTcpMessageProcessor.createMessageChannel(NioTcpMessageProcessor.java:434)
    at android.gov.nist.javax.sip.stack.NioTcpMessageProcessor.createMessageChannel(NioTcpMessageProcessor.java:458)
    at android.gov.nist.javax.sip.stack.SIPTransactionStack.createMessageChannel(SIPTransactionStack.java:1776)
    at android.gov.nist.javax.sip.SipProviderImpl.createClientTransaction(SipProviderImpl.java:389)
    at android.gov.nist.javax.sip.SipProviderImpl.getNewClientTransaction(SipProviderImpl.java:455)
    at org.restcomm.android.sdk.SignalingClient.JainSipClient.JainSipClient.jainSipClientRegister(JainSipClient.java:532)
    at org.restcomm.android.sdk.SignalingClient.JainSipClient.JainSipJob$JainSipFsm.process(JainSipJob.java:186)
    at org.restcomm.android.sdk.SignalingClient.JainSipClient.JainSipJob.startFsm(JainSipJob.java:782)
    at org.restcomm.android.sdk.SignalingClient.JainSipClient.JainSipJobManager.add(JainSipJobManager.java:53)
    at org.restcomm.android.sdk.SignalingClient.JainSipClient.JainSipJobManager.add(JainSipJobManager.java:61)
    at org.restcomm.android.sdk.SignalingClient.JainSipClient.JainSipClient.open(JainSipClient.java:204)
    at org.restcomm.android.sdk.SignalingClient.SignalingHandler.handleMessage(SignalingHandler.java:75)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:158)
    at android.os.HandlerThread.run(HandlerThread.java:61)