coppit/filebot crashes because of libmediainfo.so 0.7.67

Support for Ubuntu and other Desktop Linux distributions
Post Reply
randyf1965
Posts: 10
Joined: 29 Sep 2022, 22:34

coppit/filebot crashes because of libmediainfo.so 0.7.67

Post by randyf1965 »

Code: Select all

./filebot.sh 
Run script [fn:amc] at [Thu Oct 27 22:37:31 UTC 2022]
Parameter: ut_dir = /input
Parameter: ut_kind = multi
Parameter: music = y
Parameter: deleteAfterExtract = y
Parameter: clean = y
Parameter: excludeList = /config/amc-exclude-list.txt
Parameter: movieFormat = 0Movies/{n.replaceAll(/[\`\u00b4\u2018\u2019\u02bb]/, "'").replaceAll(/[\u201c\u201d]/, '""')} {' CD'+pi}
Parameter: musicFormat = Music/{n.replaceAll(/[\`\u00b4\u2018\u2019\u02bb]/, "'").replaceAll(/[\u201c\u201d]/, '""')}/{album.replaceAll(/[\`\u00b4\u2018\u2019\u02bb]/, "'").replaceAll(/[\u201c\u201d]/, '""')}/{media.TrackPosition.pad(2)} - {t.replaceAll(/[\`\u00b4\u2018\u2019\u02bb]/, "'").replaceAll(/[\u201c\u201d]/, '""')}
Parameter: seriesFormat = 0TV shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[\`\u00b4\u2018\u2019\u02bb]/, "'").replaceAll(/[\u201c\u201d]/, '""').replaceAll(/[!?.]+$/).replacePart(', Part ')}{'.'+lang}
Use excludes: /config/amc-exclude-list.txt (13)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fc745613a72, pid=213, tid=214
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.2+8 (17.0.2+8) (build 17.0.2+8)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.2+8 (17.0.2+8, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libmediainfo.so.0.0.0+0x3c3a72]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /input/core.213)
#
# An error report file with more information is saved as:
# /input/hs_err_pid213.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)
Had issues 26 days ago then it started working now it is failing again. Any ideas?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: A fatal error has been detected by the Java Runtime Environment:

Post by rednoah »

libmediainfo.so is crashing the process:

Code: Select all

# Problematic frame:
# C  [libmediainfo.so.0.0.0+0x3c3a72]
:idea: libmediainfo.so crash the process on some files but not others. Since libmediainfo.so is crashing the process, you can workaround the issue by not using libmediainfo.so. Unfortunately, libmediainfo.so is required for reading ID3 metadata so you will lose support for that.



:?: What does filebot -script fn:sysinfo say?
:idea: Please read the FAQ and How to Request Help.
randyf1965
Posts: 10
Joined: 29 Sep 2022, 22:34

Re: [libmediainfo.so] A fatal error has been detected by the Java Runtime Environment:

Post by randyf1965 »

How would I stop using libmediainfo

Code: Select all

root@49d7e4f16607:/# filebot -script fn:sysinfo
FileBot 4.9.6 (r9125)
JNA Native: 6.1.2
MediaInfo: 0.7.67
7-Zip-JBinding: 16.02
Tools: fpcalc/1.5.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2022-08-15 (r836)
Groovy: 3.0.9
JRE: OpenJDK Runtime Environment 17.0.2
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 6 Core / 2.0 GB Max Memory / 33 MB Used Memory
OS: Linux (amd64)
HW: Linux 49d7e4f16607 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
CPU/MEM: Intel(R) Core(TM) i5-8600 CPU @ 3.10GHz [MemTotal: 8 GB | MemFree: 806 MB | MemAvailable: 5 GB | SwapCached: 253 KB | SwapTotal: 4.3 GB | SwapFree: 4.3 GB]
STORAGE: overlay [/] @ 392 GB | cifs [/input] @ 6 TB | ext4 [/media] @ 392 GB | cifs [/output] @ 6 TB | ext4 [/config] @ 392 GB
USER: root
DATA: /root/.filebot
Package: DEB
License: FileBot License P31922450 (Valid-Until: 2022-12-30)
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [libmediainfo.so] A fatal error has been detected by the Java Runtime Environment:

Post by rednoah »

:!: The version of libmediainfo packaged with your docker container is extremely outdated:

Code: Select all

MediaInfo: 0.7.67
:?: Are you using a docker container? docker is all about bundling dependencies precisely as to avoid dependency issues such as the issue at hand. You seem to be using a badly maintained 3rd party docker container. If this is the case, then you'll want to ask the maintainer to update the dependencies once in a while.



:arrow: I would recommend sticking to the official docker containers:
https://www.filebot.net/linux/docker.html

Code: Select all

$ docker run --rm -it -v $PWD:/volume1 -v data:/data rednoah/filebot -script fn:sysinfo
FileBot 4.9.6 (r9125)
...
MediaInfo: 19.09
...


EDIT:

:?: Which 3rd party docker container are you using?

:?: What does filebot -script fn:sysenv say? If your 3rd party docker container is setting some unique environment variables, then we can make the sysinfo script check for that and print additional warning messages.
:idea: Please read the FAQ and How to Request Help.
randyf1965
Posts: 10
Joined: 29 Sep 2022, 22:34

Re: Filebot Docker install crashing

Post by randyf1965 »

If I remember correctly it is coppit/filebot which was updated 5 years ago! BUT it does exactly what I need so for now I have removed mediainfo so it doesn't crash.

It watches my input folder and sees the files in the subfolders created by Deluge and runs the AMC script against them
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [libmediainfo.so 0.7.67] A fatal error has been detected by the Java Runtime Environment:

Post by rednoah »

You have replied on the wrong thread. I've moved your reply to the correct thread.
:idea: Please read the FAQ and How to Request Help.
dreadted
Posts: 1
Joined: 03 Nov 2022, 18:04

Re: [libmediainfo.so] A fatal error has been detected by the Java Runtime Environment:

Post by dreadted »

rednoah wrote: 29 Oct 2022, 03:42
:arrow: I would recommend sticking to the official docker containers:
https://www.filebot.net/linux/docker.html

Code: Select all

$ docker run --rm -it -v $PWD:/volume1 -v data:/data rednoah/filebot -script fn:sysinfo
FileBot 4.9.6 (r9125)
...
MediaInfo: 19.09
...
Which official docker container do you recommend for Raspberry Pi 4? Trying to run the recommended image leaves me with the following error message:

Code: Select all

docker: no matching manifest for linux/arm/v7 in the manifest list entries.
Which docker container would you recommend?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: coppit/filebot crashes because of libmediainfo.so 0.7.67

Post by rednoah »

Raspberry Pi 4 has a aarch64 CPU so I would recommend using a aarch64 OS, so that you can run aarch64 docker, so that you can use aarch64 docker containers. FileBot provides official docker containers for x86_64 and aarch64.



:idea: If you need containers for armv7, x86, ppc64, etc, then you will need to build the container yourself, which shouldn't be an issue because the Dockerfile is architecture agnostic and can be used to build the container for any platforms, assuming that ubuntu:20.04 has a container for that platform.
:idea: Please read the FAQ and How to Request Help.
Post Reply