[jitsi-dev] ArrayIndexOutofBoundsException in JVB 953


#1

Has anyone seen this error?

Chrome version (Mac): Version 59.0.3071.86 (Official Build) (64-bit)

Thanks,

/Kaiduan

org.jitsi.impl.neomedia.RTPConnectorInputStream.log()] Failed to receive a
packet:

java.lang.ArrayIndexOutOfBoundsException: -6

at org.jitsi.util.RTPUtils.readInt(RTPUtils.java:115)

        at org.jitsi.service.neomedia.RawPacket.readInt(RawPacket.java:1439)

        at
org.jitsi.service.neomedia.RawPacket.getSRTCPIndex(RawPacket.java:1282)

        at
org.jitsi.impl.neomedia.transform.srtp.SRTCPCryptoContext.reverseTransformPacket(SRTCPCryptoContext.java:310)

        at
org.jitsi.impl.neomedia.transform.srtp.SRTCPTransformer.reverseTransform(SRTCPTransformer.java:181)

        at
org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.transformSrtp(DtlsPacketTransformer.java:1646)

        at
org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.transformSrtp(DtlsPacketTransformer.java:1600)

        at
org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.transformNonDtls(DtlsPacketTransformer.java:1474)

        at
org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.transform(DtlsPacketTransformer.java:1375)

        at
org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.reverseTransform(DtlsPacketTransformer.java:857)

        at
org.jitsi.impl.neomedia.transform.TransformEngineChain$PacketTransformerChain.reverseTransform(TransformEngineChain.java:381)

        at
org.jitsi.impl.neomedia.transform.TransformInputStream.createRawPacket(TransformInputStream.java:85)

        at
org.jitsi.impl.neomedia.RTPConnectorInputStream.runInReceiveThread(RTPConnectorInputStream.java:768)

        at
org.jitsi.impl.neomedia.RTPConnectorInputStream.access$000(RTPConnectorInputStream.java:42)

        at
org.jitsi.impl.neomedia.RTPConnectorInputStream$3.run(RTPConnectorInputStream.java:565)

···

--
Founder of Goodstartsoft
https://www.goodstartsoft.com


#2

Hi Kaiduan,

I haven’t seen this before. I suggest the following two things and post them here:

1. Capture a pcap file with tcpdump
2. Modify RTPUtils.java:115 to print the SSRC of the offending RTCP packet

Thank you!

Best,
George

···

On Jun 12, 2017, at 2:04 PM, Kaiduan Xie <kaiduanx@gmail.com> wrote:

Has anyone seen this error?

Chrome version (Mac): Version 59.0.3071.86 (Official Build) (64-bit)

Thanks,

/Kaiduan

org.jitsi.impl.neomedia.RTPConnectorInputStream.log()] Failed to receive a packet:

java.lang.ArrayIndexOutOfBoundsException: -6

at org.jitsi.util.RTPUtils.readInt(RTPUtils.java:115)

        at org.jitsi.service.neomedia.RawPacket.readInt(RawPacket.java:1439)

        at org.jitsi.service.neomedia.RawPacket.getSRTCPIndex(RawPacket.java:1282)

        at org.jitsi.impl.neomedia.transform.srtp.SRTCPCryptoContext.reverseTransformPacket(SRTCPCryptoContext.java:310)

        at org.jitsi.impl.neomedia.transform.srtp.SRTCPTransformer.reverseTransform(SRTCPTransformer.java:181)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.transformSrtp(DtlsPacketTransformer.java:1646)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.transformSrtp(DtlsPacketTransformer.java:1600)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.transformNonDtls(DtlsPacketTransformer.java:1474)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.transform(DtlsPacketTransformer.java:1375)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.reverseTransform(DtlsPacketTransformer.java:857)

        at org.jitsi.impl.neomedia.transform.TransformEngineChain$PacketTransformerChain.reverseTransform(TransformEngineChain.java:381)

        at org.jitsi.impl.neomedia.transform.TransformInputStream.createRawPacket(TransformInputStream.java:85)

        at org.jitsi.impl.neomedia.RTPConnectorInputStream.runInReceiveThread(RTPConnectorInputStream.java:768)

        at org.jitsi.impl.neomedia.RTPConnectorInputStream.access$000(RTPConnectorInputStream.java:42)

        at org.jitsi.impl.neomedia.RTPConnectorInputStream$3.run(RTPConnectorInputStream.java:565)

