This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 8 - Pages: 1 - Last Post: 16-Sep-2017 18:00 Last Post By: karlmistelberger
xili1234

Posts: 17
Registered: 15-Nov-2007
Crash with big album
Posted: 15-Sep-2017 12:15
 
  Click to reply to this thread Reply
Hello everybody

I manage a very big album (154457 images) with JAlbum 12.6 and skin turtle (last version), all the process are made by command line

The Jalbum 12 program is on D:\Program Files (x86)\jAlbum

"C:\Program Files\Java\jre1.8.0_144\bin\java.exe" -Xms12g -Xmx12g -jar "D:\Program Files (x86)\jAlbum\JAlbum.jar" -projectFile "D:\1G\archive\jap\album Granit.jap"
jAlbum v12.6a démarré en mode console
Preparing album engine with settings from C:\Users\wxc\AppData\Roaming\JAlbum\skins\Turtle\headless-settings.jap

after Elapsed time: 294m 36.57617s album is fine !

I use Jalbum (version 12 or less) since many year without problems !



Now I want to make the same album on the same computer but with JAlbum 14.1 and skin tiger (last version)

The Jalbum 14 program is on C:\Program Files\jAlbum

"C:\Program Files\Java\jre1.8.0_144\bin\java.exe" -Xms12g -Xmx12g -jar "C:\Program Files\jAlbum\JAlbum.jar" -projectFile "D:\1G\archive\jap\album Granit-tiger.jap"
jAlbum v14.1.10a démarré en mode console
Preparing album engine with settings from C:\Users\wxc\AppData\Roaming\JAlbum\skins\Tiger\headless-settings.jap

Around image 8228 I get a fatal error

En cours Album/Alpinisme/2014-03 Belledonne d'écriture vers D:\EXT\album\AlbumGranit-tiger
Création des pages d'index...
Encountering java.lang.RuntimeException: Cannot register variables for 0.thm when evaluating: /*
* predir.js - index page preprocessing
*/

processFolder(currentFolder);
java.lang.RuntimeException: Cannot register variables for 0.thm
at se.datadosen.jalbum.AlbumObjectImpl.getVars(AlbumObjectImpl.java:2319)
at se.datadosen.jalbum.AlbumImage.applyFilter(AlbumImage.java:180)
at jdk.nashorn.internal.scripts.Script$Recompilation$85$78293AAAZAAA$util.copyFolderImages(C:\Users\wxc\AppData\Roaming\JAlbum\skins\Tiger\lib\util.js:3372)
at jdk.nashorn.internal.scripts.Script$Recompilation$70$5694A$init.processFolder(C:\Users\wxc\AppData\Roaming\JAlbum\skins\Tiger\init.js:556)
at jdk.nashorn.internal.scripts.Script$69$predir.:program(C:\Users\wxc\AppData\Roaming\JAlbum\skins\Tiger\predir.js:5)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:406)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402)
at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155)
at javax.script.AbstractScriptEngine.eval(Unknown Source)
at se.datadosen.jalbum.AlbumBean.doProcessExpression(AlbumBean.java:2425)
at se.datadosen.jalbum.AlbumBean.processExpression(AlbumBean.java:2400)
at se.datadosen.jalbum.AlbumBean.processScript(AlbumBean.java:2354)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1353)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1443)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1443)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:2646)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:2571)
at se.datadosen.jalbum.JAlbumConsole.<init>(JAlbumConsole.java:104)
at se.datadosen.jalbum.JAlbum.main(JAlbum.java:317)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at se.datadosen.jalbum.Main.main(Main.java:44)
Caused by: java.lang.NullPointerException
at se.datadosen.jalbum.AlbumObjectImpl.getVars(AlbumObjectImpl.java:2315)
... 27 more



I try with less memory (6G)
"C:\Program Files\Java\jre1.8.0_144\bin\java.exe" -Xms6g -Xmx6g -jar "C:\Program Files\jAlbum\JAlbum.jar" -projectFile "D:\1G\archive\jap\album Granit-tiger.jap"
jAlbum v14.1.10a démarré en mode console
Preparing album engine with settings from C:\Users\wxc\AppData\Roaming\JAlbum\skins\Tiger\headless-settings.jap

I get exactly the same error



