Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playlink null pointer error #1258

Closed
Omertron opened this issue Mar 15, 2015 · 65 comments
Closed

Playlink null pointer error #1258

Omertron opened this issue Mar 15, 2015 · 65 comments

Comments

@Omertron
Copy link
Member

Original issue 1259 created by Omertron on 2010-02-11T13:18:58.000Z:

R1372

multipart movies will cause a null pointer calculateplaylink error when the
movie data is saved to the drive

@Omertron
Copy link
Member Author

Comment #1 originally posted by Omertron on 2010-02-11T13:52:57.000Z:

It must be fixed sinc r1376
Issue 1258

Can you test with this one ?

@Omertron
Copy link
Member Author

Comment #2 originally posted by Omertron on 2010-02-11T14:20:23.000Z:

as soon as it hits the site to dl, I will try that one.

@Omertron
Copy link
Member Author

Comment #3 originally posted by Omertron on 2010-02-11T14:29:27.000Z:

Lastet build(r1378) is on the site
http://mediaplayersite.com/YAMJ_Latest

Thanks :)

@Omertron
Copy link
Member Author

Comment #4 originally posted by Omertron on 2010-02-11T15:32:04.000Z:

still broken and not limited to just multipart files.. somewhere in the
calculateplaylink theres a null pointer situation.. (maybe your just trying ot use a
variable without checking it exists????)

more details from the forum.

http://www.networkedmediatank.com/showthread.php?tid=36422

@Omertron
Copy link
Member Author

Comment #5 originally posted by Omertron on 2010-02-11T15:37:57.000Z:

actually this versioni s much worse.. I think a transform error on every movie..
1372 only had a couple playlink errors

@Omertron
Copy link
Member Author

Comment #6 originally posted by Omertron on 2010-02-11T15:45:23.000Z:

<empty>

@Omertron
Copy link
Member Author

Comment #7 originally posted by Omertron on 2010-02-11T18:08:36.000Z:

Hi, fixed in r1380

@Omertron
Copy link
Member Author

Comment #8 originally posted by Omertron on 2010-02-11T18:11:25.000Z:

Issue 1260 has been merged into this issue.

@Omertron
Copy link
Member Author

Comment #9 originally posted by Omertron on 2010-02-12T00:55:30.000Z:

Still not resolved :-(

Finished: Whip It (38/40)
Finished: Zombieland (40/40)
Indexing libraries...
Indexing masters...
Writing movie data...
java.lang.NullPointerException
at com.moviejukebox.model.MovieFile.calculatePlayLink(MovieFile.java:359
)
at com.moviejukebox.model.MovieFile.getPlayLink(MovieFile.java:279)
at com.moviejukebox.writer.MovieJukeboxXMLWriter.writeMovie(MovieJukebox
XMLWriter.java:1025)
at com.moviejukebox.writer.MovieJukeboxXMLWriter.writeMovieXML(MovieJuke
boxXMLWriter.java:1053)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:783)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:777)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:619)

java.lang.NullPointerException
at com.moviejukebox.model.MovieFile.calculatePlayLink(MovieFile.java:359
)
at com.moviejukebox.model.MovieFile.getPlayLink(MovieFile.java:279)
at com.moviejukebox.writer.MovieJukeboxXMLWriter.writeMovie(MovieJukebox
XMLWriter.java:1025)
at com.moviejukebox.writer.MovieJukeboxXMLWriter.writeMovieXML(MovieJuke
boxXMLWriter.java:1053)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:783)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:777)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:619)

java.lang.NullPointerException
at com.moviejukebox.model.MovieFile.calculatePlayLink(MovieFile.java:359
)
at com.moviejukebox.model.MovieFile.getPlayLink(MovieFile.java:279)
at com.moviejukebox.writer.MovieJukeboxXMLWriter.writeMovie(MovieJukebox
XMLWriter.java:1025)
at com.moviejukebox.writer.MovieJukeboxXMLWriter.writeMovieXML(MovieJuke
boxXMLWriter.java:1053)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:783)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:777)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:619)

@Omertron
Copy link
Member Author

Comment #10 originally posted by Omertron on 2010-02-12T07:23:33.000Z:

Manny, Please use this moviejukebox.jar to test and provide the output of the DEBUG lines

@Omertron
Copy link
Member Author

Comment #11 originally posted by Omertron on 2010-02-12T07:27:15.000Z:

could you give me more details ?

file name in your library
did you have extra ? (trailer ...)

