1.10.5 java exception

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

1.10.5 java exception

Postby RomKnight » Fri Mar 13, 2009 1:49 pm

just upgraded to 1.10.5
I can see movies in other folders except this one where are quite a lot of movies :)
I also can see pictures and hear music.

version 1.04 works OK. after that its error DLNA 2110 on top right corner and the following error:

[Thread-515] TRACE 12:42:57.507 Exception in thread "Thread-515" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[Thread-515] TRACE 12:42:57.507 at java.lang.String.substring(Unknown Source)
[Thread-515] TRACE 12:42:57.508 at net.pms.util.FileUtil.browseFolderForSubtitles(FileUtil.java:83)
[Thread-515] TRACE 12:42:57.508 at net.pms.util.FileUtil.doesSubtitlesExists(FileUtil.java:63)
[Thread-515] TRACE 12:42:57.508 at net.pms.dlna.RealFile.isValid(RealFile.java:48)
[Thread-515] TRACE 12:42:57.508 at net.pms.dlna.DLNAResource.addChild(DLNAResource.java:129)
[Thread-515] TRACE 12:42:57.508 at net.pms.dlna.RealFile.manageFile(RealFile.java:90)
[Thread-515] TRACE 12:42:57.509 at net.pms.dlna.RealFile.discoverChildren(RealFile.java:72)
[Thread-515] TRACE 12:42:57.509 at net.pms.dlna.DLNAResource.getDLNAResources(DLNAResource.java:314)
[Thread-515] TRACE 12:42:57.509 at net.pms.network.Request.answer(Request.java:352)
[Thread-515] TRACE 12:42:57.509 at net.pms.network.RequestHandler.run(RequestHandler.java:126)
[Thread-515] TRACE 12:42:57.533 at java.lang.Thread.run(Unknown Source)
RomKnight
 
Posts: 13
Joined: Fri Jan 23, 2009 3:58 pm

still happens on 1.10.618

Postby RomKnight » Thu Mar 19, 2009 8:50 pm

and tsMuxer still comes with wrong permissions :)