Finally with no memory parameter
"C:\Program Files\Java\jre1.8.0_144\bin\java.exe" -jar "C:\Program Files\jAlbum\JAlbum.jar" -projectFile "D:\1G\archive\jap\album Granit-tiger.jap"
jAlbum v14.1.10a démarré en mode console
Preparing album engine with settings from C:\Users\wxc\AppData\Roaming\JAlbum\skins\Tiger\headless-settings.jap

I also get exactly the same error at the same place !

My final question : where is my error ?

Best regards
Laza

Posts: 9,471
Registered: 6-Sep-2005
Re: Crash with big album
Posted: 15-Sep-2017 13:19   in response to: xili1234 in response to: xili1234
 
  Click to reply to this thread Reply
I guess the skin tries to copy the folder image of a video with THM file. Could you please test if you select another thumbnails as folder thumbnail will this help?
jGromit

Posts: 33,186
Registered: 31-Jan-2006
Re: Crash with big album
Posted: 15-Sep-2017 14:39   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
This might be related to a bug I reported some time ago, and which has never been addressed:

https://jalbum.net/forum/thread.jspa?threadID=48996

See the second post, in particular.

But even with Tiger, I don't get a crash - I simply get a broken album, a folder with no thumbnail image, and nothing to click on. But perhaps with certain settings, the result is more catastrophic.
xili1234

Posts: 17
Registered: 15-Nov-2007
Re: Crash with big album
Posted: 15-Sep-2017 16:20   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Sorry but I don't understand your answer

"Could you please test if you select another thumbnails as folder thumbnail will this help?"

I try to add thumbnailDirectory parameter :

"C:\Program Files\Java\jre1.8.0_144\bin\java.exe" -jar "C:\Program Files\jAlbum\JAlbum.jar" -projectFile "D:\1G\archive\jap\album Granit-tiger.jap" -thumbnailDirectory MyThumbs

But it's exactly the same error and the thumbnailDirectory stay "thumbs"
jGromit

Posts: 33,186
Registered: 31-Jan-2006
Re: Crash with big album
Posted: 15-Sep-2017 16:30   in response to: xili1234 in response to: xili1234
 
  Click to reply to this thread Reply
No, it's not the location of the thumbs directory that's at issue here.

It appears that in one of the folders of your album, you have told jAlbum to use a THM file (connected to a non-JPG) as the folder thumbnail. Laza wants you to open that folder and choose one of the regular JPG images in it as the folder thumbnail - right-click on it, and choose Use as folder thumbnail.

It might be in this folder: Alpinisme/2014-03 Belledonne d'écriture
xili1234

Posts: 17
Registered: 15-Nov-2007
Re: Crash with big album
Posted: 15-Sep-2017 16:58   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Ok thanks for explanation.

I just delete the thm files from folder and restart generation.

It's seems quite good for the moment, I have to wait some hours until the process finish to close these question.
jGromit

Posts: 33,186
Registered: 31-Jan-2006
Re: Crash with big album
Posted: 15-Sep-2017 17:02   in response to: xili1234 in response to: xili1234
 
  Click to reply to this thread Reply
But if you delete the THM files, your album objects (like PDF's) will no longer have image thumbnails - they'll just have generic icons.

You should not have deleted the THM files. We wanted you only to try selecting something else as the folder thumbnail!
xili1234

Posts: 17
Registered: 15-Nov-2007
Re: Crash with big album
Posted: 15-Sep-2017 18:05   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
yes but you forget something : the size of the source album !

it's huge 175 167 files 8370 folders...

I had 73 thm file.

If I need to check these one by one folders it's too long, and if one thm crash the process I have to repeat generation process (which is around 5 hours).

Getting a default icon is the less worst solution rather than processing n times the album.

Thanks for your help
karlmistelberger

Posts: 736
Registered: 5-Dec-2013
Re: Crash with big album
Posted: 16-Sep-2017 18:00   in response to: xili1234 in response to: xili1234
 
  Click to reply to this thread Reply
xili1234 wrote:
yes but you forget something : the size of the source album ! ... If I need to check these one by one folders it's too long, and if one thm crash the process I have to repeat generation process (which is around 5 hours).

You don't need to reprocess all images. You may use Make instead of Make all. My machine does 43,000 images and 1,000 video clips in 2 minutes with Make compared to 2.5 hours with Make all.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums