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 Threads: [ Previous | Next ]
JeffTucker

Posts: 8,222
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
 
  Click to reply to this thread Reply
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,480
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
 
  Click to reply to this thread Reply
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,222
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
 
  Click to reply to this thread Reply
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: 443
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
 
  Click to reply to this thread Reply
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,222
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
 
  Click to reply to this thread Reply
Strange - works fine for me.
davidekholm

Posts: 3,480
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
 
  Click to reply to this thread Reply
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,480
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
 
  Click to reply to this thread Reply
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,222
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
 
  Click to reply to this thread Reply
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,480
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
 
  Click to reply to this thread Reply
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: 443
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
 
  Click to reply to this thread Reply
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: 443
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
 
  Click to reply to this thread Reply
However, 30.0.2 starts without a problem.

This will have to remain a mystery.
davidekholm

Posts: 3,480
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
 
  Click to reply to this thread Reply
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