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


Permlink Replies: 4 - Pages: 1 - Last Post: 5 Apr 26, 11:11 Last Post By: Laza
Gagala-van-Org

Posts: 13
Registered: 6-Aug-2023
Crash: jAlbum 39.4, Tiger 8.0.4
Posted: 4 Apr 26, 10:44
 
  Click to reply to this thread Reply
There are several albums that only differ in image size. The crash occurred with the largest album. Perhaps it has something to do with the size of the images (8k).
_________________________________________________________

Stack trace for jAlbum 39.4 using skin Tiger 8.0.4:

se.datadosen.util.ScriptException: <eval>:186 TypeError: null has no such function "replace" in sections.inc at line number 5
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.EnterNode.doEval(EnterNode.java:23)
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.makeIndexPages(AlbumBean.java:4484)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:2001)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:2204)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:2204)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3953)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3789)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1217)
Caused by: javax.script.ScriptException: TypeError: null has no such function "replace" in <eval> at line number 186
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:436)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:420)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine$1.eval(NashornScriptEngine.java:476)
at java.scripting/javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:67)
... 17 more
Caused by: <eval>:186 TypeError: null has no such function "replace"
at org.openjdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:212)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:184)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:171)
at org.openjdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:258)
at org.openjdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:69)
at jdk.dynalink/jdk.dynalink.linker.support.CompositeGuardingDynamicLinker.getGuardedInvocation(Unknown Source)
at jdk.dynalink/jdk.dynalink.LinkerServicesImpl.lambda$getGuardedInvocation$0(Unknown Source)
at jdk.dynalink/jdk.dynalink.LinkerServicesImpl.getWithLookupInternal(Unknown Source)
at jdk.dynalink/jdk.dynalink.LinkerServicesImpl.getGuardedInvocation(Unknown Source)
at jdk.dynalink/jdk.dynalink.DynamicLinker.relink(Unknown Source)
at org.openjdk.nashorn.internal.scripts.Script$340$\^eval\_.:program(<eval>:186)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:506)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:519)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:415)
... 20 more

__________________________________________________________

I tried to let it run again and got this:

An unexpected error occurred. Please see detailed description below:

java.lang.OutOfMemoryError: Java heap space
Laza

Posts: 1,500
Registered: 6-Sep-2005
Re: Crash: jAlbum 39.4, Tiger 8.0.4
Posted: 4 Apr 26, 10:51   in response to: Gagala-van-Org in response to: Gagala-van-Org
 
  Click to reply to this thread Reply
It's a memory overrun problem. Please try updating jAlbum to 39.4.1. You can also raise the memory limit. Press Ctrl-Shift-P in jAlbum, and edit Jalbum.ini file:
Virtual Machine Parameters=-Xms256M -Xmx8000M

Change the Xmx parameter to a higher one, but max. ~75% of total RAM.
Gagala-van-Org

Posts: 13
Registered: 6-Aug-2023
Re: Crash: jAlbum 39.4, Tiger 8.0.4
Posted: 4 Apr 26, 12:27   in response to: Gagala-van-Org in response to: Gagala-van-Org
 
  Click to reply to this thread Reply
Thank you very much!
MarkusD

Posts: 864
Registered: 13-Apr-2006
Re: Crash: jAlbum 39.4, Tiger 8.0.4
Posted: 5 Apr 26, 08:34   in response to: Gagala-van-Org in response to: Gagala-van-Org
 
  Click to reply to this thread Reply
Gagala-van-Org wrote:
There are several albums that only differ in image size. The crash occurred with the largest album. Perhaps it has something to do with the size of the images (8k).
I'm not sure if a 8K picture should raise memory problems. I'm using pictures which are much bigger (panoramas) {58,513×5,539 for example} and had no problems on my old computer (W10, 16GB RAM) nor new computer (W11, 96 GB RAM).

Cheers, Markus
Laza

Posts: 1,500
Registered: 6-Sep-2005
Re: Crash: jAlbum 39.4, Tiger 8.0.4
Posted: 5 Apr 26, 11:11   in response to: MarkusD in response to: MarkusD
 
  Click to reply to this thread Reply
It's not the picture processing that fails, but the overall Java memory management. An 8K image should work flawlessly.
Legend
Forum admins
Helpful Answer
Correct Answer

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