Jibri concurrent modification exception

Hi,

I’m trying to install jibri as SIP Gateway. After shutting down the XMPP and starting the next day, the jibri instance throws concurrentModification Exception:

mars 20 10:22:35 HOSTNAME launch.sh[1305]: 2019-03-20 10:22:35.671 INFOS: [66] class org.jitsi.xmpp.mucclient.MucClient.connected() [prod environment: -------------] Xmpp connection status: connected
mars 20 10:22:35 HOSTNAME launch.sh[1305]: 2019-03-20 10:22:35.725 INFOS: [66] class org.jitsi.xmpp.mucclient.MucClient.authenticated() [prod environment: -----------------] Xmpp connection status: authenticated (resume from previous? false)
mars 20 10:22:35 HOSTNAME launch.sh[1305]: Exception in thread "Thread-30" java.util.ConcurrentModificationException
mars 20 10:22:35 HOSTNAME launch.sh[1305]:         at java.util.HashMap$HashIterator.nextNode(HashMap.java:1442)
mars 20 10:22:35 HOSTNAME launch.sh[1305]:         at java.util.HashMap$KeyIterator.next(HashMap.java:1466)
mars 20 10:22:35 HOSTNAME launch.sh[1305]:         at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1042)
mars 20 10:22:35 HOSTNAME launch.sh[1305]:         at org.jivesoftware.smackx.muc.MultiUserChatManager$3$1.run(MultiUserChatManager.java:195)
mars 20 10:22:35 HOSTNAME launch.sh[1305]:         at java.lang.Thread.run(Thread.java:748)

This happens when jibri finally manages to connect to the XMPP server after keep trying with countdown. Restart of jibri is required then

Thanks for the report, we will check it. Are you running vanilla jibri without any code modifications?

Just capture and playback deviceId constants in jibri\src\main\kotlin\org\jitsi\jibri\sipgateway\pjsua\PjsuaClient.kt

and

mvn clean install