zrevai / ps3mediaserver

Automatically exported from code.google.com/p/ps3mediaserver
2 stars 0 forks source link

Two errors on start up, no controls in window #226

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start ./PMS.sh
2. Read output
3. Don't profit :(

What is the expected output? What do you see instead?
I expected an java/awt window to pop up that would let me configure PMS..
instead it boots with:

Jan 24, 2009 11:09:10 PM java.util.prefs.FileSystemPreferences$3 run      
    WARNING: Could not create system preferences directory. System
preferences are unusable.
[main] TRACE 23:09:11.287 Starting Java PS3 Media Server v1.03
[main] TRACE 23:09:11.288 by shagrath / 2008
[main] TRACE 23:09:11.288 http://ps3mediaserver.blogspot.com
[main] TRACE 23:09:11.288 
[main] TRACE 23:09:11.289 Java 1.6.0_11-Sun Microsystems Inc.
[main] TRACE 23:09:11.289 OS Linux amd64 2.6.28-ARCH
[main] TRACE 23:09:11.289 Encoding: UTF-8
[main] TRACE 23:09:11.292 Temp folder: /tmp/javaps3media
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.RangeCheck(ArrayList.java:547)
        at java.util.ArrayList.get(ArrayList.java:322)
        at net.pms.PMS.checkProcessExistence(PMS.java:214)
        at net.pms.PMS.init(PMS.java:304)
        at net.pms.PMS.get(PMS.java:867)
        at net.pms.PMS.main(PMS.java:927)
[main] 23:09:11.305 Cannot launch FFmpeg / Check the presence of
/home/codemac/zip/pms-linux-1.03/ffmpeg ...: Index: 0, Size: 0
[main] TRACE 23:09:11.425 Registering transcoding engine FFmpeg Audio
[main] TRACE 23:09:11.429 Registering transcoding engine MEncoder
[main] TRACE 23:09:11.429 Registering transcoding engine MPlayer Audio
[main] TRACE 23:09:11.429 Registering transcoding engine MEncoder Web
[main] TRACE 23:09:11.429 Registering transcoding engine MPlayer Video Dump
[main] TRACE 23:09:11.430 Registering transcoding engine MPlayer Web
[main] TRACE 23:09:11.431 Registering transcoding engine TsMuxer
[main] TRACE 23:09:11.431 Registering transcoding engine Audio High Fidelity
[main] TRACE 23:09:11.431 Registering transcoding engine VideoLan Audio
Streaming
[main] TRACE 23:09:11.432 Registering transcoding engine VideoLan Video
Streaming
[main] TRACE 23:09:11.535 Scanning network interface eth0 / eth0
[main] TRACE 23:09:11.535 Using address /192.168.0.13 found on network
interface: name:eth0 (eth0) index: 2 addresses: /192.168.0.13;
[main] TRACE 23:09:11.536 Created socket: /192.168.0.13:5001
[Thread-13] TRACE 23:09:11.539 Starting DLNA Server on host 192.168.0.13
and port 5001...
[main] TRACE 23:09:11.543 Using following UUID:
1a541363-2530-3a2a-af0b-b795e6731404
[main] TRACE 23:09:12.097 It's ready! You should see the server appears on XMB

So there are two errors there, one about not being able to save
configuration data.. and the other looks like it can't find ffmpeg... which
is at /usr/bin/ffmpeg

Also, a window does appear, but it is an empty gray window with no
controls/buttons/anything.
What version of the product are you using? On what operating system?
I'm on ArchLinux, x86_64. PMS 1.03

If you are transcoding a media file, which engine are you using (mencoder,
avisynth/mencoder, tsmuxer?)

If the media file is in error (or does not play flawlessly), what are the
codec informations of this file (you can use following program:
mediainfo.sourceforge.net) ? 

Please provide any additional information below and PLEASE JOIN debug.log
file !!

Original issue reported on code.google.com by code...@gmail.com on 25 Jan 2009 at 4:13

Attachments:

GoogleCodeExporter commented 9 years ago
ffmpeg should be in your path... you can override the location path but it's 
better 
to use the default supported by the program

Original comment by ps3mediaserver@gmail.com on 25 Jan 2009 at 12:48

GoogleCodeExporter commented 9 years ago
Cool story, ffmpeg is at /usr/bin/ffmpeg as said in the bug report.

/usr/bin is in my $PATH

And I can't override the location path without editing the source because I 
can't see
the ui to change anything... As said in the bug report.

Original comment by code...@gmail.com on 26 Jan 2009 at 2:21

GoogleCodeExporter commented 9 years ago
actually the ffmpeg location is not at fault, it seems application does not 
succeed 
to parse output result from ffmpeg to determine its existence
Besides this has nothing to do with java empty window. It seems this happens 
sometimes if you have enabled something like beryl or xgl on your linux. if 
this is 
the case, you have to set the following variable

export AWT_TOOLKIT="MToolkit"

Original comment by ps3mediaserver@gmail.com on 26 Jan 2009 at 11:34

GoogleCodeExporter commented 9 years ago
When I add that, it cycles the following error:

Jan 28, 2009 6:40:26 PM java.util.prefs.FileSystemPreferences 
checkLockFile0ErrorCode
WARNING: Could not lock System prefs.Unix error code 32530.
Jan 28, 2009 6:40:26 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException: 
Couldn't
get file lock.

Which I researched, added the /etc/.java/.userPrefs or whatever it was dir, and 
that
didn't help anything.  Adding the LIBXCB_ALLOW_SLOPPY_LOCK=true didn't seem to 
help
either.

As an aside, ln -s /usr/bin/ffmpeg ./ffmpeg and ln -s /bin/mkfifo ./mkfifo 
fixed the
ffmpeg problem... so path has at least something to do with the ffmpeg errors.

Finally, I really like ps3media server, thanks for all your work on it.  It's 
the
best DLNA server out there, even with any weird bugs I'm seeing on x86_64.

Original comment by code...@gmail.com on 28 Jan 2009 at 11:44

GoogleCodeExporter commented 9 years ago
the first verifications have been disabled (too much troubles)
and the preferences API is now used only on Windows

Original comment by ps3mediaserver@gmail.com on 26 Feb 2009 at 7:05