Page 1 of 1

Illegal usage: bad file arguments or ut_dir/ut_file paramete

Posted: 10 Jun 2016, 17:19
by sutheep
I've been a long time user of Filebot.
Today it didn't work, not sure why. I've been using the AMC script to sort and rename my downloads.

Now it ends up with this error.

Code: Select all

Illegal usage: bad file arguments or ut_dir/ut_file parameters
I'm on a Mac 10.11.5 and use transmission to call out the script after the it's done.
This is the script i'm using.

Code: Select all

#!/bin/bash
 
if [ $1 ] && [ $1 == '-h' ]
then
    echo ""
    echo "Welcome to Filebot AMC (Automated Media Center) Script."
    echo ""
    echo "Usage: filebot-amc.sh [torrent_name] [/path/to/torrent] [/path/to/media] [/path/to/log]"
    echo ""
    echo "NOTES: "
    echo "1. Arguments [torrent_name] and [/path/to/torrent] if this is script is by Transmission Bittorrent Client post-download hook."
    echo "2. Arguments [/path/to/media] and [/path/to/log] are optional if you set defaults values changing this script"
    echo ""
    exit
fi
 
# Torrent Name
if [ $1 ]
then
    TR_NAME=$1
else
    TR_NAME=$TR_TORRENT_NAME
fi
 
# Torrent Dir
if [ $2 ]
then
    TR_DIR=$2
else
    TR_DIR=$TR_TORRENT_DIR
fi
 
# Target Media Dir
if [ $3 ]
then
    TARGET_DIR="/Volumes/YYYYYYY/XXXXXX/Video"
else
    TARGET_DIR="/Volumes/YYYYYYY/XXXXXX/Video"
fi
 
# Log Path
if [ $4 ]
then
    LOG_PATH=$4
else
    LOG_PATH="filebot_amc.log"
fi
 
echo "TR_DIR=$TR_DIR"
echo "TR_NAME=$TR_NAME"
echo "TARGET_DIR=$TARGET_DIR"
echo "LOG_PATH=$LOG_PATH"
 
### If all params are set, go on ###
if [ $TR_DIR ] && [ $TR_NAME ] && [ $TARGET_DIR ] && [ $LOG_PATH ]
then
    /Applications/FileBot.app/Contents/MacOS/filebot.sh \
    -script fn:amc \
    --output "$TARGET_DIR" \
    --log-file "$LOG_PATH" \
    --action move \
    --conflict override -non-strict \
    --def pushbullet=XXXXXXXXXXXXXXXXXXXXXXXXXXXX deleteAfterExtract=y subtitles=en music=n artwork=y backdrops=n clean=y "ut_dir=$TR_DIR/$TR_NAME" "ut_kind=multi" "ut_title=$TR_NAME"
else
    echo "PROBLEM: Please, set all arguments needed. Use -h option to get help about it."
    echo ""
fi

Re: Can't seem to run AMC script

Posted: 10 Jun 2016, 18:13
by rednoah
One of these sanity checks fails, probably because your script doesn't work right:
https://github.com/filebot/scripts/blob ... roovy#L127

You'll want to look at the full console output first (and post it!) and see if anything is odd. Staring at the code won't help me or you find any issues. ;)

Re: Illegal usage: bad file arguments or ut_dir/ut_file para

Posted: 13 Jun 2016, 13:21
by sutheep
This is the error i'm gettting.

Honestly it was working fine for a very long time, suddenly it stopped working, not sure what changed.

Code: Select all