Code: Select all
[main] TRACE 19:44:32.795 Starting Java PS3 Media Server v1.10.6
[main] TRACE 19:44:32.796 by shagrath / 2008-2009
[main] TRACE 19:44:32.796 http://ps3mediaserver.blogspot.com
[main] TRACE 19:44:32.797 http://code.google.com/p/ps3mediaserver
[main] TRACE 19:44:32.797
[main] TRACE 19:44:32.797 Java 1.6.0-Sun Microsystems Inc.
[main] TRACE 19:44:32.797 OS Linux amd64 2.6.27.19-78.2.30.fc9.x86_64
[main] TRACE 19:44:32.798 Encoding: UTF-8
[main] TRACE 19:44:32.802 Temp folder: /tmp/javaps3media
[main] TRACE 19:44:32.813 Registering transcoding engine FFmpeg Audio
[main] TRACE 19:44:32.819 Registering transcoding engine MEncoder
[main] TRACE 19:44:32.820 Registering transcoding engine MPlayer Audio
[main] TRACE 19:44:32.820 Registering transcoding engine MEncoder Web
[main] TRACE 19:44:32.821 Registering transcoding engine MPlayer Video Dump
[main] TRACE 19:44:32.821 Registering transcoding engine MPlayer Web
[main] TRACE 19:44:32.823 Registering transcoding engine TsMuxer
[main] TRACE 19:44:32.823 Registering transcoding engine Audio High Fidelity
[main] TRACE 19:44:32.824 Registering transcoding engine VideoLan Audio Streaming
[main] TRACE 19:44:32.824 Registering transcoding engine VideoLan Video Streaming
[main] TRACE 19:44:32.825 Registering transcoding engine Raws Thumbnailer
[main] TRACE 19:44:32.914 Scanning network interface eth0 / eth0
[main] TRACE 19:44:32.914 Using address /10.0.0.1 found on network interface: name:eth0 (eth0) index: 2 addresses: /10.0.0.1;
[main] TRACE 19:44:32.915 Created socket: /10.0.0.1:5001
[Thread-3] TRACE 19:44:32.919 Starting DLNA Server on host 10.0.0.1 and port 5001...
[main] TRACE 19:44:32.927 Using following UUID: 40370211-78c2-3c12-b489-5888984249f1
[Thread-3] TRACE 19:44:32.930 Receiving a request from: 10.0.0.1
[Thread-3] TRACE 19:44:36.180 Receiving a request from: 10.0.0.2
[main] TRACE 19:44:39.276 It's ready! You should see the server appears on XMB
[Thread-149] TRACE 19:45:54.984 Exception in thread "Thread-149" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[Thread-149] TRACE 19:45:54.985    at java.lang.String.substring(String.java:1949)
[Thread-149] TRACE 19:45:54.985    at net.pms.util.FileUtil.browseFolderForSubtitles(FileUtil.java:83)
[Thread-149] TRACE 19:45:54.985    at net.pms.util.FileUtil.doesSubtitlesExists(FileUtil.java:63)
[Thread-149] TRACE 19:45:55.014    at net.pms.dlna.RealFile.isValid(RealFile.java:48)
[Thread-149] TRACE 19:45:55.015    at net.pms.dlna.DLNAResource.addChild(DLNAResource.java:129)
[Thread-149] TRACE 19:45:55.015    at net.pms.dlna.RealFile.manageFile(RealFile.java:90)
[Thread-149] TRACE 19:45:55.015    at net.pms.dlna.RealFile.discoverChildren(RealFile.java:72)
[Thread-149] TRACE 19:45:55.015    at net.pms.dlna.DLNAResource.getDLNAResources(DLNAResource.java:314)
[Thread-149] TRACE 19:45:55.015    at net.pms.network.Request.answer(Request.java:352)
[Thread-149] TRACE 19:45:55.015    at net.pms.network.RequestHandler.run(RequestHandler.java:126)
[Thread-149] TRACE 19:45:55.016    at java.lang.Thread.run(Thread.java:636)
[Thread-152] TRACE 19:45:55.148 Exception in thread "Thread-152" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[Thread-152] TRACE 19:45:55.148    at java.lang.String.substring(String.java:1949)
[Thread-152] TRACE 19:45:55.148    at net.pms.util.FileUtil.browseFolderForSubtitles(FileUtil.java:83)
[Thread-152] TRACE 19:45:55.149    at net.pms.util.FileUtil.doesSubtitlesExists(FileUtil.java:63)
[Thread-152] TRACE 19:45:55.149    at net.pms.dlna.RealFile.isValid(RealFile.java:48)
[Thread-152] TRACE 19:45:55.149    at net.pms.dlna.DLNAResource.addChild(DLNAResource.java:129)
[Thread-152] TRACE 19:45:55.168    at net.pms.dlna.RealFile.manageFile(RealFile.java:90)
[Thread-152] TRACE 19:45:55.168    at net.pms.dlna.RealFile.discoverChildren(RealFile.java:72)
[Thread-152] TRACE 19:45:55.169    at net.pms.dlna.DLNAResource.getDLNAResources(DLNAResource.java:314)
[Thread-152] TRACE 19:45:55.169    at net.pms.network.Request.answer(Request.java:352)
[Thread-152] TRACE 19:45:55.169    at net.pms.network.RequestHandler.run(RequestHandler.java:126)
[Thread-152] TRACE 19:45:55.169    at java.lang.Thread.run(Thread.java:636)
RomKnight
 
Posts: 13
Joined: Fri Jan 23, 2009 3:58 pm

Re: 1.10.5 java exception

Postby shagrath » Thu Mar 19, 2009 8:56 pm

ok, fixed the string error
but If you got a tar command line which set proper tsmuxer permissions, you are welcome
shagrath
Project Lead
 
Posts: 2667
Joined: Wed Jan 14, 2009 1:39 pm

Re: 1.10.5 java exception

Postby RomKnight » Thu Mar 19, 2009 9:45 pm

*G* that was quick :)

Just looked at the amazing amount of data in debug log to find this:

[Thread-63] DEBUG 20:34:39.302 Found 1! net.pms.formats.MPG
[Thread-63] DEBUG 20:34:39.303 Close Connection
[Thread-65] DEBUG 20:34:39.303 Searching for objectId: 0$3 with children option: false
[Thread-63] TRACE 20:34:39.303 Exception in thread "Thread-63" java.lang.StringIndexOutOfBoundsException: String index out of range: -1


And now its fixed :)

Anyway, what do you mean with tar permissions? Just did this (having changed tsMuxer perms obviously):

tar -pczvf test.tar.gz pms-linux-1.10.6/
pms-linux-1.10.6/
pms-linux-1.10.6/debug.log
pms-linux-1.10.6/CHANGELOG
pms-linux-1.10.6/README
pms-linux-1.10.6/pms.jar
pms-linux-1.10.6/FAQ
pms-linux-1.10.6/PMS.conf
pms-linux-1.10.6/WEB.conf
pms-linux-1.10.6/PMS.sh
pms-linux-1.10.6/linux/
pms-linux-1.10.6/linux/tsMuxeR_licence.txt
pms-linux-1.10.6/linux/tsMuxeR

$ mkdir test
$ cd test/
$ tar zxvf ../teste.tar.gz

