Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #118: the router thinks its a printer.


comp / comp.lang.tcl / Re: Img package 1.4.13 broken

SubjectAuthor
* Img package 1.4.13 brokenHelmut Giese
`* Re: Img package 1.4.13 brokenPaul Obermeier
 `- Re: Img package 1.4.13 brokenHelmut Giese

1
Subject: Img package 1.4.13 broken
From: Helmut Giese
Newsgroups: comp.lang.tcl
Organization: ratiosoft
Date: Wed, 20 Nov 2024 20:36 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: hgiese@ratiosoft.com (Helmut Giese)
Newsgroups: comp.lang.tcl
Subject: Img package 1.4.13 broken
Date: Wed, 20 Nov 2024 21:36:34 +0100
Organization: ratiosoft
Lines: 35
Message-ID: <h6hsjjp61efhdlb83t2jgv674d6eu81q6b@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Nov 2024 21:36:35 +0100 (CET)
Injection-Info: dont-email.me; posting-host="c20e262b14fba8841b5020c1a92f6bdb";
logging-data="290374"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Sj4arNdq4oOZzvKQcsDiz"
Cancel-Lock: sha1:RX6ErHcJ8nuBsQKjRVeXrZLmkMU=
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
View all headers

Hello out there,
the Img package distributed with the latest versions of Tcl contain a
bug - well, not really 'Img' itself but rather the zlib DLL it uses.

Here is what happened:
When trying to run the second example from

https://wiki.tcl-lang.org/page/CollapsableFrame+%2DA+Toggle+Resized+Labelled+Frame+Container
I got the error
IDAT: invalid distance too far back
while executing
image create photo iconeClose -format png -data $data
...
with data being defined as
set data
"iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAIAAAHeSjtLAAAABGdBTUEAAYagMei\
WXwAAAKBJREFUCJmlUCESxCAMXJiIPqfyJOJEn8WTIpGRJxEInoKoOAGTo6X05uZ2EGw2ySYxZS8ALIC\
coqmMcooATNlL/QEgAMyhkpbXFM1hDhYdSAs+3db1oaEYX8yBlOCIJpwqzvaK7bnZnOJCS//qcGcP7Wn\
HPl+Ei6nagt77MV1EDne8B3MQEVI+uij6e9FMmDWabjfDHwWX84xx45z7yeENMlJR1s8KWugAAAAASUV\
ORK5CYII="

I found a mention of this error in
https://mirror.netzwerge.de/openbsd/Changelogs/ChangeLog.62
Search for 'invalid distance' , 2nd occurrence.

There it is said that this error was introduced in zlib 1.2.2.2 and
fixed - I think - by this commit
CVSROOT: /cvs
Module name: src
Changes by: tb@cvs.openbsd.org 2022/03/25 04:58:39

It's long ago that I filed a bug and have forgotten how and where.
If you consider it a bug, too, I would be glad for a note how to
report it.
Helmut

Subject: Re: Img package 1.4.13 broken
From: Paul Obermeier
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Wed, 20 Nov 2024 21:59 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: obermeier@poSoft.de (Paul Obermeier)
Newsgroups: comp.lang.tcl
Subject: Re: Img package 1.4.13 broken
Date: Wed, 20 Nov 2024 22:59:25 +0100
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <vhlm5b$8urr$1@dont-email.me>
References: <h6hsjjp61efhdlb83t2jgv674d6eu81q6b@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Nov 2024 23:00:11 +0100 (CET)
Injection-Info: dont-email.me; posting-host="8ab68c29163e63c7c6ef36284006df83";
logging-data="293755"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+mCyN7iF2YAGTXNWfVfz9UdSlybzDI+58="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ZNoefSs5Rkxut3n13oHQV9rlkhE=
In-Reply-To: <h6hsjjp61efhdlb83t2jgv674d6eu81q6b@4ax.com>
View all headers

