Server becomes unresponsive after a recording crash

I’m having trouble where I think if the user leaves, the recording crashes the server? Or it gets stuck in some kind of loop.

Here’s a log showing it occuring. What is strange is that the box becomes unresponsive after this crash, even though the finalise_script.sh runs and does its thing properly.

The .mp4 that is saved has a filesize saying something is in it (10mb), but I can’t play it when I download it (says the file is corrupt).

Is there a way to repair or otherwise record videos that prevent the corrupt problem?

2021-09-10 04:28:02.522 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:29:02.522 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:29:57.848 INFO: [5463] org.jitsi.jibri.api.xmpp.XmppApi.log() Received JibriIq <iq to='jibri@jitsi.bpsdassist.org.au/sOYvIxEz' from='jibribrewery@internal.auth.jitsi.bpsdassist.org.au/focus' id='amlicmlAaml0c2kuYnBzZGFzc2lzdC5vcmcuYXUvc09Zdkl4RXoAQUpNdUktNjI4ODg0ALp7zPNr9uGuh8GJZ6vOu/c=' type='set'><jibri xmlns='http://jitsi.org/protocol/jibri' action='start' recording_mode='file' room='telehealth-appointment-210-fd497244@conference.jitsi.bpsdassist.org.au' session_id='ctfhnnyfucqtooxf' app_data='{"file_recording_metadata":{"share":true}}'/></iq> from environment [MucClient id=jitsi.bpsdassist.org.au hostname=jitsi.bpsdassist.org.au]
2021-09-10 04:29:57.849 INFO: [5463] org.jitsi.jibri.api.xmpp.XmppApi.log() Received start request, starting service
2021-09-10 04:29:58.025 INFO: [5463] org.jitsi.jibri.api.xmpp.XmppApi.log() Parsed call url info: CallUrlInfo(baseUrl=https://jitsi.bpsdassist.org.au, callName=telehealth-appointment-210-fd497244, urlParams=[])
2021-09-10 04:29:58.028 INFO: [5463] org.jitsi.jibri.JibriManager.log() Starting a file recording with params: FileRecordingRequestParams(callParams=CallParams(callUrlInfo=CallUrlInfo(baseUrl=https://jitsi.bpsdassist.org.au, callName=telehealth-appointment-210-fd497244, urlParams=[]), email='', passcode=null, callStatsUsernameOverride=, displayName=), sessionId=ctfhnnyfucqtooxf, callLoginParams=XmppCredentials(domain=recorder.jitsi.bpsdassist.org.au, port=null, username=recorder, password=placeholderpasswordhere))
2021-09-10 04:29:58.083 FINE: [5463] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.log() Detected os as OS: LINUX
2021-09-10 04:30:00.919 INFO: [5463] org.openqa.selenium.remote.ProtocolHandshake.createSession() Detected dialect: OSS
2021-09-10 04:30:00.964 INFO: [5463] org.jitsi.jibri.service.impl.FileRecordingJibriService.log() Writing recording to /srv/recordings/ctfhnnyfucqtooxf, finalize script path /srv/config/finalise_recordings.sh
2021-09-10 04:30:00.977 FINE: [5463] org.jitsi.jibri.statsd.JibriStatsDClient.log() Incrementing statsd counter: start:recording
2021-09-10 04:30:00.980 INFO: [5463] org.jitsi.jibri.status.JibriStatusManager.log() Busy status has changed: IDLE -> BUSY
2021-09-10 04:30:00.982 FINE: [5463] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:30:00.982 INFO: [5463] org.jitsi.jibri.api.xmpp.XmppApi.log() Jibri reports its status is now JibriStatus(busyStatus=BUSY, health=OverallHealth(healthStatus=HEALTHY, details={})), publishing presence to connections
2021-09-10 04:30:01.000 INFO: [5463] org.jitsi.jibri.JibriManager.log() This service will have a usage timeout of 60 minute(s)
2021-09-10 04:30:01.003 INFO: [5463] org.jitsi.jibri.api.xmpp.XmppApi.log() Sending 'pending' response to start IQ
2021-09-10 04:30:01.016 INFO: [5476] org.jitsi.jibri.selenium.pageobjects.HomePage.log() Visiting url https://jitsi.bpsdassist.org.au
2021-09-10 04:30:02.522 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:30:03.238 INFO: [5476] org.jitsi.jibri.selenium.pageobjects.HomePage.log() Waited 2.19s for driver to load page
2021-09-10 04:30:03.541 INFO: [5476] org.jitsi.jibri.selenium.pageobjects.CallPage.log() Visiting url https://jitsi.bpsdassist.org.au/telehealth-appointment-210-fd497244#config.iAmRecorder=true&config.externalConnectUrl=null&config.startWithAudioMuted=true&config.startWithVideoMuted=true&interfaceConfig.APP_NAME="Jibri"&config.analytics.disabled=true&config.p2p.enabled=false&config.prejoinPageEnabled=false&config.requireDisplayName=false
2021-09-10 04:30:04.586 INFO: [5476] org.jitsi.jibri.selenium.pageobjects.CallPage.log() Waited 1.04s for driver to load page
2021-09-10 04:30:04.617 FINE: [5476] org.jitsi.jibri.selenium.pageobjects.CallPage.log() Not joined yet: Cannot read property 'isJoined' of undefined
2021-09-10 04:30:05.133 FINE: [5476] org.jitsi.jibri.selenium.pageobjects.CallPage.log() Not joined yet: Cannot read property 'isJoined' of undefined
2021-09-10 04:30:06.407 INFO: [5476] org.jitsi.jibri.selenium.pageobjects.CallPage.log() Waited 1.82s to join the conference
2021-09-10 04:30:06.408 INFO: [5476] org.jitsi.jibri.selenium.status_checks.EmptyCallStatusCheck.log() Starting empty call check with a timeout of PT30S
2021-09-10 04:30:06.478 INFO: [5476] org.jitsi.jibri.selenium.JibriSelenium.log() Transitioning from state Starting up to Running
2021-09-10 04:30:06.480 INFO: [5476] org.jitsi.jibri.service.impl.FileRecordingJibriService.log() Selenium joined the call, starting the capturer
2021-09-10 04:30:06.588 INFO: [5476] org.jitsi.jibri.util.JibriSubprocess.log() Starting ffmpeg with command ffmpeg -y -v info -f x11grab -draw_mouse 0 -r 30 -s 1280x720 -thread_queue_size 4096 -i :0.0+0,0 -f alsa -thread_queue_size 4096 -i plug:bsnoop -acodec aac -strict -2 -ar 44100 -b:a 128k -af aresample=async=1 -c:v libx264 -preset veryfast -profile:v main -level 3.1 -pix_fmt yuv420p -r 30 -crf 25 -g 60 -tune zerolatency -f mp4 /srv/recordings/ctfhnnyfucqtooxf/telehealth-appointment-210-fd497244_2021-09-10-04-30-00.mp4 ([ffmpeg, -y, -v, info, -f, x11grab, -draw_mouse, 0, -r, 30, -s, 1280x720, -thread_queue_size, 4096, -i, :0.0+0,0, -f, alsa, -thread_queue_size, 4096, -i, plug:bsnoop, -acodec, aac, -strict, -2, -ar, 44100, -b:a, 128k, -af, aresample=async=1, -c:v, libx264, -preset, veryfast, -profile:v, main, -level, 3.1, -pix_fmt, yuv420p, -r, 30, -crf, 25, -g, 60, -tune, zerolatency, -f, mp4, /srv/recordings/ctfhnnyfucqtooxf/telehealth-appointment-210-fd497244_2021-09-10-04-30-00.mp4])
2021-09-10 04:30:08.422 INFO: [5479] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.log() Ffmpeg capturer transitioning from state Starting up to Running
2021-09-10 04:30:08.446 INFO: [5479] org.jitsi.jibri.service.impl.FileRecordingJibriService.log() File recording service transitioning from state Starting up to Running
2021-09-10 04:30:08.450 INFO: [5479] org.jitsi.jibri.api.xmpp.XmppApi.log() Current service started up successfully, sending on iq <iq to='jibribrewery@internal.auth.jitsi.bpsdassist.org.au/focus' id='FW7R1-11084' type='set'><jibri xmlns='http://jitsi.org/protocol/jibri' status='on'/></iq>
2021-09-10 04:30:21.538 INFO: [18] org.jitsi.jibri.selenium.status_checks.MediaReceivedStatusCheck.log() Jibri client receive bitrates: {audio={download=0, upload=0}, download=0, upload=0, video={download=0, upload=0}}, num participants: 2, numMutedParticipants: 0, numJigasis: 0, all clients muted? false
2021-09-10 04:30:36.567 INFO: [18] org.jitsi.jibri.selenium.status_checks.MediaReceivedStatusCheck.log() Jibri client receive bitrates: {audio={download=78, upload=0}, download=870, upload=0, video={download=779, upload=0}}, num participants: 2, numMutedParticipants: 0, numJigasis: 0, all clients muted? false
2021-09-10 04:30:51.526 INFO: [18] org.jitsi.jibri.selenium.status_checks.MediaReceivedStatusCheck.log() Jibri client receive bitrates: {audio={download=81, upload=0}, download=772, upload=0, video={download=691, upload=0}}, num participants: 2, numMutedParticipants: 0, numJigasis: 0, all clients muted? false
2021-09-10 04:31:02.522 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:31:06.530 INFO: [18] org.jitsi.jibri.selenium.status_checks.MediaReceivedStatusCheck.log() Jibri client receive bitrates: {audio={download=73, upload=0}, download=927, upload=0, video={download=854, upload=0}}, num participants: 2, numMutedParticipants: 0, numJigasis: 0, all clients muted? false
2021-09-10 04:47:49.848 FINE: [18] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn't written in 2 seconds, publishing periodic update
2021-09-10 04:47:49.955 INFO: [5475] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.log() Ffmpeg quit abruptly.  Last output line: [alsa @ 0x559e65623240] ALSA buffer xrun.
2021-09-10 04:47:50.058 INFO: [5475] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.log() Ffmpeg capturer transitioning from state Running to Error: QuitUnexpectedly SESSION [alsa @ 0x559e65623240] ALSA buffer xrun.
2021-09-10 04:47:50.081 INFO: [5475] org.jitsi.jibri.service.impl.FileRecordingJibriService.log() File recording service transitioning from state Running to Error: QuitUnexpectedly SESSION [alsa @ 0x559e65623240] ALSA buffer xrun.
2021-09-10 04:47:50.082 INFO: [5475] org.jitsi.jibri.api.xmpp.XmppApi.log() Current service had an error Error: QuitUnexpectedly SESSION [alsa @ 0x559e65623240] ALSA buffer xrun., sending error iq <iq to='jibribrewery@internal.auth.jitsi.bpsdassist.org.au/focus' id='FW7R1-11092' type='set'><jibri xmlns='http://jitsi.org/protocol/jibri' status='off' failure_reason='error' should_retry='true'/></iq>
2021-09-10 04:47:50.082 FINE: [5475] org.jitsi.jibri.statsd.JibriStatsDClient.log() Incrementing statsd counter: stop:recording
2021-09-10 04:47:50.098 INFO: [5475] org.jitsi.jibri.JibriManager.log() Stopping the current service
2021-09-10 04:47:50.099 INFO: [5475] org.jitsi.jibri.service.impl.FileRecordingJibriService.log() Stopping capturer
2021-09-10 04:47:50.099 INFO: [5475] org.jitsi.jibri.util.JibriSubprocess.log() Stopping ffmpeg process
2021-09-10 04:47:50.597 INFO: [5475] org.jitsi.jibri.util.JibriSubprocess.log() ffmpeg exited with value 137
2021-09-10 04:47:50.597 INFO: [5475] org.jitsi.jibri.service.impl.FileRecordingJibriService.log() Quitting selenium
2021-09-10 04:47:52.272 INFO: [5475] org.jitsi.jibri.service.impl.FileRecordingJibriService.log() Participants in this recording: []
2021-09-10 04:47:52.630 INFO: [18] org.jitsi.jibri.selenium.status_checks.MediaReceivedStatusCheck.log() Jibri client receive bitrates: {audio={download=0, upload=0}, download=9, upload=0, video={download=9, upload=0}}, num participants: 0, numMutedParticipants: 0, numJigasis: 0, all clients muted? true
2021-09-10 04:47:52.826 INFO: [18] org.jitsi.jibri.selenium.status_checks.MediaReceivedStatusCheck.log() Jibri client receive bitrates: {audio={download=0, upload=0}, download=9, upload=0, video={download=9, upload=0}}, num participants: 0, numMutedParticipants: 0, numJigasis: 0, all clients muted? true
2021-09-10 04:47:53.155 INFO: [18] org.jitsi.jibri.selenium.status_checks.MediaReceivedStatusCheck.log() Jibri client receive bitrates: {audio={download=0, upload=0}, download=9, upload=0, video={download=9, upload=0}}, num participants: 0, numMutedParticipants: 0, numJigasis: 0, all clients muted? true
2021-09-10 04:47:53.156 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.354 INFO: [5475] org.jitsi.jibri.selenium.JibriSelenium.log() Leaving call and quitting browser
2021-09-10 04:47:53.358 INFO: [5475] org.jitsi.jibri.selenium.JibriSelenium.log() Recurring call status checks cancelled
2021-09-10 04:47:53.401 INFO: [18] org.jitsi.jibri.selenium.status_checks.MediaReceivedStatusCheck.log() Jibri client receive bitrates: {audio={download=0, upload=0}, download=9, upload=0, video={download=9, upload=0}}, num participants: 0, numMutedParticipants: 0, numJigasis: 0, all clients muted? true
2021-09-10 04:47:53.406 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.419 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.422 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.432 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.435 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.436 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.437 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.438 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.438 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.439 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.440 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.442 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.443 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.444 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.445 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:53.492 INFO: [5475] org.jitsi.jibri.selenium.JibriSelenium.log() Got 18 log entries for type browser
2021-09-10 04:47:53.910 INFO: [5475] org.jitsi.jibri.selenium.JibriSelenium.log() Got 1410 log entries for type driver
2021-09-10 04:47:54.400 INFO: [5475] org.jitsi.jibri.selenium.JibriSelenium.log() Got 0 log entries for type client
2021-09-10 04:47:54.401 INFO: [5475] org.jitsi.jibri.selenium.JibriSelenium.log() Leaving web call
2021-09-10 04:47:54.445 SEVERE: [5475] org.jitsi.jibri.selenium.JibriSelenium.log() Error trying to leave the call
org.openqa.selenium.JavascriptException: javascript error: The conference is has been already left
  (Session info: chrome=92.0.4515.107)
  (Driver info: chromedriver=91.0.4472.101 (af52a90bf87030dd1523486a1cd3ae25c5d76c9b-refs/branch-heads/4472@{#1462}),platform=Linux 5.4.0-80-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'ip-172-31-30-22', ip: '172.31.30.22', os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.0-80-generic', java.version: '11.0.11'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 91.0.4472.101 (af52a90bf870..., userDataDir: /tmp/.com.google.Chrome.GEw2Pl}, cssSelectorsEnabled: true, databaseEnabled: false, goog:chromeOptions: {debuggerAddress: localhost:34647}, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), rotatable: false, setWindowRect: true, strictFileInteractability: false, takesHeapSnapshot: true, takesScreenshot: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unexpectedAlertBehaviour: ignore, unhandledPromptBehavior: ignore, version: 92.0.4515.107, webStorageEnabled: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: 5b6708494edbc571ca59750707504a95
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
	at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
	at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40)
	at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80)
	at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
	at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:480)
	at org.jitsi.jibri.selenium.pageobjects.CallPage.leave(CallPage.kt:263)
	at org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser(JibriSelenium.kt:341)
	at org.jitsi.jibri.service.impl.FileRecordingJibriService.stop(FileRecordingJibriService.kt:203)
	at org.jitsi.jibri.JibriManager.stopService(JibriManager.kt:263)
	at org.jitsi.jibri.JibriManager$startService$1.invoke(JibriManager.kt:211)
	at org.jitsi.jibri.JibriManager$startService$1.invoke(JibriManager.kt:85)
	at org.jitsi.jibri.util.StatusPublisher$addStatusHandler$1.invoke(StatusPublisher.kt:37)
	at org.jitsi.jibri.util.StatusPublisher$addStatusHandler$1.invoke(StatusPublisher.kt:29)
	at org.jitsi.jibri.util.StatusPublisher$publishStatus$1.invoke(StatusPublisher.kt:53)
	at org.jitsi.jibri.util.StatusPublisher$publishStatus$1.invoke(StatusPublisher.kt:29)
	at kotlin.collections.CollectionsKt__MutableCollectionsKt.filterInPlace$CollectionsKt__MutableCollectionsKt(MutableCollections.kt:285)
	at kotlin.collections.CollectionsKt__MutableCollectionsKt.retainAll(MutableCollections.kt:276)
	at org.jitsi.jibri.util.StatusPublisher.publishStatus(StatusPublisher.kt:53)
	at org.jitsi.jibri.service.impl.StatefulJibriService.onServiceStateChange(StatefulJibriService.kt:40)
	at org.jitsi.jibri.service.impl.StatefulJibriService.access$onServiceStateChange(StatefulJibriService.kt:26)
	at org.jitsi.jibri.service.impl.StatefulJibriService$1.invoke(StatefulJibriService.kt:35)
	at org.jitsi.jibri.service.impl.StatefulJibriService$1.invoke(StatefulJibriService.kt:26)
	at org.jitsi.jibri.util.NotifyingStateMachine.notify(NotifyingStateMachine.kt:26)
	at org.jitsi.jibri.service.JibriServiceStateMachine.access$notify(JibriServiceStateMachine.kt:46)
	at org.jitsi.jibri.service.JibriServiceStateMachine$stateMachine$1$5.invoke(JibriServiceStateMachine.kt:100)
	at org.jitsi.jibri.service.JibriServiceStateMachine$stateMachine$1$5.invoke(JibriServiceStateMachine.kt:46)
	at com.tinder.StateMachine.notifyOnTransition(StateMachine.kt:65)
	at com.tinder.StateMachine.transition(StateMachine.kt:23)
	at org.jitsi.jibri.service.JibriServiceStateMachine.transition(JibriServiceStateMachine.kt:112)
	at org.jitsi.jibri.service.impl.StatefulJibriService$registerSubComponent$1.invoke(StatefulJibriService.kt:46)
	at org.jitsi.jibri.service.impl.StatefulJibriService$registerSubComponent$1.invoke(StatefulJibriService.kt:26)
	at org.jitsi.jibri.util.StatusPublisher$addStatusHandler$1.invoke(StatusPublisher.kt:37)
	at org.jitsi.jibri.util.StatusPublisher$addStatusHandler$1.invoke(StatusPublisher.kt:29)
	at org.jitsi.jibri.util.StatusPublisher$publishStatus$1.invoke(StatusPublisher.kt:53)
	at org.jitsi.jibri.util.StatusPublisher$publishStatus$1.invoke(StatusPublisher.kt:29)
	at kotlin.collections.CollectionsKt__MutableCollectionsKt.filterInPlace$CollectionsKt__MutableCollectionsKt(MutableCollections.kt:285)
	at kotlin.collections.CollectionsKt__MutableCollectionsKt.retainAll(MutableCollections.kt:276)
	at org.jitsi.jibri.util.StatusPublisher.publishStatus(StatusPublisher.kt:53)
	at org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.onFfmpegStateMachineStateChange(FfmpegCapturer.kt:131)
	at org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.access$onFfmpegStateMachineStateChange(FfmpegCapturer.kt:67)
	at org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer$5.invoke(FfmpegCapturer.kt:96)
	at org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer$5.invoke(FfmpegCapturer.kt:67)
	at org.jitsi.jibri.util.NotifyingStateMachine.notify(NotifyingStateMachine.kt:26)
	at org.jitsi.jibri.capture.ffmpeg.FfmpegStatusStateMachine.access$notify(FfmpegStatusStateMachine.kt:69)
	at org.jitsi.jibri.capture.ffmpeg.FfmpegStatusStateMachine$stateMachine$1$5.invoke(FfmpegStatusStateMachine.kt:130)
	at org.jitsi.jibri.capture.ffmpeg.FfmpegStatusStateMachine$stateMachine$1$5.invoke(FfmpegStatusStateMachine.kt:69)
	at com.tinder.StateMachine.notifyOnTransition(StateMachine.kt:65)
	at com.tinder.StateMachine.transition(StateMachine.kt:23)
	at org.jitsi.jibri.capture.ffmpeg.FfmpegStatusStateMachine.transition(FfmpegStatusStateMachine.kt:135)
	at org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.onFfmpegProcessUpdate(FfmpegCapturer.kt:124)
	at org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.access$onFfmpegProcessUpdate(FfmpegCapturer.kt:67)
	at org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer$4.invoke(FfmpegCapturer.kt:95)
	at org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer$4.invoke(FfmpegCapturer.kt:67)
	at org.jitsi.jibri.util.StatusPublisher$addStatusHandler$1.invoke(StatusPublisher.kt:37)
	at org.jitsi.jibri.util.StatusPublisher$addStatusHandler$1.invoke(StatusPublisher.kt:29)
	at org.jitsi.jibri.util.StatusPublisher$publishStatus$1.invoke(StatusPublisher.kt:53)
	at org.jitsi.jibri.util.StatusPublisher$publishStatus$1.invoke(StatusPublisher.kt:29)
	at kotlin.collections.CollectionsKt__MutableCollectionsKt.filterInPlace$CollectionsKt__MutableCollectionsKt(MutableCollections.kt:285)
	at kotlin.collections.CollectionsKt__MutableCollectionsKt.retainAll(MutableCollections.kt:276)
	at org.jitsi.jibri.util.StatusPublisher.publishStatus(StatusPublisher.kt:53)
	at org.jitsi.jibri.util.JibriSubprocess$launch$1$1.invoke(JibriSubprocess.kt:48)
	at org.jitsi.jibri.util.JibriSubprocess$launch$1$1.invoke(JibriSubprocess.kt:26)
	at org.jitsi.jibri.util.StatusPublisher$addStatusHandler$1.invoke(StatusPublisher.kt:37)
	at org.jitsi.jibri.util.StatusPublisher$addStatusHandler$1.invoke(StatusPublisher.kt:29)
	at org.jitsi.jibri.util.StatusPublisher$publishStatus$1.invoke(StatusPublisher.kt:53)
	at org.jitsi.jibri.util.StatusPublisher$publishStatus$1.invoke(StatusPublisher.kt:29)
	at kotlin.collections.CollectionsKt__MutableCollectionsKt.filterInPlace$CollectionsKt__MutableCollectionsKt(MutableCollections.kt:285)
	at kotlin.collections.CollectionsKt__MutableCollectionsKt.retainAll(MutableCollections.kt:276)
	at org.jitsi.jibri.util.StatusPublisher.publishStatus(StatusPublisher.kt:53)
	at org.jitsi.jibri.util.ProcessStatePublisher$startProcessAliveChecks$1$$special$$inlined$also$lambda$1.run(ProcessStatePublisher.kt:92)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
2021-09-10 04:47:54.449 INFO: [5475] org.jitsi.jibri.selenium.JibriSelenium.log() Quitting chrome driver
2021-09-10 04:47:54.681 INFO: [5475] org.jitsi.jibri.selenium.JibriSelenium.log() Chrome driver quit
2021-09-10 04:47:54.681 INFO: [5475] org.jitsi.jibri.service.impl.FileRecordingJibriService.log() Finalizing the recording
2021-09-10 04:47:54.727 INFO: [5480] org.jitsi.jibri.service.impl.FileRecordingJibriService.log() preparing to copy /srv/recordings/ctfhnnyfucqtooxf
2021-09-10 04:47:54.728 INFO: [5475] org.jitsi.jibri.service.impl.FileRecordingJibriService.log() Recording finalize script finished with exit value 0
2021-09-10 04:47:54.746 INFO: [5475] org.jitsi.jibri.status.JibriStatusManager.log() Busy status has changed: BUSY -> IDLE
2021-09-10 04:47:54.751 FINE: [5475] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:47:54.751 INFO: [5475] org.jitsi.jibri.api.xmpp.XmppApi.log() Jibri reports its status is now JibriStatus(busyStatus=IDLE, health=OverallHealth(healthStatus=HEALTHY, details={})), publishing presence to connections
2021-09-10 04:48:02.522 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-09-10 04:48:40.497 INFO: [5488] org.jitsi.jibri.api.http.internal.InternalHttpApi.log() Jibri gracefully shutting down

Seems like there is not adequate CPU power.

Is there a way to isolate or prove that? I have lowered my ffmpeg and xorg resolution from 1280x720 to 1024x563 (picked one of the android resolutions) and will see if I can trigger it again.

When It was was 720p, TOP reported a cpu usage of about 85, with ram staying steady and not shrinking rapidly.

Ffmpeg quit abruptly.  Last output line: [alsa @ 0x559e65623240] ALSA buffer xrun.
Ffmpeg capturer transitioning from state Running to Error: QuitUnexpectedly SESSION [alsa @ 0x559e65623240] ALSA buffer xrun.