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


Permlink Replies: 14 - Pages: 1 - Last Post: 16 Jan 24, 12:08 Last Post By: davidekholm Threads: [ Previous | Next ]
nigel-aves

Posts: 66
Registered: 23-May-2023
jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 14 Jan 24, 03:19
 
  Click to reply to this thread Reply
Just installed the latest update. jAlbum 34 _ Java 20, 64 bit.

I never had any issues in the past "Creating Album"; now I'm getting a page full of errors. I don't know if this is a jAlbum issue or if the update has made the theme/skin wonky, but it looks like this was not well tested or I'm missing something.

As Reported:

An unexpected error occurred. Please see detailed description below:

java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: Error processing D:\jAlbum\Adult Gallery\Contact and Biography\About Nigel.htt -> C:\Users\nsave\AppData\Roaming\JAlbum\skins\PhotoBlogger\templates\About.htt
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.reportExecutionException(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.get(Unknown Source)
at net.jalbum.util.WorkerPool.process(WorkerPool.java:87)
at net.jalbum.util.WorkerPool.process(WorkerPool.java:72)
at se.datadosen.jalbum.AlbumBean.registerVariables(AlbumBean.java:3234)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1861)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:2077)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3694)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3531)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1198)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Error processing D:\jAlbum\Adult Gallery\Contact and Biography\About Nigel.htt -> C:\Users\nsave\AppData\Roaming\JAlbum\skins\PhotoBlogger\templates\About.htt
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.reportException(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.invoke(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
at se.datadosen.jalbum.AlbumBean.lambda$registerVariables$9(AlbumBean.java:3235)
at net.jalbum.util.WorkerPool.lambda$process$1(WorkerPool.java:84)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Error processing D:\jAlbum\Adult Gallery\Contact and Biography\About Nigel.htt -> C:\Users\nsave\AppData\Roaming\JAlbum\skins\PhotoBlogger\templates\About.htt
at se.datadosen.jalbum.AlbumBean.registerVariables(AlbumBean.java:3171)
at se.datadosen.jalbum.AlbumBean.lambda$registerVariables$8(AlbumBean.java:3237)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachTask.compute(Unknown Source)
at java.base/java.util.concurrent.CountedCompleter.exec(Unknown Source)
... 5 more
Caused by: java.lang.NullPointerException: Cannot read field "width" because "newDim" is null
at se.datadosen.jalbum.ImageRenderer.computeRenditions(ImageRenderer.java:290)
at se.datadosen.jalbum.ImageRenderer.<init>(ImageRenderer.java:111)
at se.datadosen.jalbum.AlbumObjectImpl.getRenderer(AlbumObjectImpl.java:232)
at se.datadosen.jalbum.AlbumBean.addFilteredImageSizes(AlbumBean.java:4389)
at se.datadosen.jalbum.AlbumBean.registerVariables(AlbumBean.java:3151)
... 11 more
JeffTucker

Posts: 7,938
Registered: 31-Jan-2006
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 14 Jan 24, 03:35   in response to: nigel-aves in response to: nigel-aves
 
  Click to reply to this thread Reply
As a quick test, try excluding About Nigel.htt from the project. No need to delete it - just exclude it. This is just a single error, but one that produces a cascade of other failures, so it looks like many errors.
nigel-aves

Posts: 66
Registered: 23-May-2023
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 14 Jan 24, 03:56   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Jeff,

Too late to try that. I had a thought that it might be Java-related (might be right, might be wrong), so I rebooted the system.

It's now processing the album, but what used to take about 15 to 20 minutes is now showing 45 minutes (1/4 of the way through 24,805 photographs). Slowed down something horrible.

I reprocessed 800 odd photographs, so I deleted the old albums and added the new ones.

BTW - Happy New Year and all that ...
JeffTucker

Posts: 7,938
Registered: 31-Jan-2006
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 14 Jan 24, 13:59   in response to: nigel-aves in response to: nigel-aves
 
  Click to reply to this thread Reply
nigel-aves wrote:
...I had a thought that it might be Java-related....

Since jAlbum is written in Java, virtually any error is a "Java error." It couldn't be a "C++ error" or a "COBOL error." That doesn't mean that there's anything wrong with Java itself - any skin coding problem or core logic problem will trigger a "Java error."
nigel-aves

Posts: 66
Registered: 23-May-2023
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 14 Jan 24, 16:25   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Good morning Jeff,

I was not aware that it was Java based. The reboot probably cleared some clash that was happening in memory or a cache, or it was needed to overwrite some files that were open, and the reboot was needed to overwrite them.

Anyways, it did all work OK after that, but it was a lot slower. It seemed to end up being about 50 to 60% slower than the previous version.
JeffTucker

Posts: 7,938
Registered: 31-Jan-2006
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 14 Jan 24, 16:51   in response to: nigel-aves in response to: nigel-aves
 
  Click to reply to this thread Reply
nigel-aves wrote:
It seemed to end up being about 50 to 60% slower than the previous version.

That's a sign that something is seriously wrong. Virtually every new version of jAlbum has gotten slightly faster than the version before it.
nigel-aves

Posts: 66
Registered: 23-May-2023
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 14 Jan 24, 17:32   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Unfortunately, I don't have any true timings on this. Hopefully, someone in SQA could test this. And I'd be happy to be proven wrong.
davidekholm

Posts: 3,666
Registered: 18-Oct-2002
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 15 Jan 24, 16:48   in response to: nigel-aves in response to: nigel-aves
 
  Click to reply to this thread Reply
Thanks for reporting. I've improved the error reporting for v34.0.1, so if you're using v34, select Tools->External tools->"jAlbum core update" and restart jAlbum when prompted. This will give you v34.0.1 which should report the failing object. Please run it and then attach the failing object in a reply to me.
JeffTucker

Posts: 7,938
Registered: 31-Jan-2006
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 15 Jan 24, 16:51   in response to: nigel-aves in response to: nigel-aves
 
  Click to reply to this thread Reply
nigel-aves wrote:
I was not aware that it was Java based.

That's what the "j" stands for. :)
nigel-aves

Posts: 66
Registered: 23-May-2023
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 15 Jan 24, 22:13   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
@davidekholm

Sorry to say that after I rebooted my PC, jAlbum all started to work correctly. So, I'm not able to do your test. But I did download your point release and started to use that.

I feel that there "might" be a performance issue happening, but as I don't have any timings from the previous version, it's hard to put a finger on it.

I had to make some corrections to another site that has approx. 15,000 photographs. It looked like everything was working as fast as I remember, but it came to one album, "Reading Meta Data," with the time frozen at 7:20 for approximately 5 to 8 minutes. I've never seen this before.

Sorry, I could not help you with the test.

Nigel.

Edited by: nigel-aves on 15 Jan 2024, 14:14
JeffTucker

Posts: 7,938
Registered: 31-Jan-2006
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 16 Jan 24, 00:23   in response to: nigel-aves in response to: nigel-aves
 
  Click to reply to this thread Reply
Very mysterious. I've got a family album with over 6,000 objects, about 95% still images, the rest videos, in over 50 folders. If I simply Make Album, without adding any new objects, it regenerates all of the index pages (there's a time stamp buried in the page code, so each index.html is "new"), and finishes the job in 20 seconds.

That doesn't really change if I alter things like titles, comments, or the sequence of objects - it has to extract all that information to build the index page whether there are any changes or not.

If I add new objects, the processing time for the album increases by about the same amount it would if I were creating a new album with just those objects in it.

The oldest material, of course, has virtually no metadata, but everything since about 2006 is from the digital era, and has the usual collection of metadata.

It's difficult to imagine what could be choking your album builds. The only thing I can think of is that the generation of the JSON files could be the problem. My skins don't use JSON files, so I turn off their generation - it would just be a waste of time. I may have to do some experimenting with that.
JeffTucker

Posts: 7,938
Registered: 31-Jan-2006
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 16 Jan 24, 00:28   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
FWIW, my setup is pretty plain vanilla. The project is on the C: drive, which is an SSD. No NAS, no old spinning beasts. On the other hand, the PC is over 5 years old, and it was sort of "better than average, but not a gaming machine."

The only time I reboot my PC, it's unintentionally - a Windows update or a power failure (a visiting lineman from out-of-State was overheard to describe our local power grid as "third world").
JeffTucker

Posts: 7,938
Registered: 31-Jan-2006
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 16 Jan 24, 01:05   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
It's difficult to imagine what could be choking your album builds. The only thing I can think of is that the generation of the JSON files could be the problem. My skins don't use JSON files, so I turn off their generation - it would just be a waste of time. I may have to do some experimenting with that.

Well, so much for that theory. When I turned JSON generation on, and made the album again, the build time was within a tenth of a second of the "no JSON" build.
nigel-aves

Posts: 66
Registered: 23-May-2023
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 16 Jan 24, 01:58   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Jeff,

There might be a "new" bottleneck on my system. I run a 12 core Ryzan 9 / 3 X M2 SSDs for operating system, working area and games "I am a gamer". and a hard drive for backup (I do backup to a NAS device). I'll look into that tomorrow.

The only change to my system is that I swapped a Nvidia graphics card out for an AMD graphics card.

The bottom line for me is, it is working all OK

Nigel.
davidekholm

Posts: 3,666
Registered: 18-Oct-2002
Re: jAlbum 34 _ Java 20, 64 bit. Make Album now creates many error messages.
Posted: 16 Jan 24, 12:08   in response to: nigel-aves in response to: nigel-aves
 
  Click to reply to this thread Reply
If you ever encounter "odd pauses" during album builds in the future, open jAlbum's system console and hit the "dump threads" button in the top-right corner. This will produce a file telling me what jAlbum is up to. Just attach it in a thread here.
Legend
Forum admins
Helpful Answer
Correct Answer

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