--
Founder of Goodstartsoft
https://www.goodstartsoft.com <https://www.goodstartsoft.com/>_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#3

Hi Kaiduan,

This one has us scratching out heads. We don't see how it is at all possible with jitsi-videobridge 953. If anything, updating to 957 or later would make a similar exception more likely.

When you encountered the issue did it happen often? Was it easily reproducible?

Regards,
Boris

···

On 12/06/2017 14:04, Kaiduan Xie wrote:

Has anyone seen this error?

Chrome version (Mac): Version 59.0.3071.86 (Official Build) (64-bit)

Thanks,

/Kaiduan

org.jitsi.impl.neomedia.RTPConnectorInputStream.log()] Failed to receive a packet:

java.lang.ArrayIndexOutOfBoundsException: -6

at org.jitsi.util.RTPUtils.readInt(RTPUtils.java:115)

at org.jitsi.service.neomedia.RawPacket.readInt(RawPacket.java:1439)

at org.jitsi.service.neomedia.RawPacket.getSRTCPIndex(RawPacket.java:1282)


#4

George,

I upgraded to 961, and the exception is gone.

Thanks,

/Kaiduan

···

On Mon, Jun 12, 2017 at 5:00 PM, George Politis <gp@jitsi.org> wrote:

Hi Kaiduan,

I haven’t seen this before. I suggest the following two things and post
them here:

1. Capture a pcap file with tcpdump
2. Modify RTPUtils.java:115 to print the SSRC of the offending RTCP packet

Thank you!

Best,
George

On Jun 12, 2017, at 2:04 PM, Kaiduan Xie <kaiduanx@gmail.com> wrote:

Has anyone seen this error?

Chrome version (Mac): Version 59.0.3071.86 (Official Build) (64-bit)

Thanks,

/Kaiduan

org.jitsi.impl.neomedia.RTPConnectorInputStream.log()] Failed to receive
a packet:

java.lang.ArrayIndexOutOfBoundsException: -6

at org.jitsi.util.RTPUtils.readInt(RTPUtils.java:115)

        at org.jitsi.service.neomedia.RawPacket.readInt(RawPacket.
java:1439)

        at org.jitsi.service.neomedia.RawPacket.getSRTCPIndex(
RawPacket.java:1282)

        at org.jitsi.impl.neomedia.transform.srtp.SRTCPCryptoContext.
reverseTransformPacket(SRTCPCryptoContext.java:310)

        at org.jitsi.impl.neomedia.transform.srtp.SRTCPTransformer.
reverseTransform(SRTCPTransformer.java:181)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.
transformSrtp(DtlsPacketTransformer.java:1646)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.
transformSrtp(DtlsPacketTransformer.java:1600)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.
transformNonDtls(DtlsPacketTransformer.java:1474)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.
transform(DtlsPacketTransformer.java:1375)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.
reverseTransform(DtlsPacketTransformer.java:857)

        at org.jitsi.impl.neomedia.transform.TransformEngineChain$
PacketTransformerChain.reverseTransform(TransformEngineChain.java:381)

        at org.jitsi.impl.neomedia.transform.TransformInputStream.
createRawPacket(TransformInputStream.java:85)

        at org.jitsi.impl.neomedia.RTPConnectorInputStream.
runInReceiveThread(RTPConnectorInputStream.java:768)

        at org.jitsi.impl.neomedia.RTPConnectorInputStream.access$000(
RTPConnectorInputStream.java:42)

        at org.jitsi.impl.neomedia.RTPConnectorInputStream$3.run(
RTPConnectorInputStream.java:565)
--
Founder of Goodstartsoft
https://www.goodstartsoft.com
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
Founder of Goodstartsoft
https://www.goodstartsoft.com


#5

Boris,

I can easily reproduce it on my side, it happens almost every time. What
information do you need?

Regards,

/Kaiduan

···

On Tue, Jun 13, 2017 at 2:47 PM, Boris Grozev <boris@jitsi.org> wrote:

On 12/06/2017 14:04, Kaiduan Xie wrote:

Has anyone seen this error?

Chrome version (Mac): Version 59.0.3071.86 (Official Build) (64-bit)

Thanks,

/Kaiduan

org.jitsi.impl.neomedia.RTPConnectorInputStream.log()] Failed to receive
a packet:

java.lang.ArrayIndexOutOfBoundsException: -6

at org.jitsi.util.RTPUtils.readInt(RTPUtils.java:115)

at org.jitsi.service.neomedia.RawPacket.readInt(RawPacket.java:1439)

at org.jitsi.service.neomedia.RawPacket.getSRTCPIndex(RawPacket
.java:1282)

Hi Kaiduan,

This one has us scratching out heads. We don't see how it is at all
possible with jitsi-videobridge 953. If anything, updating to 957 or later
would make a similar exception more likely.

When you encountered the issue did it happen often? Was it easily
reproducible?

Regards,
Boris

--
Founder of Goodstartsoft
https://www.goodstartsoft.com


#6

Good to know, thanks for reporting back Kaiduan!

···

On Jun 12, 2017, at 5:52 PM, Kaiduan Xie <kaiduanx@gmail.com> wrote:

George,

I upgraded to 961, and the exception is gone.

Thanks,

/Kaiduan

On Mon, Jun 12, 2017 at 5:00 PM, George Politis <gp@jitsi.org <mailto:gp@jitsi.org>> wrote:
Hi Kaiduan,

I haven’t seen this before. I suggest the following two things and post them here:

1. Capture a pcap file with tcpdump
2. Modify RTPUtils.java:115 to print the SSRC of the offending RTCP packet

Thank you!

Best,
George

On Jun 12, 2017, at 2:04 PM, Kaiduan Xie <kaiduanx@gmail.com <mailto:kaiduanx@gmail.com>> wrote:

Has anyone seen this error?

Chrome version (Mac): Version 59.0.3071.86 (Official Build) (64-bit)

Thanks,

/Kaiduan

org.jitsi.impl.neomedia.RTPConnectorInputStream.log()] Failed to receive a packet:

java.lang.ArrayIndexOutOfBoundsException: -6

at org.jitsi.util.RTPUtils.readInt(RTPUtils.java:115)

        at org.jitsi.service.neomedia.RawPacket.readInt(RawPacket.java:1439)

        at org.jitsi.service.neomedia.RawPacket.getSRTCPIndex(RawPacket.java:1282)

        at org.jitsi.impl.neomedia.transform.srtp.SRTCPCryptoContext.reverseTransformPacket(SRTCPCryptoContext.java:310)

        at org.jitsi.impl.neomedia.transform.srtp.SRTCPTransformer.reverseTransform(SRTCPTransformer.java:181)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.transformSrtp(DtlsPacketTransformer.java:1646)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.transformSrtp(DtlsPacketTransformer.java:1600)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.transformNonDtls(DtlsPacketTransformer.java:1474)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.transform(DtlsPacketTransformer.java:1375)

        at org.jitsi.impl.neomedia.transform.dtls.DtlsPacketTransformer.reverseTransform(DtlsPacketTransformer.java:857)

        at org.jitsi.impl.neomedia.transform.TransformEngineChain$PacketTransformerChain.reverseTransform(TransformEngineChain.java:381)

        at org.jitsi.impl.neomedia.transform.TransformInputStream.createRawPacket(TransformInputStream.java:85)

        at org.jitsi.impl.neomedia.RTPConnectorInputStream.runInReceiveThread(RTPConnectorInputStream.java:768)

        at org.jitsi.impl.neomedia.RTPConnectorInputStream.access$000(RTPConnectorInputStream.java:42)

        at org.jitsi.impl.neomedia.RTPConnectorInputStream$3.run(RTPConnectorInputStream.java:565)

--
Founder of Goodstartsoft
https://www.goodstartsoft.com <https://www.goodstartsoft.com/>_______________________________________________
dev mailing list
dev@jitsi.org <mailto:dev@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org <mailto:dev@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
Founder of Goodstartsoft
https://www.goodstartsoft.com <https://www.goodstartsoft.com/>_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#7

Are you running jitsi-meet? If so, information about the environment and how to reproduce it would be great.

Otherwise, a tcpdump capture from the bridge machine around the time the
problem occurs.

Thank you!

Regards,
Boris

···

On 13/06/2017 15:49, Kaiduan Xie wrote:

Boris,

I can easily reproduce it on my side, it happens almost every time. What information do you need?