this error appears on : a rescan ? a clean rebuild ?

Thanks

@Omertron
Copy link
Member Author

Comment #12 originally posted by Omertron on 2010-02-12T07:27:29.000Z:

<empty>

@Omertron
Copy link
Member Author

Comment #13 originally posted by Omertron on 2010-02-12T07:27:59.000Z:

Issue 1245 has been merged into this issue.

@Omertron
Copy link
Member Author

Comment #14 originally posted by Omertron on 2010-02-12T15:45:39.000Z:

Issue 1266 has been merged into this issue.

@Omertron
Copy link
Member Author

Comment #15 originally posted by Omertron on 2010-02-12T15:46:10.000Z:

<empty>

@Omertron
Copy link
Member Author

Comment #16 originally posted by Omertron on 2010-02-12T17:48:28.000Z:

I'm not erroring with my library before this jar so I can say no trailers, no iso or
folder rips in my library if that helps..

@Omertron
Copy link
Member Author

Comment #17 originally posted by Omertron on 2010-02-12T17:52:03.000Z:

So you don't get the "playlink" error on an empty jukebox/new file?

@Omertron
Copy link
Member Author

Comment #18 originally posted by Omertron on 2010-02-12T18:34:03.000Z:

"[i]Multipart videos cause playlink null pointer[/i]"

Isn't correct. Multipart videos - are PART of problem, but not problem itself.

Look at log:
95% of movies are BluRays (with BD structure), and 90% of them have trailers.

for eg.
Ice Age 3 - is BD Disk saved to HDD and have 3 trailers... BUT page for it -
generated without errors, with all links and etc...(working/without errors)

Surviving Sid - is alone .mkv file, without trailers, any additional parts and etc..
just alone file in folder, but YAMJ generate 0 bytes page and log error.

@Omertron
Copy link
Member Author

Comment #19 originally posted by Omertron on 2010-02-12T18:36:53.000Z:

"[i]Multipart videos cause playlink null pointer[/i]"

Isn't correct. Multipart videos - are PART of problem, but not problem itself.

Look at log:
95% of movies are BluRays (with BD structure), and 90% of them have trailers.

for eg.
Ice Age 3 - is BD Disk saved to HDD and have 3 trailers... BUT page for it -
generated without errors, with all links and etc...(working/without errors)

Surviving Sid - is alone .mkv file, without trailers, any additional parts and etc..
just alone file in folder, but YAMJ generate 0 bytes page and log error.

@Omertron
Copy link
Member Author

Comment #20 originally posted by Omertron on 2010-02-12T19:02:32.000Z:

Looking at you log file (thanks for it) it seem's that
Surviving Sid is alone, but, is part of a SET, maybe we should take a look in there

@Omertron
Copy link
Member Author

Comment #21 originally posted by Omertron on 2010-02-12T19:38:41.000Z:

In this case:
no SETS, no trailers, no fanart.
Only BDMV folders / MKV files.

Mixed contents BD Disks / MKVs.
21 BD, 6 MKVs.
4 Errors.
1 for BD (Mr and Mrs Smith) and 3 (50%!) for MKVs.
structure:
Movies/
../Animation (0 errors, 1 BD)
../BD films (1 error, 20 BD)
../MKVs (3 errors, 6 movie.mkv)

@Omertron
Copy link
Member Author

Comment #22 originally posted by Omertron on 2010-02-12T20:11:55.000Z:

The log file isn't of use if you don't use the jar in comment # 10
It contains debug information that will help track down the error

@Omertron
Copy link
Member Author

Comment #23 originally posted by Omertron on 2010-02-12T20:27:15.000Z:

Stuart, correct on an xml overwrite full library run I do not error anymore. My
library is all single file video files, 6-7 different formats. I also have sets, tv
shows, multiple episodes.. I actually just noticed I do have 3-4 trailers in there
somewhere so I even have extras.. As with the subject says for me the problem was
always multipart files but thats ok now also.

What my library is missing are iso, img and folder structure disc rips..

@Omertron
Copy link
Member Author

Comment #24 originally posted by Omertron on 2010-02-12T20:38:48.000Z:

I just can't replicate the issue with my test files, VIDEO_TS and BDMV disk rips work
fine.

I'll try some ISO rips and see if they cause the problem

@Omertron
Copy link
Member Author

Comment #25 originally posted by Omertron on 2010-02-12T20:49:46.000Z:

2 clean runs.
No trailers, no fanart, just BDMV folders and MKV.

