[bug #65936] [grohtml] litters working directory with 0-length image files

2024-07-10 Thread G. Branden Robinson
Follow-up Comment #8, bug #65936 (group groff):

Morten Bo,

You might "git pull" and try the master branch now.  I pushed some changes to
make _pre-grohtml_ more sensitive to changes in Netpbm since 2001 or so.

(See bug #65960 and bug #65960 for details.)


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/


signature.asc
Description: PGP signature


[bug #65936] [grohtml] litters working directory with 0-length image files

2024-07-08 Thread Dave
Follow-up Comment #7, bug #65936 (group groff):

[comment #4 comment #4:]
> I carelessly rendered Git HEAD's version of "ms.ms" in comment #3.
> 
> When I render 1.23.0's "ms.ms" with 1.23.0, I do get _some_
> complaints from _pnmcrop_ and _pnmtopng_, and _some_ zero-length
> files, but not 59 of them.

I see the same.  (My results in comment #1 were using the git HEAD version of
ms.ms.)  The test I mentioned using groff 1.22.4 also used the git HEAD ms.ms,
as that document didn't exist until after 1.22.4.


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/


signature.asc
Description: PGP signature


[bug #65936] [grohtml] litters working directory with 0-length image files

2024-07-08 Thread Dave
Follow-up Comment #6, bug #65936 (group groff):

[comment #3 comment #3:]
> We do have the following recent note in our "PROBLEMS" file
> (unfortunately, I think most distributors don't ship it, and
> to be fair we don't install it).

Bug #61950 seeks to give user-relevant items in this file more visibility.

> * When I run "groff -Thtml", I get complaints from pnmcrop.
> 
>   pnmcrop: The image is entirely background; there is nothing to crop.
> 
> This appears to be two bugs in Netpbm 11.01.00 through 11.3.5 at least;

The "at least" range can potentially be widened: I have Netpbm 10.70.0 and get
the warning, though only when giving -Thtml to the latest groff, not groff
1.22.4.  But because this item was only recently added to PROBLEMS, I presume
some recent groff change provoked the warning.

> the diagnostic is spurious, and pnmcrop is ignoring or overriding the
> "-quiet" option that the pre-grohtml(1) program passes to it.

The diagnostic certainly seems to be spurious for me; as I mentioned, my
generated .png files look fine.

Curiously, "-quiet" seems to be an undocumented option in this version of
pnmcrop.

$ pnmcrop -quiet /dev/null
pnmcrop: Error reading magic number from Netpbm image stream.  Most often,
this means your input file is empty.
$ pnmcrop -loud /dev/null
unrecognized option '-loud'.  Recognized options are: -black -white -sides
-left -right -top -bottom -verbose -margin -borderfile




___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/


signature.asc
Description: PGP signature


[bug #65936] [grohtml] litters working directory with 0-length image files

2024-07-05 Thread Morten Bo Johansen
Follow-up Comment #5, bug #65936 (group groff):


[comment #3 comment #3:]
> Is there any way you can get your hands on a different version of netpbm to
try it?

I downgraded netpbm from 10.86.42-1 to 10.86.40-1 which is the oldest version
in my Arch package cache. But the problem remains the same. Not sure how
Debian and Arch version numbers align, but it seems that your version is much
older than mine? If somebody on the list is reading this and using Arch Linux,
maybe you could try to reproduce this with one of the versions used by me?


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/


signature.asc
Description: PGP signature


[bug #65936] [grohtml] litters working directory with 0-length image files

2024-07-05 Thread G. Branden Robinson
Follow-up Comment #4, bug #65936 (group groff):

Something to note; I carelessly rendered Git HEAD's version of "ms.ms" in
comment #3.

When I render 1.23.0's "ms.ms" with 1.23.0, I do get _some_ complaints from
_pnmcrop_ and _pnmtopng_, and _some_ zero-length files, but not 59 of them.


$ ~/groff-stable/bin/groff -p -e -t -ms -Thtml
~/groff-stable/share/doc/groff-1.23.0/ms.ms >| ms.html
troff:/home/branden/groff-stable/share/doc/groff-1.23.0/ms.ms:213: error:
suppression limit registers span more than a page; grohtml-info for image 1
will be wrong
troff:/home/branden/groff-stable/share/doc/groff-1.23.0/ms.ms:360: error:
suppression limit registers span more than a page; grohtml-info for image 5
will be wrong
troff:/home/branden/groff-stable/share/doc/groff-1.23.0/ms.ms:1767: error:
suppression limit registers span more than a page; grohtml-info for image 20
will be wrong
troff:/home/branden/groff-stable/share/doc/groff-1.23.0/ms.ms:2116: error:
suppression limit registers span more than a page; grohtml-info for image 25
will be wrong
troff:/home/branden/groff-stable/share/doc/groff-1.23.0/ms.ms:2398: error:
suppression limit registers span more than a page; grohtml-info for image 31
will be wrong
troff:/home/branden/groff-stable/share/doc/groff-1.23.0/ms.ms:2756: error:
suppression limit registers span more than a page; grohtml-info for image 37
will be wrong
troff:/home/branden/groff-stable/share/doc/groff-1.23.0/ms.ms:3585: error:
suppression limit registers span more than a page; grohtml-info for image 48
will be wrong
troff:/home/branden/groff-stable/share/doc/groff-1.23.0/ms.ms:4406: error:
suppression limit registers span more than a page; grohtml-info for image 57
will be wrong
pnmcrop: The image is entirely background; there is nothing to crop.
pnmtopng: EOF / read error reading magic number
Calling 'pnmcut 357 317 136 42 < /tmp/branden/groff-page-CSzByk | pnmcrop
-quiet | pnmtopng -quiet -background rgb:f/f/f -transparent rgb:f/f/f>
grohtml-4921-54.png
' returned status 256
pnmcrop: The image is entirely background; there is nothing to crop.
pnmtopng: EOF / read error reading magic number
Calling 'pnmcut 100 250 651 153 < /tmp/branden/groff-page-CSzByk | pnmcrop
-quiet | pnmtopng -quiet -background rgb:f/f/f -transparent rgb:f/f/f>
grohtml-4921-55.png
' returned status 256
pnmcrop: The image is entirely background; there is nothing to crop.
pnmtopng: EOF / read error reading magic number
Calling 'pnmcut 100 530 651 44 < /tmp/branden/groff-page-CSzByk | pnmcrop
-quiet | pnmtopng -quiet -background rgb:f/f/f -transparent rgb:f/f/f>
grohtml-4921-56.png
' returned status 256
$ ls -1s | grep '^ *0'
  0 grohtml-4921-54.png
  0 grohtml-4921-55.png
  0 grohtml-4921-56.png


Three empty files would seem to align with the three pairs of squawks from
_pnmcrop_ and _pnmtopng_.

I further observe that there are other problems with _grohtml_ in production
of this document, like no paragraph breaks anywhere.

It's possible _ms_ was never fully wired up to _grohtml_.


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/


signature.asc
Description: PGP signature


[bug #65936] [grohtml] litters working directory with 0-length image files

2024-07-05 Thread G. Branden Robinson
Update of bug #65936 (group groff):

  Status:None => Need Info  

___

Follow-up Comment #3:

I can't reproduce this with stock _groff_ 1.23.0 or Git HEAD.


$ ~/groff-stable/bin/groff --version | head -n 1
GNU groff version 1.23.0
$ ~/groff-stable/bin/groff -p -e -t -ms -Thtml ms.ms >| ms.html
troff:./ms.ms:213: error: suppression limit registers span more than a page;
grohtml-info for image 1 will be wrong
troff:./ms.ms:360: error: suppression limit registers span more than a page;
grohtml-info for image 5 will be wrong
troff:./ms.ms:1783: error: suppression limit registers span more than a page;
grohtml-info for image 20 will be wrong
troff:./ms.ms:2079: error: suppression limit registers span more than a page;
grohtml-info for image 24 will be wrong
troff:./ms.ms:2648: error: suppression limit registers span more than a page;
grohtml-info for image 35 will be wrong
troff:./ms.ms:2795: error: suppression limit registers span more than a page;
grohtml-info for image 40 will be wrong
troff:./ms.ms:3628: error: suppression limit registers span more than a page;
grohtml-info for image 51 will be wrong
troff:./ms.ms:4453: error: suppression limit registers span more than a page;
grohtml-info for image 60 will be wrong
$ ls -1s
total 784
 20 grohtml-3349-1.png
  4 grohtml-3349-10.png
 16 grohtml-3349-11.png
 16 grohtml-3349-12.png
 16 grohtml-3349-13.png
  8 grohtml-3349-14.png
  4 grohtml-3349-15.png
  8 grohtml-3349-16.png
  4 grohtml-3349-17.png
  4 grohtml-3349-18.png
 32 grohtml-3349-19.png
  8 grohtml-3349-2.png
 16 grohtml-3349-20.png
  8 grohtml-3349-21.png
  4 grohtml-3349-22.png
 16 grohtml-3349-23.png
  8 grohtml-3349-24.png
  4 grohtml-3349-25.png
  4 grohtml-3349-26.png
  8 grohtml-3349-27.png
  4 grohtml-3349-28.png
  4 grohtml-3349-29.png
  8 grohtml-3349-3.png
  4 grohtml-3349-30.png
  8 grohtml-3349-31.png
  8 grohtml-3349-32.png
 20 grohtml-3349-33.png
  4 grohtml-3349-34.png
  4 grohtml-3349-35.png
  4 grohtml-3349-36.png
  4 grohtml-3349-37.png
  4 grohtml-3349-38.png
  8 grohtml-3349-39.png
  4 grohtml-3349-4.png
 16 grohtml-3349-40.png
  8 grohtml-3349-41.png
  8 grohtml-3349-42.png
  4 grohtml-3349-43.png
  4 grohtml-3349-44.png
  8 grohtml-3349-45.png
  8 grohtml-3349-46.png
  8 grohtml-3349-47.png
  8 grohtml-3349-48.png
  4 grohtml-3349-49.png
  8 grohtml-3349-5.png
  8 grohtml-3349-50.png
 16 grohtml-3349-51.png
  8 grohtml-3349-52.png
  8 grohtml-3349-53.png
 12 grohtml-3349-54.png
  4 grohtml-3349-56.png
  4 grohtml-3349-57.png
  8 grohtml-3349-58.png
  4 grohtml-3349-59.png
  4 grohtml-3349-6.png
 16 grohtml-3349-60.png
 32 grohtml-3349-7.png
 32 grohtml-3349-8.png
 16 grohtml-3349-9.png
156 ms.html
 76 ms.ms


Given that, I suspect the problem to be with netpbm.


$ type -p pnmcrop
/usr/bin/pnmcrop
$ dpkg -S $(!!)
dpkg -S $(type -p pnmcrop)
netpbm: /usr/bin/pnmcrop
$ dpkg -l netpbm
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name   Version  Architecture Description
+++-==---===
ii  netpbm 2:10.0-15.4  amd64Graphics conversion tools between
image formats


Is there any way you can get your hands on a different version of netpbm to
try it?

We do have the following recent note in our "PROBLEMS" file (unfortunately, I
think most distributors don't ship it, and to be fair we don't install it).


[groff next]

* When I run "groff -Thtml", I get complaints from pnmcrop.

  pnmcrop: The image is entirely background; there is nothing to crop.

This appears to be two bugs in Netpbm 11.01.00 through 11.3.5 at least;
the diagnostic is spurious, and pnmcrop is ignoring or overriding the
"-quiet" option that the pre-grohtml(1) program passes to it.  We see
this in groff builds when generating the "pic.html" and "webpage.html"
documents, but the images are correctly created nonetheless.


Possibly the problem is worse than I thought, or there are even more than I
thought.

Feedback desired.


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/


signature.asc
Description: PGP signature


[bug #65936] [grohtml] litters working directory with 0-length image files

2024-07-05 Thread G. Branden Robinson
Update of bug #65936 (group groff):

 Summary: [grohtml] grohtml litters working directory with
0-length image files => [grohtml] litters working directory with 0-length
image files


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/


signature.asc
Description: PGP signature