Page 1 of 1

Hollywood10 Linux - Error when SaveBrush to ILBM

Posted: Tue Dec 05, 2023 8:28 am
by fingus

Code: Select all

@display {Palette = #PALETTE_OCS} 
Loadbrush(0, "bilder/test.jpg")
QuantizeBrush(0, {Colors = 32, Dither = 1, Palette = 0})
SaveBrush(0, "out.iff", {Format = #IMGFMT_ILBM})
Image

Re: Hollywood10 Linux - Error when SaveBrush to ILBM

Posted: Wed Dec 06, 2023 4:48 pm
by airsoftsoftwair
This doesn't qualify as an MCVE because I don't have access to the file "test.jpg". Does this happen with any JPG or only with specific ones?

Re: Hollywood10 Linux - Error when SaveBrush to ILBM

Posted: Thu Dec 07, 2023 4:03 pm
by fingus
airsoftsoftwair wrote: Wed Dec 06, 2023 4:48 pm This doesn't qualify as an MCVE because I don't have access to the file "test.jpg". Does this happen with any JPG or only with specific ones?
Every jpg i test, also this one:

https://upload.wikimedia.org/wikipedia/ ... ration.jpg

Re: Hollywood10 Linux - Error when SaveBrush to ILBM

Posted: Fri Dec 08, 2023 12:19 pm
by fingus
I think I have found the cause for this; it's triggered when saving on a mounted Web-Disk (WebDAV, SFTP).

Re: Hollywood10 Linux - Error when SaveBrush to ILBM

Posted: Fri Dec 08, 2023 8:32 pm
by airsoftsoftwair
Can the error be reproduced by writing a file to the mounted web disk? e.g.

Code: Select all

OpenFile(1, <mounted web disk path>, #MODE_WRITE)
WriteLine(1, "foo")
CloseFile(1)
Does this work or does it throw the same error?

Re: Hollywood10 Linux - Error when SaveBrush to ILBM

Posted: Mon Dec 11, 2023 11:23 am
by fingus
airsoftsoftwair wrote: Fri Dec 08, 2023 8:32 pm Can the error be reproduced by writing a file to the mounted web disk? e.g.

Code: Select all

OpenFile(1, <mounted web disk path>, #MODE_WRITE)
WriteLine(1, "foo")
CloseFile(1)
Does this work or does it throw the same error?
That works for WebDAV and SFTP (SSH) Mounted Shares.

Re: Hollywood10 Linux - Error when SaveBrush to ILBM

Posted: Fri Dec 15, 2023 10:26 pm
by airsoftsoftwair
fingus wrote: Mon Dec 11, 2023 11:23 am That works for WebDAV and SFTP (SSH) Mounted Shares.
Makes sense. In contrast to the ILBM saver, CloseFile() doesn't throw an error in case closing the file fails. I think this is a bug/feature in the mounted share file handler. What tool do you use to mount SFTP connections as a folder? SSHFS?

Re: Hollywood10 Linux - Error when SaveBrush to ILBM

Posted: Sat Dec 16, 2023 8:35 pm
by fingus
airsoftsoftwair wrote: Fri Dec 15, 2023 10:26 pm
fingus wrote: Mon Dec 11, 2023 11:23 am That works for WebDAV and SFTP (SSH) Mounted Shares.
Makes sense. In contrast to the ILBM saver, CloseFile() doesn't throw an error in case closing the file fails. I think this is a bug/feature in the mounted share file handler. What tool do you use to mount SFTP connections as a folder? SSHFS?
rclone mount webdav resource

Re: Hollywood10 Linux - Error when SaveBrush to ILBM

Posted: Sat Dec 23, 2023 9:49 pm
by airsoftsoftwair
fingus wrote: Sat Dec 16, 2023 8:35 pm rclone mount webdav resource
Ah ok, not a Hollywood bug. The ILBM writer requires seeking so you should add --vfs-cache-mode=writes when you mount the WebDAV share. Then it should work.

Re: Hollywood10 Linux - Error when SaveBrush to ILBM

Posted: Mon Jan 22, 2024 3:04 pm
by fingus
airsoftsoftwair wrote: Sat Dec 23, 2023 9:49 pm
fingus wrote: Sat Dec 16, 2023 8:35 pm rclone mount webdav resource
Ah ok, not a Hollywood bug. The ILBM writer requires seeking so you should add --vfs-cache-mode=writes when you mount the WebDAV share. Then it should work.
That Fixed it, thanks four your Help again, Andreas!