21 BD + 8 MKV.

1st run (LOG-1 attached)
1 SET (Underworld Collection = MKV + MKV + 1 BD)
4 errors, 1 for BD (Ms and Mrs Smith), and 3 for MKV (alone)


2nd run (LOG-2 attached)
21 BD + 8 MKV
0 SETs (Underworld 1/2/3 - as separate files)
0 errors, 1 for BD (), and 1 for MKV

PS I'll run later with provided .jar

@Omertron
Copy link
Member Author

Comment #26 originally posted by Omertron on 2010-02-12T21:03:42.000Z:

I'm certain that this error is not caused by sets.

@Omertron
Copy link
Member Author

Comment #27 originally posted by Omertron on 2010-02-12T22:21:21.000Z:

I'm running 1900 titles (lots of tv show videos) against your debug test on a brand
new library.. lets see what happens.

@Omertron
Copy link
Member Author

Comment #37 originally posted by Omertron on 2010-02-13T11:28:41.000Z:

Might be worth doing. The user can always email it directly to one of us.

Have a look at the CSV plugin, you might be able to re-use that code?

@Omertron
Copy link
Member Author

Comment #38 originally posted by Omertron on 2010-02-13T14:59:33.000Z:

I have no problems sharing my entire library... and I have well over 1700 entries in
it now :-)

Whatever you guys can do... If it helps, the last version that worked flawless for me
was r1350

...

I spoke too soon. the Ttrailer portion is still getting mangled for my XMLs... I ran
a fresh jukebox run (no XMLs) and I got a ton of errors.

Is there anything you'd like me to do? Feel free to tap me off line if you like

manny at manny dot org

or

username at gmail dot com

Thanks

@Omertron
Copy link
Member Author

Comment #39 originally posted by Omertron on 2010-02-13T16:51:03.000Z:

For the time being, can you try the instructions in comment # 35?

You don't need to do the full library, just your test library assuming that it causes
errors

@Omertron
Copy link
Member Author

Comment #40 originally posted by Omertron on 2010-02-13T17:49:23.000Z:

Hi, i make a new moviejukebox.jar.

Anyone agree with dumping is library could use this one, with option : "-dump".

This option will dump your library into current directory/dumpDir
everithing will be only dummy file (0 Bytes), except NFO files, xml and properties.

With -dump option, library will not be build, just a dump will make.

After runnin with -dump option, please send a zipped version of this dir to help us
debugging those nullpointer.

Regards

@Omertron
Copy link
Member Author

Comment #41 originally posted by Omertron on 2010-02-13T17:52:58.000Z:

Did you use the MovieFile.java above as well?

@Omertron
Copy link
Member Author

Comment #42 originally posted by Omertron on 2010-02-13T18:14:28.000Z:

Yes, i integrate it :)

@Omertron
Copy link
Member Author

Comment #43 originally posted by Omertron on 2010-02-13T20:26:23.000Z:

Hmmm... well, it just created a DIRECTORY structure, but no files were either
created, moved, dumped or otherwise...

???

@Omertron
Copy link
Member Author

Comment #44 originally posted by Omertron on 2010-02-13T20:34:08.000Z:

Hmm Well you're right, i put some too much cleaning.
Here is the "good" version .

@Omertron
Copy link
Member Author

Comment #45 originally posted by Omertron on 2010-02-13T20:36:59.000Z:

Stuart, testing with instructions in Commet 35. What about mediaInfo tool? Should I
properly install it or not?

Thanks

@Omertron
Copy link
Member Author

Comment #46 originally posted by Omertron on 2010-02-13T20:46:31.000Z:

Vincent, I will try yours next. This LOG file is the output from my test library
following Stuart's Comment # 35

@Omertron
Copy link
Member Author

Comment #47 originally posted by Omertron on 2010-02-13T21:02:04.000Z:

Vincent, here is the DUMPDIR and the LOG from a CLEAN run. Let me know if you want me
to run it again on a generated library.

@Omertron
Copy link
Member Author

Comment #48 originally posted by Omertron on 2010-02-13T21:12:55.000Z:

Thanks for it, i take a look

@Omertron
Copy link
Member Author

Comment #49 originally posted by Omertron on 2010-02-13T21:15:37.000Z:

I have to go run some errands sorry :-9 I will be back later... if you need anything
let me know. Feel free to E-mail as well... username @ gmail dot com

@Omertron
Copy link
Member Author

Comment #50 originally posted by Omertron on 2010-02-13T21:48:54.000Z:

