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


Permlink Replies: 23 - Pages: 2 [ 1 2 | Next ] - Last Post: 16 Jul 21, 21:05 Last Post By: JeffTucker
JeffTucker

Posts: 8,126
Registered: 31-Jan-2006
THM file console error
Posted: 27 Jun 21, 16:36
 
  Click to reply to this thread Reply
Attachment frenchpress.pdf (889.1 KB)
Attachment frenchpress.thm (146.5 KB)
Attachment thmError.txt (338 bytes)
If I add an object that has a related THM file, I get the attached console error, along with the triangle warning at lower right. This happens regardless of the type of object - video, PDF, whatever. Including them with videos these days is fairly uncommon, but for PDF's, it's an everyday thing.

And when I make the album, I get the same error, multiple times, along with some odd delays in the album build, like it's struggling to deal with the THM files - very noticeable.

Ultimately, it doesn't do any harm - the representing image is handled correctly - but it ain't happy. ;)

This is with 24rc2.

Try the attached pair of files in any skin that can handle PDF's - Tiger will do, for example.
davidekholm

Posts: 3,972
Registered: 18-Oct-2002
Re: THM file console error
Posted: 27 Jun 21, 18:26   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Oddly enough, I can't reproduce that. Ensure you don't have "jdeli.jar" in your lib folder, only "jdeli-daily.jar"
JeffTucker

Posts: 8,126
Registered: 31-Jan-2006
Re: THM file console error
Posted: 27 Jun 21, 18:42   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Nope, only jdeli-daily.jar.

ETA: File size 4,273,336 bytes.
JeffTucker

Posts: 8,126
Registered: 31-Jan-2006
Re: THM file console error
Posted: 27 Jun 21, 18:48   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
But no similar error on the Mac, so there's clearly something different about Windows....
JeffTucker

Posts: 8,126
Registered: 31-Jan-2006
Re: THM file console error
Posted: 27 Jun 21, 18:52   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Ah, it happens if the PDF with its THM is chosen as the thumbnail image. If not, no error.

ETA: Not true. I'm now seeing it on the Mac, even when a regular JPG is chosen as the thumbnail image.
davidekholm

Posts: 3,972
Registered: 18-Oct-2002
Re: THM file console error
Posted: 27 Jun 21, 19:02   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Still can't reproduce :-(
davidekholm

Posts: 3,972
Registered: 18-Oct-2002
Re: THM file console error
Posted: 27 Jun 21, 19:20   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Can you pass me a zipped project?
JeffTucker

Posts: 8,126
Registered: 31-Jan-2006
Re: THM file console error
Posted: 27 Jun 21, 19:42   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Attachment thmError.zip (962.8 KB)
Sure. It couldn't be simpler. Start a new project. Select a skin. Add the PDF and THM simultaneously. Drag the thumbnail to the Thumbnail image box. Bingo, error.
JeffTucker

Posts: 8,126
Registered: 31-Jan-2006
Re: THM file console error
Posted: 27 Jun 21, 20:00   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
I should point out that this is just the latest in a string of errors and user-unfriendly things about the THM mechanism.

  • There are UI problems when trying to use the THM as a thumbnail image for the folder. It won't get selected automatically, and when selected manually, it never gets the "heart" icon.
  • Uploading an album that has only PDF's and THM's fails to create a profile page entry.
  • The user needs to manually rename files with an extension that the O/S thinks is something else (in my case, it thinks it's a LibreOffice config file).
  • Add a PDF/THM to a project in Tiger, for example, coupled with Link to originals. Then view the album. Fails miserably.

It's still needed, for PDF's, audio files, and sometimes videos, and would be useful for pano's (especially the equirectangular ones, which have terrible thumbnails), but can't be used because of file name collisions (the mydog.jpg 360 pano needs a mydog.thm thumbnail, but that would become mydog.jpg in the output, with predictable results).

The whole thing needs a rethink. Without having to rename files manually, it should be possible for a user to designate a representing image for any AO, and have the core take care of keeping things straight. I haven't thought this through, obviously....
RobM

Posts: 3,901
Registered: 4-Aug-2006
Re: THM file console error
Posted: 27 Jun 21, 20:13   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
Sure. It couldn't be simpler. Start a new project. Select a skin. Add the PDF and THM simultaneously. Drag the thumbnail to the Thumbnail image box. Bingo, error.
I have tried that and I can't get it to show an error. Is there perhaps a preference or setting that might have a bearing on the error?
JeffTucker

Posts: 8,126
Registered: 31-Jan-2006
Re: THM file console error
Posted: 27 Jun 21, 20:25   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Attachment defaults.jap (6.8 KB)
Well, here's my defaults.jap. Pretty much plain vanilla, with only a handful of departures from the defaults.

And I'm getting a cascade of these errors when making an album with Tiger, so there's certainly nothing odd in my own skins that's triggering it.

Fiddle with it a bit. Add a regular image. Choose that as the folder thumbnail. Now switch back to using the PDF/THM. Once you start seeing the error, it persists until you close out.

If I were seeing this on only one platform.... But I'm seeing it on both.
davidekholm

Posts: 3,972
Registered: 18-Oct-2002
Re: THM file console error
Posted: 27 Jun 21, 20:31   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Yes, thm file management needs a rewrite. I don't want to be daring and do it for v24 though, but nothing should work worse than it already does. Now I've got rid of those null pointer exceptions.
JeffTucker

Posts: 8,126
Registered: 31-Jan-2006
Re: THM file console error
Posted: 27 Jun 21, 20:42   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
I'm thinking of some sort of scheme where, in edit mode, there's an Add representing image button, with a file chooser. The chosen file gets stashed in .jalbum somewhere, hooked to the AO to which it applies. The core then uses that stashed file for creating the thumbnail and the slide image (for things like a poster image for an audio file). File naming would be dodgy - it needs something that isn't easy to break. Matching the base file name of the AO is just too risky. Maybe something like mydog.repimg.jpg.

The even nastier aspect of a rewrite is that trying to maintain compatibility with the existing THM mechanism might be damn near impossible. It would require some sort of "convert this whole project" tool to clean it up.

And some of the skin "fixes" would have to be replaced - my skins take care of the Link to originals problem by themselves, simply by detecting the problem and copying the needed file to where it belongs (that problem does not afflict THM's that are hooked to videos, BTW - it's only PDF's and audio files that fail).
JeffTucker

Posts: 8,126
Registered: 31-Jan-2006
Re: THM file console error
Posted: 27 Jun 21, 20:45   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Now I've got rid of those null pointer exceptions.

Let me know when there's a new core to play with. You may then take the rest of the weekend off. ;)
RobM

Posts: 3,901
Registered: 4-Aug-2006
Re: THM file console error
Posted: 27 Jun 21, 21:10   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
One odd thing, which might not be new as I don't much use thm's is that in the thumbnail contextual menu the 'Use as folder thumbnail' is not available for the PDF.

Another is setting a jpg as the thumbnail and then, with no current theme image, dragging the PDF to the theme image. That works fine, but now if I drag the PDF to the folder thumbnail box it shows there OK but is removed as the theme image.

Defaults and skin used make no difference. Still not yet got it to fail though.
Legend
Forum admins
Helpful Answer
Correct Answer

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