Invalid Pointer Error when running in Docker

Support for Ubuntu and other Desktop Linux distributions
Post Reply
brokenwu
Posts: 6
Joined: 05 Jan 2018, 19:30

Invalid Pointer Error when running in Docker

Post by brokenwu »

Hello,

I'm encountering a problem with java, no matter if running directly or via docker.

Output of filebot -script fn:sysinfo on the Docker Host:

Code: Select all

FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
MediaInfo: 0.7.93
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
GVFS: PlatformGVFS [/run/user/1000/gvfs]
Script Bundle: 2017-11-21 (r512)
Groovy: 2.4.10
JRE: Java(TM) SE Runtime Environment 1.8.0_151
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 804 MB Max Memory / 27 MB Used Memory
OS: Linux (amd64)
Package: DEB
uname: Linux brokenwu 4.13.0-21-generic #24-Ubuntu SMP Mon Dec 18 17:29:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
Here's the command line call used for docker:

Code: Select all

docker run -it -v /mnt/storage:/mnt/storage rednoah/filebot -script fn:amc /mnt/storage/torrent/complete/movie --conflict auto  --output /mnt/storage/Media --action keeplink -non-strict --def artwork=y movieFormat="{plex} {vf} {source} {group} {languages}"
Here's the error log


/mnt/storage is a mhddfs mount of /mnt/disk1 and 2, same error also happens when running outside docker and when directly accessing the drive instead of through the fuse mount. disk1 is sata, disk2 is usb3.

Output of:

Code: Select all

$docker run -it -v $PWD:/volume1 -v data:/tmp rednoah/filebot -script fn:sysinfo

Code: Select all

FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
MediaInfo: 0.7.93
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-11-21 (r512)
Groovy: 2.4.10
JRE: OpenJDK Runtime Environment 1.8.0_151
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 804 MB Max Memory / 24 MB Used Memory
OS: Linux (amd64)
Package: DOCKER
uname: Linux b9864e4e2c32 4.13.0-21-generic #24-Ubuntu SMP Mon Dec 18 17:29:16 UTC 2017 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
Anybody got an idea what might be causing this issue?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Invalid Pointer Error when running in Docker

Post by rednoah »

The issue is caused by libmediainfo.so but I have no clue as to why it wouldn't work, and the docker container should make sure to eliminate compatibility issues.

As a workaround, I suggest logging into the docker container and uninstalling MediaInfo. You'll get warnings about MediaInfo not working, but at least it won't crash the process.
:idea: Please read the FAQ and How to Request Help.
brokenwu
Posts: 6
Joined: 05 Jan 2018, 19:30

Re: Invalid Pointer Error when running in Docker

Post by brokenwu »

Thank you for the support (and for Filebot in general :) ) this solved my problem for now.

I noticed that the mediainfo in the docker is several releases behind and maybe this problem has already been resolved in an update.
brokenwu
Posts: 6
Joined: 05 Jan 2018, 19:30

Re: Invalid Pointer Error when running in Docker

Post by brokenwu »

brokenwu wrote: 07 Jan 2018, 12:19 I noticed that the mediainfo in the docker is several releases behind and maybe this problem has already been resolved in an update.
Seems like my suspicion was correct, so for anybody else running into this error, here's my solution
1) Download current libmedia.so from github
https://github.com/filebot/filebot/blob ... diainfo.so
2) map the downloaded file to the docker image, so e.g. add
-v /path/to/libmediainfo.so:/usr/share/filebot/libmediainfo.so
After that, the error was gone and i could sort my files with the info from MediaInfo.
Post Reply