unhandle exception

Developers forum for Univeral Media Server-related development (only for programmers)
Post Reply
josch.hh
Posts: 5
Joined: Mon Oct 05, 2015 6:03 am

unhandle exception

Post by josch.hh »

There is an unhandle exception everytime i start UMS on Linux:

Code: Select all

INFO  19:05:23.033 [main] Checking the fontconfig cache in the background, this can take two minutes or so.
INFO  19:05:23.041 [main] Searching for plugins in /data/ums/ums-5.3.1/plugins
INFO  19:05:23.043 [main] No plugins found
ERROR 19:05:23.063 [mplayer-0] Error initializing process:
java.io.IOException: Cannot run program "mplayer": error=2, Datei oder Verzeichnis nicht gefunden
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ~[na:1.8.0_66-internal]
        at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:163) ~[ums.jar:5.3.1]
Caused by: java.io.IOException: error=2, Datei oder Verzeichnis nicht gefunden
        at java.lang.UNIXProcess.forkAndExec(Native Method) ~[na:1.8.0_66-internal]
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:248) ~[na:1.8.0_66-internal]
        at java.lang.ProcessImpl.start(ProcessImpl.java:134) ~[na:1.8.0_66-internal]
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[na:1.8.0_66-internal]
        ... 1 common frames omitted
INFO  19:05:23.088 [main] Registering transcoding engine: FFmpeg Audio
INFO  19:05:23.160 [main] Registering transcoding engine: MEncoder
INFO  19:05:23.161 [main] Registering transcoding engine: FFmpeg
INFO  19:05:23.162 [main] Registering transcoding engine: VLC
INFO  19:05:23.208 [main] Registering transcoding engine: FFmpeg Web Video
INFO  19:05:23.209 [main] Registering transcoding engine: MEncoder Web
INFO  19:05:23.209 [main] Registering transcoding engine: VLC Web Video
INFO  19:05:23.211 [main] Registering transcoding engine: tsMuxeR
INFO  19:05:23.211 [main] Registering transcoding engine: Audio High Fidelity
INFO  19:05:23.211 [main] Registering transcoding engine: VLC Web Audio (Legacy)
INFO  19:05:23.211 [main] Registering transcoding engine: VLC Web Video (Legacy)
INFO  19:05:23.212 [main] Registering transcoding engine: dcraw Thumbnailer
INFO  19:05:23.218 [main] Using address /192.168.42.2 found on network interface: name:eth0 (eth0)
INFO  19:05:23.228 [main] Created socket: /192.168.42.2:5001
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: unhandle exception

Post by Nadahar »

It can't find MPlayer, UMS uses a part of MPlayer (MEncoder) as a transcoding engine. I don't know the install procedure for Linux, but MPlayer needs to be installed somehow.
josch.hh
Posts: 5
Joined: Mon Oct 05, 2015 6:03 am

Re: unhandle exception

Post by josch.hh »

Sure it cant find mplayer, but please ... in case of not finding a simple file UMS may log a warning but never throw an unhandled IOException or spam the log with the stack trace! This is really no good coding stil.
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: unhandle exception

Post by Nadahar »

Not that I think it's that much of a big deal, but I changed it so the next version won't throw a stack trace. The Exception wasn't unhandled, it was just logged with full stack trace.
Post Reply