Ok, i found a problem with trailer like "http://www.youtube..."

There is no file, causing the null pointer.
I'll fix this one, but don't know if it's the only one :(

@Omertron
Copy link
Member Author

Comment #51 originally posted by Omertron on 2010-02-13T22:15:00.000Z:

Ok, i found something introducted in r1353 in writing xml for extra file which cause
null pointer.
I removed it, and commited in r1393.
Hope this time it will be the last :)

Thanks again for you help.

Please give feedbacks

@Omertron
Copy link
Member Author

Comment #52 originally posted by Omertron on 2010-02-13T22:15:37.000Z:

Sorry, not r1393, but r1395

@Omertron
Copy link
Member Author

Comment #53 originally posted by Omertron on 2010-02-13T23:51:02.000Z:

Sorry for delay with answer, logs with detailed explanation was created at morning,
but then notebook crashed grabing some info, so i had to retest all.

Have you noticed if it is the same files that error all the time? Or different movies
for the same jukeboxes?

Same movies under same conditions (eg. same errors with Set, different without Set,
but not random, i can replicate them in any moment).

Firstly booster1978, you need to clean up your moviejukebox.properties file, or use
the latest YAMJ version, because you have some old properties in there that should
have been overwritten with the later releases.

There's my bad. because i don't touched properties file in ./properties, but modified
one copied to jukebox root dir, and it was not latest...

I'll try to explain my todays actions.

Note: Files naming policy is:
IMDBMovieName (Year) - for BDMV forlders
IMDBMovieName (Year).EXT for 1-file movies
No illegal characters, no cyrrilic characters, just how is at IMDB.com

Library 1: 21 BDMV (BD Disk copied to HDD) + 8 MKV (random bitrate/size) and nothing
else, but 1 directory is with cyrillic chars.
Library 1 - is on 1.5TB External Seagate USB Drive pluged into this PC (and shared
over local network)

Library 2: 35 BDMV + 2 MKV + trailers + provided Posters/Fanart + NFO + many SETs.
Library 2 - is on internal C-200 HDD shared over home network with path only from
default CP.

build:
Clean r1393 + debug JAR and nothing else.

LOG 1: Library 1 (Clean)
LOG 2: Library 2 (Clean)

build
clean r1393 + debug JAR + ./mediainfo (MediaInfo_CLI_0.7.27_Windows_i386)
LOG 3: Library 1 (Clean)
LOG 4: Library 2 (Errors! and no pictures in generated YAMJ, because YAMJ "like"
more JPG, but ALL my pictures are PNG24 "handmade" in Photoshop)
LOG 4_1: Library 2 with ./moviejukebox.properties with 1 line where PNG are BEFORE
JPG(poster.scanner.coverArtExtensions=png,jpg,jpeg,gif,bmp,tbn)
Result: No errors and pictures in places.

build
clean r1393 + debug JAR + ./mediainfo + Aeon Wall v2.10.0117 (replaced content of
./skins/default)

Log 5 Library 1 (Clean)(but wrong info for MS and mr smith (DVD instead of BD) 60 fps
. 2 fields and nothing else...
Log 6 Library 2 (Clean)

build
clean r1393 + debug JAR + ./mediainfo + Redefined 1.7 (replaced content ./skins/default)

Log 7 Library 1 (Clean)
Log 8 Library 2 (Clean)

LOG 0 - accidentialy launched moviejukebox.bat with options to root of Z:/ (instead
of z:/multimedia), and got bunch of errors NULL POINTER, while Jukebox tryied to
extract/recognize AdobePhotoshop.rar AS ISO.

So.. at this point looks like problem was in old.moviejukebox.property file.. or in
options/variable combo... so i started add 1 by 1 turn on options, in
./moviejukebox.properties, moving towards 2 setups, what i had before...

Log 9 - r1393 + CLI + AEON + Library 1 + Exact(or similar) setup, i had before, with
trailers and etc...
Log 10 - r1393 + CLI + REDEFINED + Library 2 + Exact (or similar) setup, i had before

Log 11: Clean. NO ERRORS , BUT but commented all appletrailers related,
Log 12: Same, just appletrailers.typesinclude=TRUE

Result: 10 errors - Playlink NULLPOINT Exceptions + corrupted XMLs

All works as charm, after commenting out all apple related incl.

appletrailers.typeinclude + updating to r1394 (DEBUG jar - worked not in best way).

Noticed new build r1396, so tested it with all apple related options enabled.

Log 13 - r1396 (regular JAR) + CLI + REDEFINED + Library 2 = NO ERRORS
(appletrailers.typesinclude=True) (noticed imdb-Rating fixed)


PS. Any workaround for problem with "cyrrilic" dirs (eg. how to specify jukebox root
/ path in .properties file using "cyrrilic"), because some problems with using
utilities, like YAYMan and etc.

@Omertron
Copy link
Member Author

Comment #54 originally posted by Omertron on 2010-02-13T23:52:59.000Z:

Log 14 - r1396 (regular JAR) + CLI + AEON + Library 1 = NO ERRORS
(appletrailers.typesinclude=true, appletrailers.download - true, at least with build
R1396 - i have downloaded few and finish generation without errors(tryied with
provided in post 10 moviejukebox.jar - and failed).

BTW.: DEBUG is still enabled in r1396 by default

@Omertron
Copy link
Member Author

Comment #55 originally posted by Omertron on 2010-02-14T03:34:25.000Z:

Thanks Vincent, you give me hope. I just got back home and am downloading r1395/96 as
we speak. Will test again and report back

Thank you
manny

@Omertron
Copy link
Member Author

Comment #56 originally posted by Omertron on 2010-02-14T04:06:10.000Z:

We are ERROR FREE gentlemen...! Nice work. I have generated a fresh jukebox and also
ran on a generated one (refresh) and so far error free :-)

Attached is the latest log, I added an extra set of folders to the test just in case.
I will now run it on my main library.

BTW: I think debug is still turned on... is this normal? Thank you

MG

@Omertron
Copy link
Member Author

Comment #57 originally posted by Omertron on 2010-02-14T09:11:21.000Z:

Turned debug off now.

Thanks for helping sort this one out. Nice work Vincent.

@Omertron
Copy link
Member Author

Comment #58 originally posted by Omertron on 2010-02-14T14:32:49.000Z:

Tryied to say this above, but ... too much text or too bad english.

well, build r1938
java.lang.NullPointerException

BDRip Scanner: Error processing file Deception (2008) java.lang.NullPointerException at com.moviejukebox.scanner.BDRipScanner.executeGetBDInfo(BDRipScanner.java:160)

Now 1 MORE condition when NullPointerException happens -
When files are WRONG format (not video/unrecognized video for eg.), damaged/blank
files, or incomplete (eg. downloading/copying in progress)
(try to run on your .rar archive, or in /temp/torrent dir)...

(in this case - i've scanned incomplete BD)..

@Omertron
Copy link
Member Author

Comment #59 originally posted by Omertron on 2010-02-14T14:37:16.000Z:

This is the same as this error:
http://www.networkedmediatank.com/showthread.php?tid=36526

@Omertron
Copy link
Member Author

Comment #60 originally posted by Omertron on 2010-02-14T15:17:15.000Z:

Hmm i think there is a mistake in build number : r1938
i assume you're talking about r1398 ?

@Omertron
Copy link
Member Author

Comment #61 originally posted by Omertron on 2010-02-14T15:41:49.000Z:

Yes, sorry.. r1398 (version logged)
As i said above - i ran scan accidentially poiting to wrong folder
Adobe.rar application archive in 1st case (YAMJ treated it as ISO),
and incomplete BDMV folder (with files filled with zeros mostly)
and in both cases got instantly null.pointer.exception.

PS. For error with mentioned above (...but wrong info for MS and mr smith (DVD
instead of BD) 60 fps. 2 fields and nothing else...) - it was movie itself problem.

@Omertron
Copy link
Member Author

Comment #62 originally posted by Omertron on 2010-02-14T16:35:03.000Z:

Not sure if this belongs here or not but I will start here since I just finished with
this issue before this new error

r1396.

Could this be due to the large amounts of extra data generated by DEBUG being on?
Trying r1398 now.

Writing movie data...
java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.(DataBufferByte.java:58)
at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleM
odel.java:397)
at java.awt.image.Raster.createWritableRaster(Raster.java:938)
at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifi
er.java:1056)
at javax.imageio.ImageReader.getDestination(ImageReader.java:2879)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageRe
ader.java:925)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.jav
a:897)
at javax.imageio.ImageIO.read(ImageIO.java:1422)
at javax.imageio.ImageIO.read(ImageIO.java:1326)
at com.moviejukebox.tools.GraphicTools.loadJPEGImage(GraphicTools.java:4
8)
at com.moviejukebox.MovieJukebox.createPoster(MovieJukebox.java:1529)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:874)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:864)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:619)