pms-linux-1.10.6/
pms-linux-1.10.6/debug.log
pms-linux-1.10.6/CHANGELOG
pms-linux-1.10.6/README
pms-linux-1.10.6/pms.jar
pms-linux-1.10.6/FAQ
pms-linux-1.10.6/PMS.conf
pms-linux-1.10.6/WEB.conf
pms-linux-1.10.6/PMS.sh
pms-linux-1.10.6/linux/
pms-linux-1.10.6/linux/tsMuxeR_licence.txt
pms-linux-1.10.6/linux/tsMuxeR

$ ll -d pms-linux-1.10.6/linux/tsMuxeR
-rwxr-xr-x 1 me me 271372 2009-03-09 17:33 pms-linux-1.10.6/linux/tsMuxeR
RomKnight
 
Posts: 13
Joined: Fri Jan 23, 2009 3:58 pm

Re: 1.10.5 java exception

Postby RomKnight » Sun Apr 05, 2009 8:54 pm

Just tried 1.10.619 and 620. The problem remains :( and so I cannot see my avi folder :(

Just noticed this when using the scan folders "lens" after resetting the database library:

Code: Select all
[Thread-30] TRACE 21:05:39.543 Exception in thread "Thread-30" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[Thread-30] TRACE 21:05:39.543    at java.lang.String.substring(Unknown Source)
[Thread-30] TRACE 21:05:39.544    at net.pms.util.FileUtil.browseFolderForSubtitles(FileUtil.java:83)
[Thread-30] TRACE 21:05:39.544    at net.pms.util.FileUtil.doesSubtitlesExists(FileUtil.java:63)
[Thread-30] TRACE 21:05:39.544    at net.pms.dlna.RealFile.isValid(RealFile.java:48)
[Thread-30] TRACE 21:05:39.544    at net.pms.dlna.DLNAResource.addChild(DLNAResource.java:137)
[Thread-30] TRACE 21:05:39.545    at net.pms.dlna.RealFile.manageFile(RealFile.java:90)
[Thread-30] TRACE 21:05:39.545    at net.pms.dlna.RealFile.discoverChildren(RealFile.java:72)
[Thread-30] TRACE 21:05:39.545    at net.pms.dlna.RootFolder.scan(RootFolder.java:103)
[Thread-30] TRACE 21:05:39.545    at net.pms.dlna.RootFolder.scan(RootFolder.java:82)
[Thread-30] TRACE 21:05:39.545    at net.pms.dlna.DLNAMediaDatabase.run(DLNAMediaDatabase.java:576)
[Thread-30] TRACE 21:05:39.546    at java.lang.Thread.run(Unknown Source)

RomKnight
 
Posts: 13
Joined: Fri Jan 23, 2009 3:58 pm

Re: 1.10.619 & 620 java exception

Postby RomKnight » Sun Apr 05, 2009 9:11 pm

I also upgraded to newest jre (java -version follows)

java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
RomKnight
 
Posts: 13
Joined: Fri Jan 23, 2009 3:58 pm

Re: 1.10.5 java exception

Postby shagrath » Sun Apr 05, 2009 9:18 pm

well don't know how that particular error can happens with latest builds...
it's like if 0 where equals to 1 :p

I added some new verifications but now I'm sure of nothing
shagrath
Project Lead
 
Posts: 2667
Joined: Wed Jan 14, 2009 1:39 pm

Re: 1.10.5 java exception

Postby nikobe » Mon Apr 06, 2009 12:52 am

Sorry to add to your woes but I'm getting the similar error since upgrading to 1.10.5 from the prev version (I've since done a fresh install as well just incase)

I'm getting

"[linux/tsMuxeR] TRACE 00:49:03.390 [linux/tsMuxeR] 00:49:03.228 Fatal error in process starting: : Cannot run program "/home/myusername/Documents/PMS/linux/tsMuxeR": java.io.IOException: error=13, Permission denied

never had that before and been happily running since the first v1 release

the error only seems to popup on HD movies (mkv and avi), going to try disabling new features added in recent releases see if it works again
nikobe
 
Posts: 5
Joined: Mon Feb 23, 2009 4:50 pm

Re: 1.10.5 java exception

Postby nikobe » Mon Apr 06, 2009 12:55 am

ah switching off the "Switch to tmuxer from H264 video...." tick box (a recent addition that is on by default) got my HD videos back.

Will leave my post there in-case anybody else comes across the same thing
nikobe
 
Posts: 5
Joined: Mon Feb 23, 2009 4:50 pm

Re: 1.10.5 java exception

Postby shagrath » Mon Apr 06, 2009 1:15 am

chmod 777 /home/myusername/Documents/PMS/linux/tsMuxeR

and you're good to go
shagrath
Project Lead
 
Posts: 2667
Joined: Wed Jan 14, 2009 1:39 pm

Next

Return to Linux/Unix Support

Who is online

Users browsing this forum: Google [Bot] and 2 guests