Locking /Users/xxxxxxx/filebot_amc.log
Run script [fn:amc] at [Mon Jun 13 20:19:19 ICT 2016]
Parameter: pushbullet = *****
Parameter: deleteAfterExtract = y
Parameter: subtitles = en
Parameter: music = n
Parameter: artwork = y
Parameter: backdrops = n
Parameter: clean = y
Parameter: ut_dir = /Users/xxxxx/xxxxxx/xxxxx.xxxxxxxx.xxxxxxx
Parameter: ut_kind = multi
Parameter: ut_title = xxxxx.xxxxxxxx.xxxxxxx
FATAL ERROR: Field 'sevenZipArchiveInStreamInstance' in the class 'net.sf.sevenzipjbinding.impl.InArchiveImpl' was not found
Crash jvm to get a stack trace
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000129ad79e0, pid=29638, tid=3079
#
# JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [lib7-Zip-JBinding.dylib+0x59e0]  fatal(char const*, ...)+0x100
#
# 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:
# /var/folders/2l/18xp4q4n5m952n2jz5lkmv900000gn/T//hs_err_pid29638.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Re: Illegal usage: bad file arguments or ut_dir/ut_file para

Posted: 13 Jun 2016, 13:52
by rednoah
Are you using the latest version of filebot and Java? What's the fn:sysinfo output?

PS: the error in the log is completely different from the one mentioned in the original post. Let's deal with the JVM crash first. ;)

Re: Illegal usage: bad file arguments or ut_dir/ut_file para

Posted: 13 Jun 2016, 14:14
by sutheep
Using the latest version of Java. Still giving the same issue.
The fn:sysinfo, was from the post "How to 'Request Help'"

Re: Illegal usage: bad file arguments or ut_dir/ut_file para

Posted: 13 Jun 2016, 15:33
by rednoah
Include the output of filebot -script fn:sysinfo
It'll look something like this:

Code: Select all

filebot -script fn:sysinfo

Code: Select all

