Fun error while installing on raspberry pi

Support for Synology NAS and other Embedded Linux systems
Post Reply
colinmarc
Posts: 4
Joined: 19 May 2017, 19:44

Fun error while installing on raspberry pi

Post by colinmarc » 19 May 2017, 19:46

I'm running the latest raspbian.

Code: Select all

[email protected]:~ $ sudo dpkg -i filebot-armhf.deb
Selecting previously unselected package filebot.
(Reading database ... 36740 files and directories currently installed.)
Preparing to unpack filebot-armhf.deb ...
Unpacking filebot (4.7.9) ...
Setting up filebot (4.7.9) ...
Processing triggers for mime-support (3.58) ...
[email protected]:~ $ filebot -script fn:sysinfo
FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0xab544628, pid=8691, tid=3057030240
#
# JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17)
# Java VM: Java HotSpot(TM) Client VM (25.65-b01 mixed mode linux-arm )
# Problematic frame:
# C  [libzen.so+0x29628]  ZenLib::ZtringListList::ZtringListList()+0x10c
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/colin/hs_err_pid8691.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted
[email protected]:~ $ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
Thanks in advance for the help!

User avatar
rednoah
The Source
Posts: 12011
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fun error while installing on raspberry pi

Post by rednoah » 19 May 2017, 20:34

Looks like libzen (used by libmediainfo) is crashing the process. Try updating everything (OS, Java, etc).
My (very excellent) support depends on Windows Store and Mac App Store sales and PayPal donations. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

Image

Please read the FAQ and How to Request Help. Donate if you'd like some extra developer love. :ugeek:

colinmarc
Posts: 4
Joined: 19 May 2017, 19:44

Re: Fun error while installing on raspberry pi

Post by colinmarc » 19 May 2017, 21:08

For anyone coming after me, I found the problem:

Code: Select all

[email protected]:/tmp/filebot $ sudo update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                                   Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-7-openjdk-armhf/jre/bin/java          1063      auto mode
  1            /usr/lib/jvm/java-7-openjdk-armhf/jre/bin/java          1063      manual mode
  2            /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java          1063      manual mode
* 3            /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java   318       manual mode
Not sure how I got 32-bit java installed, but that was certainly the problem. Switching to openjdk-8 fixed it.

colinmarc
Posts: 4
Joined: 19 May 2017, 19:44

Re: Fun error while installing on raspberry pi

Post by colinmarc » 19 May 2017, 21:23

Oh - no, spoke to soon. I got the cert error but that was hiding the other one anyway. :(

User avatar
rednoah
The Source
Posts: 12011
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fun error while installing on raspberry pi

Post by rednoah » 20 May 2017, 05:51

You could remove libmediainfo.so to remove the code that crashes the process. You'll lose some features but it should mostly work.
My (very excellent) support depends on Windows Store and Mac App Store sales and PayPal donations. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

Image

Please read the FAQ and How to Request Help. Donate if you'd like some extra developer love. :ugeek:

colinmarc
Posts: 4
Joined: 19 May 2017, 19:44

Re: Fun error while installing on raspberry pi

Post by colinmarc » 20 May 2017, 13:23

That gave me an idea, and this seemed to work:

Code: Select all

$ cd /usr/share/filebot
$ sudo mv libmediainfo.so libmediainfo.so.bak
$ sudo mv libzen.so libzen.so.bak
$ sudo apt-get install libmediainfo0 libzen0
This is now the output of sysinfo - which I think means I have mediainfo support?

Code: Select all

[email protected]:/usr/share/filebot $ filebot -script fn:sysinfo
FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
MediaInfo: 0.7.70
7-Zip-JBinding: 9.20
May 20, 2017 1:20:45 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-04-03 (r494)
Groovy: 2.4.10
JRE: Java(TM) SE Runtime Environment 1.8.0_131
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 1 Core / 106 MB Max Memory / 10 MB Used Memory
OS: Linux (arm)
Package: DEB
Data: /home/colin/.filebot
uname: Linux eata 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
Perhaps the version bundled with filebot needs to be upgraded? Or is there a way to set the precedence for JNI to use the system-installed version of libs? (I've never used JNI, so that might be a dumb question.)

User avatar
rednoah
The Source
Posts: 12011
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fun error while installing on raspberry pi

Post by rednoah » 20 May 2017, 15:57

It'll pick the one that appears first in the LD_LIBRARY_PATH and that has nothing to do with JNI or JNA in particular.

If you copy libraries into the portable root folder, then the should appear first in the library path. See filebot.sh for details.

I can't tell you why it's crashing. It works for other Raspberry Pi users and the DS216J that I use for testing armv7 binaries.
My (very excellent) support depends on Windows Store and Mac App Store sales and PayPal donations. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

Image

Please read the FAQ and How to Request Help. Donate if you'd like some extra developer love. :ugeek:

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests