Menu

#418 regression in test t/357_unpaper_rtl.t

v1.0_(example)
closed-invalid
nobody
None
5
2023-05-01
2023-04-20
No

Hi,

there seems to be a regression in gscan2pdf-2.13.2:

t/356_unpaper_corrupt_image.t ................. ok   
t/357_unpaper_rtl.t ........................... 2023/04/20 04:01:01 [image2 @ 0x448700] Encoder did not produce proper pts, making some up.
[image2 @ 0x448700] The specified filename '/build/KL5kTVnNCi/vlO74czl2x.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x448700] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
[image2 @ 0x452940] The specified filename '/build/KL5kTVnNCi/JbUyV_hVUO.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x452940] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
convert: negative or zero image size `/build/KL5kTVnNCi/YfgegFM53e.pnm' @ error/resize.c/ResizeImage/3743.
*** unhandled exception in callback:
***   "convert" unexpectedly returned exit value 1 at t/357_unpaper_rtl.t line 63.

The full build log is available at https://hydra.nixos.org/build/216769307/nixlog/1

Versions:
unpaper-7.0.0
imagemagick-7.1.1-7

It seems the build succeeded with imagemagick-7.1.1-6 which would suggest a regression due to an update of imagemagick.

Related

Bugs: #418

Discussion

  • Joachim Breitner

    I was about to report the same; for cross-reference here the nixpkgs issue for it: https://github.com/NixOS/nixpkgs/issues/227265

     
  • Jeffrey Ratcliffe

    Thanks for the reports. Does that version of convert produce reasonable output for the following:

    convert +matte -depth 1 -border 2x2 -bordercolor black -family 'DejaVu Sans' -pointsize 12 -density 300 label:"The quick brown fox" 1.pnm
    convert +matte -depth 1 -border 2x2 -bordercolor black -family 'DejaVu Sans' -pointsize 12 -density 300 label:'The slower lazy dog' 2.pnm
    convert -size 100x100 xc:black black.pnm
    convert 1.pnm black.pnm 2.pnm +append test.pnm
    convert test.pnm -depth 1 -resize 1x1 txt:-
    

    ?

     
    • Joachim Breitner

      The last command says something on stderr, and returns with non-zero status.

      /tmp/foo $ convert test.pnm -depth 1 -resize 1x1 txt:- > /dev/null
      convert: negative or zero image size `test.pnm' @ error/resize.c/ResizeImage/3743.
      
       
  • Jeffrey Ratcliffe

    As test.pnm doesn't have a negative or zero image size, it looks like a bug in imagemagick to me.

     
  • Joachim Breitner

    Fixed upstream in 7.1.1-8.

     
  • Jeffrey Ratcliffe

    Thanks for the update. Does that mean that I can close this?

     
    • Joachim Breitner

      Yes, I think so. Thanks!

      01.05.2023 11:53:47 Jeffrey Ratcliffe ra28145@users.sourceforge.net:

      Thanks for the update. Does that mean that I can close this?


      [bugs:#418][https://sourceforge.net/p/gscan2pdf/bugs/418/] regression in test t/357_unpaper_rtl.t

      Status: open
      Group: v1.0_(example)
      Created: Thu Apr 20, 2023 01:39 PM UTC by Florian Brandes
      Last Updated: Fri Apr 28, 2023 08:48 AM UTC
      Owner: nobody

      Hi,

      there seems to be a regression in gscan2pdf-2.13.2:

      *t/356_unpaper_corrupt_image.t ................. ok
      t/357_unpaper_rtl.t ........................... 2023/04/20 04:01:01 [image2 @ 0x448700] Encoder did not produce proper pts, making some up.
      [image2 @ 0x448700] The specified filename '/build/KL5kTVnNCi/vlO74czl2x.pnm' does not contain an image sequence pattern or a pattern is invalid.
      [image2 @ 0x448700] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
      [image2 @ 0x452940] The specified filename '/build/KL5kTVnNCi/JbUyV_hVUO.pnm' does not contain an image sequence pattern or a pattern is invalid.
      [image2 @ 0x452940] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
      convert: negative or zero image size `/build/KL5kTVnNCi/YfgegFM53e.pnm' @ error/resize.c/ResizeImage/3743.
      *** unhandled exception in callback:
      *** "convert" unexpectedly returned exit value 1 at t/357_unpaper_rtl.t line 63.
      *
      The full build log is available at https://hydra.nixos.org/build/216769307/nixlog/1

      Versions:
      unpaper-7.0.0 imagemagick-7.1.1-7

      It seems the build succeeded with imagemagick-7.1.1-6 which would suggest a regression due to an update of imagemagick.


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/gscan2pdf/bugs/418/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #418

  • Jeffrey Ratcliffe

    • status: open --> closed-invalid
     

Log in to post a comment.

MongoDB Logo MongoDB