Am 20.11.2024 um 21:36 schrieb Helmut Giese:
> Hello out there,
> the Img package distributed with the latest versions of Tcl contain a
> bug - well, not really 'Img' itself but rather the zlib DLL it uses.
>
> Here is what happened:
> When trying to run the second example from
>
> https://wiki.tcl-lang.org/page/CollapsableFrame+%2DA+Toggle+Resized+Labelled+Frame+Container
> I got the error
> IDAT: invalid distance too far back
> while executing
> image create photo iconeClose -format png -data $data
> ...
> with data being defined as
> set data
> "iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAIAAAHeSjtLAAAABGdBTUEAAYagMei\
> WXwAAAKBJREFUCJmlUCESxCAMXJiIPqfyJOJEn8WTIpGRJxEInoKoOAGTo6X05uZ2EGw2ySYxZS8ALIC\
> coqmMcooATNlL/QEgAMyhkpbXFM1hDhYdSAs+3db1oaEYX8yBlOCIJpwqzvaK7bnZnOJCS//qcGcP7Wn\
> HPl+Ei6nagt77MV1EDne8B3MQEVI+uij6e9FMmDWabjfDHwWX84xx45z7yeENMlJR1s8KWugAAAAASUV\
> ORK5CYII="
>
> I found a mention of this error in
> https://mirror.netzwerge.de/openbsd/Changelogs/ChangeLog.62
> Search for 'invalid distance' , 2nd occurrence.
>
> There it is said that this error was introduced in zlib 1.2.2.2 and
> fixed - I think - by this commit
> CVSROOT: /cvs
> Module name: src
> Changes by: tb@cvs.openbsd.org 2022/03/25 04:58:39
>
> It's long ago that I filed a bug and have forgotten how and where.
> If you consider it a bug, too, I would be glad for a note how to
> report it.
> Helmut

Hi Helmut,

I can confirm, that the example script gives the mentioned error, if using Img 1.4.17.

It does however work, if using the latest Img version 2.0 or if using the native Tk PNG parser.
As the Img 1.4.X branch is not supported anymore (see https://tkimg.sourceforge.net/history.html#Version_1_4_17),
I have no plans to fix this specific bug.

Regards,
Paul

Subject: Re: Img package 1.4.13 broken
From: Helmut Giese
Newsgroups: comp.lang.tcl
Organization: ratiosoft
Date: Fri, 22 Nov 2024 07:51 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: hgiese@ratiosoft.com (Helmut Giese)
Newsgroups: comp.lang.tcl
Subject: Re: Img package 1.4.13 broken
Date: Fri, 22 Nov 2024 08:51:35 +0100
Organization: ratiosoft
Lines: 20
Message-ID: <95d0kjl32k5cho18rmgnj3q72973s3okkv@4ax.com>
References: <h6hsjjp61efhdlb83t2jgv674d6eu81q6b@4ax.com> <vhlm5b$8urr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 22 Nov 2024 08:51:35 +0100 (CET)
Injection-Info: dont-email.me; posting-host="6757f95f878b18a39d673c16ad674fc9";
logging-data="1160931"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18D7k+3uJq/TNm5dyt+PlLz"
Cancel-Lock: sha1:mr8LdH/0VSYYCp9wZ0cBNq6mQgg=
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
View all headers

Thank you Paul,
>
>I can confirm, that the example script gives the mentioned error, if using Img 1.4.17.
>
>It does however work, if using the latest Img version 2.0 or if using the native Tk PNG parser.
>As the Img 1.4.X branch is not supported anymore (see https://tkimg.sourceforge.net/history.html#Version_1_4_17),
>I have no plans to fix this specific bug.

so no need to file a bug report.

I would like then to use Img 2.0, but when I followed the link on
https://tkimg.sourceforge.net/
where it said
Sources and executables are available in the Files section
it led me to a download page where I only obtained the sources.
Alas, I am not able to create my own binaries, so I will have to wait
until binaries for Img 2.0 will be officially available.

Best regards and have a nice weekend
Helmut

1

rocksolid light 0.9.8
clearnet tor