Thread Locked This thread is locked - replies are not allowed.


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


Permlink Replies: 6 - Pages: 1 - Last Post: 5 Aug 23, 14:18 Last Post By: JeffTucker
jofra

Posts: 8
Registered: 27-Sep-2008
generate album crashes after Story update to 4.1.0
Posted: 4 Aug 23, 22:29
 
Stack trace for jAlbum 32 using skin Story 4.1:

se.datadosen.util.ScriptException: <eval>:31 ReferenceError: "thumbCols" is not defined in Newimages.inc at line number 1
at se.datadosen.util.ScriptException.of(ScriptException.java:59)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:99)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.ast.GroupNode.doEval(GroupNode.java:78)
at se.datadosen.jalbum.ast.IncludeNode.doEval(IncludeNode.java:89)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.ast.GroupNode.doEval(GroupNode.java:78)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.AST.eval(AST.java:75)
at se.datadosen.jalbum.AlbumBean.processTemplateFile(AlbumBean.java:1618)
at se.datadosen.jalbum.AlbumBean.processTemplateFile(AlbumBean.java:1611)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1893)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3687)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3536)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1187)
Caused by: javax.script.ScriptException: ReferenceError: "thumbCols" is not defined in <eval> at line number 31
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:463)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:447)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine$1.eval(NashornScriptEngine.java:503)
at java.scripting/javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:67)
... 13 more
Caused by: <eval>:31 ReferenceError: "thumbCols" is not defined
at org.openjdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:318)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:290)
at org.openjdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1614)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$335$688$\^eval\_.writeOutThumbnails(<eval>:31)
at org.openjdk.nashorn.internal.scripts.Script$332$\^eval\_.:program(<eval>:156)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:520)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:442)
... 16 more

Edited by: jofra on 4 Aug 2023, 22:41
JeffTucker

Posts: 7,901
Registered: 31-Jan-2006
Re: generate album crashes after Story update to 4.1.0
Posted: 4 Aug 23, 22:43   in response to: jofra in response to: jofra
Helpful
There's an error in the "new images" script. Laza will need to address this.

But in the meantime, if you delete Newimages.htt from the project, the album will build without errors.
jofra

Posts: 8
Registered: 27-Sep-2008
Re: generate album crashes after Story update to 4.1.0
Posted: 4 Aug 23, 22:45   in response to: JeffTucker in response to: JeffTucker
 
I just corrected the title of my post.
as I found out, that the crash was caused by the latest update.

Thank you for the workaround with the newimage.htt
jofra

Posts: 8
Registered: 27-Sep-2008
Re: generate album crashes after Story update to 4.1.0
Posted: 4 Aug 23, 22:53   in response to: JeffTucker in response to: JeffTucker
 
I'm not so familiar with jAlbum as I used to be years ago when I started using jAlbum.
In which folder will I find the file newimages.htt?

kind regards Frank
JeffTucker

Posts: 7,901
Registered: 31-Jan-2006
Re: generate album crashes after Story update to 4.1.0
Posted: 4 Aug 23, 22:57   in response to: jofra in response to: jofra
 
Attachment ss011080.png (331.4 KB)
When you open the project, you should see a thumbnail for it in the main Explore window, along with the thumbnails for your images and folders.

ETA: Screenshot.
Laza

Posts: 1,381
Registered: 6-Sep-2005
Re: generate album crashes after Story update to 4.1.0
Posted: 5 Aug 23, 11:53   in response to: jofra in response to: jofra
 
The new version - 4.1.1 - is supposed to fix this issue. You might need to recreate the Newimages.htt.
JeffTucker

Posts: 7,901
Registered: 31-Jan-2006
Re: generate album crashes after Story update to 4.1.0
Posted: 5 Aug 23, 14:17   in response to: Laza in response to: Laza
 
Yes, that gets rid of the error. I didn't have to delete and re-add Newimages.htt - it worked fine without doing that.
Legend
Forum admins
Helpful Answer
Correct Answer

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