FileBot 4.7 (r3923)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.78
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.1.0 (/Applications/FileBot.app/Contents/MacOS/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.6
JRE: Java(TM) SE Runtime Environment 1.8.0_92
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 146 MB Used Memory
OS: Mac OS X (x86_64)
Package: APP
Data: /Users/reinhard/.filebot
uname: Darwin Reinhards-MacBook-Pro.local 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64
Done ヾ(@⌒ー⌒@)ノ
Latest version of Java: build 1.8.0_92-b14
Your version of Java: build 1.8.0_05-b13 (according to your crash log)

Not sure what's going on here, but your Java hasn't been updated for 2 years... the JVM crash issue might not be related to that though.

Re: Illegal usage: bad file arguments or ut_dir/ut_file para

Posted: 13 Jun 2016, 16:21
by sutheep
Updated to the latest version, still crashing.

Code: Select all

Run script [fn:amc] at [Mon Jun 13 23:20:07 ICT 2016]
Parameter: pushbullet = *****
Parameter: deleteAfterExtract = y
Parameter: subtitles = en
Parameter: music = n
Parameter: artwork = y
Parameter: backdrops = n
Parameter: clean = y
Parameter: ut_dir = 
Parameter: ut_kind = multi
Parameter: ut_title = FATAL ERROR: Field 'sevenZipArchiveInStreamInstance' in the class 'net.sf.sevenzipjbinding.impl.InArchiveImpl' was not found
Crash jvm to get a stack trace
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00000001260f89e0, pid=2552, tid=0x0000000000000c07
#
# JRE version: Java(TM) SE Runtime Environment (8.0_92-b14) (build 1.8.0_92-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.92-b14 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [lib7-Zip-JBinding.dylib+0x59e0]  _Z5fatalPKcz+0x100
#
# 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:
# /var/folders/2l/18xp4q4n5m952n2jz5lkmv900000gn/T//hs_err_pid2552.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.
#
 

Here's the sysinfo

Code: Select all

Jun 13, 2016 11:21:59 PM net.sf.ehcache.store.disk.DiskStorageFactory <init>
WARNING: The index for data file /Users/sutheep/.filebot/cache/0/github_stable_0.data is out of date, probably due to an unclean shutdown. Deleting index file /Users/sutheep/.filebot/cache/0/github_stable_0.index
FileBot 4.7 (r4044)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: java.lang.UnsatisfiedLinkError: net.sf.sevenzipjbinding.SevenZip.nativeGetVersionMajor()I
Chromaprint: fpcalc version 1.1.0 (/Applications/Filebot.app/Contents/MacOS/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_92
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 2 GB Max Memory / 23 MB Used Memory
OS: Mac OS X (x86_64)
Package: APP
Data: /Users/sutheep/.filebot
uname: Darwin Siara.local 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64
Done ヾ(@⌒ー⌒@)ノ

Re: Illegal usage: bad file arguments or ut_dir/ut_file para

Posted: 13 Jun 2016, 16:37
by rednoah
Have you tried deleting /Applications/Filebot.app and reinstalling from scratch?

Code: Select all

rm -r /Applications/Filebot.app

Code: Select all

brew cask zap filebot

Code: Select all

brew cask install filebot

Since it's an issue with lib7-Zip-JBinding.dylib I'd make sure that none of the native libraries have been corrupted:

Code: Select all

md5 /Applications/FileBot.app/Contents/MacOS/*.dylib

Code: Select all

MD5 (/Applications/FileBot.app/Contents/MacOS/lib7-Zip-JBinding.dylib) = 7df5568babff29143f823672dd9268f3
MD5 (/Applications/FileBot.app/Contents/MacOS/libjcocoa.dylib) = 4db89e1cd5de3bd2050dfebaf29d8267
MD5 (/Applications/FileBot.app/Contents/MacOS/libjnidispatch.dylib) = 213359c4b0edb1deca0b84ff77defc72
MD5 (/Applications/FileBot.app/Contents/MacOS/libmediainfo.dylib) = 80638588405e6dcd3edc9dc6f0ad85f3

Re: Illegal usage: bad file arguments or ut_dir/ut_file paramete

Posted: 13 Aug 2016, 14:55
by sutheep
Hi again,
I have reinstalled it using brew.

However the MD5 is not the same for libmediainfo.dylib

What do you recommend? Also can't seem to change the app name to FileBot.app

Code: Select all

MD5 (/Applications/FileBot_4.7.2.app/Contents/MacOS/lib7-Zip-JBinding.dylib) = 7df5568babff29143f823672dd9268f3
MD5 (/Applications/FileBot_4.7.2.app/Contents/MacOS/libjcocoa.dylib) = 4db89e1cd5de3bd2050dfebaf29d8267
MD5 (/Applications/FileBot_4.7.2.app/Contents/MacOS/libjnidispatch.dylib) = 213359c4b0edb1deca0b84ff77defc72
MD5 (/Applications/FileBot_4.7.2.app/Contents/MacOS/libmediainfo.dylib) = 68b7fe06bbe79e01d61d8d0a155a249a

Re: Illegal usage: bad file arguments or ut_dir/ut_file paramete

Posted: 13 Aug 2016, 15:34
by rednoah
1.
FileBot has been updated, so MD5 checksums may have changed:

Code: Select all

$ md5 /Applications/FileBot*.app/Contents/MacOS/*.dylib
MD5 (/Applications/FileBot_4.7.2-brew.app/Contents/MacOS/lib7-Zip-JBinding.dylib) = 7df5568babff29143f823672dd9268f3
MD5 (/Applications/FileBot_4.7.2-brew.app/Contents/MacOS/libjcocoa.dylib) = 4db89e1cd5de3bd2050dfebaf29d8267
MD5 (/Applications/FileBot_4.7.2-brew.app/Contents/MacOS/libjnidispatch.dylib) = 213359c4b0edb1deca0b84ff77defc72
MD5 (/Applications/FileBot_4.7.2-brew.app/Contents/MacOS/libmediainfo.dylib) = 68b7fe06bbe79e01d61d8d0a155a249a
2.
What's the problem again? This thread has nothing to do with the original topic at this point. Please make a new thread.