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


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


Permlink Replies: 26 - Pages: 2 [ Previous | 1 2 ] - Last Post: 14 Feb 23, 16:11 Last Post By: davidekholm
JeffTucker

Posts: 8,033
Registered: 31-Jan-2006
Re: Skin style files are not always copied
Posted: 13 Feb 23, 16:32   in response to: davidekholm in response to: davidekholm
 
Basic rule for regression: a new capability that alters an expected behavior, one that an unknown number of skins may be relying on, should default to false, to avoid breakage.

I don't want to resurrect retired skins, solely to make this change. But people are still using them, and now they'll start getting incorrect results, and will assume it's a bug. That's exactly what ctwist assumed when he first encountered the problem, just as I did, the first time I hit it.
davidekholm

Posts: 3,822
Registered: 18-Oct-2002
Re: Skin style files are not always copied
Posted: 13 Feb 23, 16:43   in response to: JeffTucker in response to: JeffTucker
 
I agree with that principle. I'm just hoping and assuming that, with now detecting style changes as well, we're down to very few skins.
JeffTucker

Posts: 8,033
Registered: 31-Jan-2006
Re: Skin style files are not always copied
Posted: 13 Feb 23, 16:45   in response to: davidekholm in response to: davidekholm
 
davidekholm wrote:
I'm just hoping and assuming that... we're down to very few skins.

We'll never know. Which is sort of the point. ;)
ctwist

Posts: 431
Registered: 27-Sep-2003
Re: Skin style files are not always copied
Posted: 13 Feb 23, 18:38   in response to: davidekholm in response to: davidekholm
 
After upgrading to 30.0.1, jAlbum refuses to start. Task Manager shows that no jAlbum or Java processes are running. jAlbum.exe, StartjAlbum.cmd and StartjAlbum-debug.cmd all have the same behaviour.

I reverted to 30.0.0, and jAlbum.exe starts normally. In Help/About/System, I verified that all the correct folders are accessed (i.e. no components from old Java).
JeffTucker

Posts: 8,033
Registered: 31-Jan-2006
Re: Skin style files are not always copied
Posted: 13 Feb 23, 18:50   in response to: ctwist in response to: ctwist
 
Strange - works fine for me.
davidekholm

Posts: 3,822
Registered: 18-Oct-2002
Re: Skin style files are not always copied
Posted: 14 Feb 23, 10:28   in response to: ctwist in response to: ctwist
 
ctwist wrote:
After upgrading to 30.0.1, jAlbum refuses to start. Task Manager shows that no jAlbum or Java processes are running. jAlbum.exe, StartjAlbum.cmd and StartjAlbum-debug.cmd all have the same behaviour.

I reverted to 30.0.0, and jAlbum.exe starts normally. In Help/About/System, I verified that all the correct folders are accessed (i.e. no components from old Java).


Strange. Try running jAlbum using the "StartJAlbum-debug.cmd" and report any error message printed to the command window (use window control menu, then copy and paste the text content)
davidekholm

Posts: 3,822
Registered: 18-Oct-2002
Re: Skin style files are not always copied
Posted: 14 Feb 23, 10:31   in response to: JeffTucker in response to: JeffTucker
 
JeffTucker wrote:
davidekholm wrote:
I'm just hoping and assuming that... we're down to very few skins.

We'll never know. Which is sort of the point. ;)


I've updated to v30.0.2 now. This version should really reduce this problem further: I now also check if the file sizes between the source and destination folders differ. If they do, I always copy the resource file. (Doing this check costs no further IO as I'm reading all file attributes from the source and destination folders anyway)
JeffTucker

Posts: 8,033
Registered: 31-Jan-2006
Re: Skin style files are not always copied
Posted: 14 Feb 23, 10:47   in response to: davidekholm in response to: davidekholm
 
I surrender. If you get any support cases regarding one of my defunct skins, send them to me, and I'll provide a patched "final version" of the skin in question.

Silly me, thinking there was a simple solution.
davidekholm

Posts: 3,822
Registered: 18-Oct-2002
Re: Skin style files are not always copied
Posted: 14 Feb 23, 12:40   in response to: JeffTucker in response to: JeffTucker
 
The only scenario I can think of where there will be problems is when the skin lacks the "cleanResFolder=true" property AND it intends to copy different resource files with the same name and the same length. In such scenario, the resource file wouldn't be copied.
ctwist

Posts: 431
Registered: 27-Sep-2003
Re: Skin style files are not always copied
Posted: 14 Feb 23, 14:23   in response to: davidekholm in response to: davidekholm
 
davidekholm wrote:
Strange. Try running jAlbum using the "StartJAlbum-debug.cmd" and report any error message printed to the command window (use window control menu, then copy and paste the text content)
I had overlooked a message that scrolled off the top:
Error: se.datadosen.jalbum.JAlbum
java.lang.ClassNotFoundException: se.datadosen.jalbum.JAlbum
        at java.base/java.net.URLClassLoader.findClass(Unknown Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        at se.datadosen.jalbum.Main.main(Main.java:40)
URLs found:
< long list of URLs>
ctwist

Posts: 431
Registered: 27-Sep-2003
Re: Skin style files are not always copied
Posted: 14 Feb 23, 14:32   in response to: ctwist in response to: ctwist
 
However, 30.0.2 starts without a problem.

This will have to remain a mystery.
davidekholm

Posts: 3,822
Registered: 18-Oct-2002
Re: Skin style files are not always copied
Posted: 14 Feb 23, 16:11   in response to: ctwist in response to: ctwist
 
That kind of error is to be expected if the jalbum-core.jar file isn't found or broken.
Legend
Forum admins
Helpful Answer
Correct Answer

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