JDownloader launching filebot exception

Support for Ubuntu and other Desktop Linux distributions
Post Reply
Zzuk
Posts: 2
Joined: 25 Dec 2021, 11:39

JDownloader launching filebot exception

Post by Zzuk »

Hello,
I installed filebot on my Seedbox using this script:
https://github.com/ultraseedbox/UltraSe ... staller.sh

If I invoke previously installed script under /home/username/.filebot-494/filebot.sh (source: https://gist.github.com/Zz9uk3/a4ea0cc5 ... fcf629c0f1) from ssh everything works as it is supposed to.
As soon as I invoke the script from JDownloaders2 Eventscripter it fails badly:

https://imgur.com/dOthH29

Code: Select all

--ID:5860TS:1640433041745-12/25/21 12:50:41 PM -  [org.jdownloader.extensions.eventscripter.sandboxobjects.ScriptEnvironment(log)] -> + ARG_PATH=/config
+ ARG_NAME='Example FilePackage Name'
+ ARG_LABEL=N/A
+ CONFIG_OUTPUT=/home/username/media/
+ /home/username/.filebot-494/filebot.sh -script fn:amc --output /home/username/media/ --action duplicate --conflict skip -non-strict --log-file /home/username/scripts/amc/amc.log --def 'skipExtract=n' 'unsorted=y' 'music=y' 'artwork=y' 'excludeList=/home/username/scripts/amc/excludes.txt' 'ut_dir=/config' 'ut_kind=multi' 'ut_title=Example FilePackage Name' 'ut_label=N/A'
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f5b80acec71, pid=251737, tid=251763
#
# JRE version: OpenJDK Runtime Environment (15.0.1+9) (build 15.0.1+9-18)
# Java VM: OpenJDK 64-Bit Server VM (15.0.1+9-18, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libc.so.6+0x159c71]
#
# Core dump will be written. Default location: /run/s6/services/app/core
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid251737.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
Aborted

if I take out the line

Code: Select all

export JAVA_OPTS="-Xms128m -Xmx384m -XX:CompressedClassSpaceSize=256m -XX:MaxMetaspaceSize=256m -XX:NativeMemoryTracking=summary -XX:MaxRAM=2g -XX:MaxRAMPercentage=70 -XX:ActiveProcessorCount=4"
of my filebot.sh script (look above for whole file + path) and execute it from bash this will result in a crash which is not happening while the line is stil part of the file.
Logfile of the crash: https://gist.github.com/Zz9uk3/17ee3046 ... 9652352535
Could this probably be the same crash that is happening when JDownloaders EventScripter is invoking filebot?

Tbh im tapping in the dark here. Does anyone have an idea why this is not working?

Thanks a lot
User avatar
rednoah
The Source
Posts: 22898
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: JDownloader launching filebot exception

Post by rednoah »

If you must set memory limits manually, then I'd keep it simple and avoid contradictory options:

Code: Select all

export JAVA_OPTS="-Xmx384m -XX:ActiveProcessorCount=1"

:idea: The crash is specifically caused by your shared hosting environment not allocating more RAM to you:

Code: Select all

# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 24 bytes for AllocateHeap
# Possible reasons:
#   The system is out of physical RAM or swap space
#   The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)

:arrow: If you get crashes in some situations but not others, then I'd start by checking if the environment is indeed exactly the same or not. You can use filebot -script fn:sysenv to print the current environment.
:idea: Please read the FAQ and How to Request Help.
Zzuk
Posts: 2
Joined: 25 Dec 2021, 11:39

Re: JDownloader launching filebot exception

Post by Zzuk »

hey and thanks a lot for the answer! afterall the environment command was very helpful and the actual main problem was filebot and jdownloader each being in their own docker container while there also was another filebot earlier version installed globally.

i ended up fine tuning the config a little bit and making a setup where jd moves completed packages to another folder while filebot is set to scan this folder each X minutes by a cronjob which is working fantastically so far!
Post Reply