NPE during PC instruction

39 views
Skip to first unread message

Sean H

unread,
Nov 19, 2013, 5:29:47 PM11/19/13
to sipme-med...@googlegroups.com
Yulian, I've been running some tests with the 4.x version and had the following error appear:

11:23:57,546 ERROR [Task] java.lang.NullPointerException

I added a stack trace to the code base and this is what caused the NPE:

11:23:57,546 ERROR [Task] java.lang.NullPointerException
java.lang.NullPointerException
        at ua.mobius.media.server.concurrent.ConcurrentCyclicFIFO.offer(ConcurrentCyclicFIFO.java:126)
        at ua.mobius.media.server.component.audio.AudioInput.onMediaTransfer(AudioInput.java:108)
        at ua.mobius.media.server.impl.AbstractAudioSink.perform(AbstractAudioSink.java:77)
        at ua.mobius.media.server.impl.AbstractAudioSource$Worker.perform(AbstractAudioSource.java:288)
        at ua.mobius.media.server.scheduler.Task.run(Task.java:127)
        at ua.mobius.media.server.scheduler.Scheduler$WorkerThread.run(Scheduler.java:425)

I've included a console log file from MMS.

It would seem like 2 threads need to be accessing the same object(and effecting activeFrame), one calling AudioInput.recycle() and at the same time one calling AudioInput.onMediaTransfer() for this to NPE:

AudioInput.java:108:              buffer.offer(activeFrame);

Any thoughts on this error?

--Sean


NPE.txt

oifa.yulian

unread,
Nov 25, 2013, 2:26:10 PM11/25/13
to sipme-med...@googlegroups.com
Well AudioInput.recycle is not used at all on main mms branch i have removed the code and everything is compiling perfectly.
Therefore the only function that modifies the activeFrame is onMediaTransfer.
This function in fact is called by Rtp Input , Recorder and other "generating" sources.
In current mms release it can not be executed concurrently , that means that i would recommend you to check your code especially the modified parts to see what causes this error.
Please also note that this error never happened on any other machine.

For next commit i just removed the recycle function
Best regards
Yulian Oifa
Reply all
Reply to author
Forward
0 new messages