java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.(DataBufferByte.java:58)
at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleM
odel.java:397)
at java.awt.image.Raster.createWritableRaster(Raster.java:938)
at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifi
er.java:1056)
at javax.imageio.ImageReader.getDestination(ImageReader.java:2879)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageRe
ader.java:925)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.jav
a:897)
at javax.imageio.ImageIO.read(ImageIO.java:1422)
at javax.imageio.ImageIO.read(ImageIO.java:1326)
at com.moviejukebox.tools.GraphicTools.loadJPEGImage(GraphicTools.java:4
8)
at com.moviejukebox.MovieJukebox.createPoster(MovieJukebox.java:1529)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:874)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:864)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:619)

java.lang.OutOfMemoryError: GC overhead limit exceeded

java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.(DataBufferByte.java:58)
at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleM
odel.java:397)
at java.awt.image.Raster.createWritableRaster(Raster.java:938)
at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifi
er.java:1056)
at javax.imageio.ImageReader.getDestination(ImageReader.java:2879)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageRe
ader.java:925)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.jav
a:897)
at javax.imageio.ImageIO.read(ImageIO.java:1422)
at javax.imageio.ImageIO.read(ImageIO.java:1326)
at com.moviejukebox.tools.GraphicTools.loadJPEGImage(GraphicTools.java:4
8)
at com.moviejukebox.MovieJukebox.createPoster(MovieJukebox.java:1529)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:874)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:864)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:619)

java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.(DataBufferByte.java:58)
at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleM
odel.java:397)
at java.awt.image.Raster.createWritableRaster(Raster.java:938)
at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifi
er.java:1056)
at javax.imageio.ImageReader.getDestination(ImageReader.java:2879)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageRe
ader.java:925)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.jav
a:897)
at javax.imageio.ImageIO.read(ImageIO.java:1422)
at javax.imageio.ImageIO.read(ImageIO.java:1326)
at com.moviejukebox.tools.GraphicTools.loadJPEGImage(GraphicTools.java:4
8)
at com.moviejukebox.MovieJukebox.createPoster(MovieJukebox.java:1529)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:874)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:864)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:619)

java.lang.OutOfMemoryError: GC overhead limit exceeded

Writing Indexes XML...
Writing Indexes HTML...
Copying new files to Jukebox directory...
Copying resources to Jukebox directory...
Clean up temporary files
Jukebox cleaning skipped

MovieJukebox process completed at Sun Feb 14 04:40:40 EST 2010
Processing took 01:51:05
Press any key to continue . . .

@Omertron
Copy link
Member Author

Comment #63 originally posted by Omertron on 2010-02-14T16:40:15.000Z:

I don't think it's due to overload of debug information, much due to a big library
(every information about each movie are maintain in memory).

What size is your library (number of movie ) ?

I suggest you trying a run with the -Xmx512m option in you command

java -Xmx512m ...

@Omertron
Copy link
Member Author

Comment #64 originally posted by Omertron on 2010-02-14T17:23:48.000Z:

Thanks Vincent.. so this is a good time for me to come clean :-) I just just just
migrated from myiHome to SMB sharing. I am preparing for my soon to be here C-200 and
will finally be able to play ISOs of my BDs.

So I migrated my whole config to a new location, changed around the library paths
etc. But I also moved the batch file that runs YAMJ and it is still the same as
before when I ran it via myiHome. My library is 1700+ titles (movies) and lots of TV
shows and specials.

Here is what my moviejukebox.bat has looked like for some time now.

@echo off
rem ***
rem *** Yet Another Movie Jukebox command script
rem ***
rem *** DO NOT CHANGE ANYTHING IN THIS SCRIPT
rem *** UNLESS YOU KNOW WHAT YOU ARE DOING
rem ***

java -Xms256m -Xmx512m -classpath .;resources;lib/* com.moviejukebox.MovieJukebox %*

The above file lived in

c:\program files\myihome\plugin\moviejukebox\

Would it make a difference now that it runs OUTSIDE of a myiHome environment?

Here is what the myihome generated library file looks like

F:\Media /action/jukebox.jsp?absolutepath=F:\Media/

and what it looks like now

F:\Media file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/MEDIA/ MASTER true

thanks for your help and insight.

@Omertron
Copy link
Member Author

Comment #65 originally posted by Omertron on 2010-02-14T17:58:24.000Z:

Seems good for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant