← Back to team overview

hugin-devs team mailing list archive

[Bug 1824267] [NEW] Could not stitch preview. Precondition violation!

 

Public bug reported:

I was stitching images and everything was going fine with Panorama
Preview, when suddenly I started getting error dialogs instead of a
preview:

Could not stitch preview.
Error:  Precondition violation!
BasicImage::upperLeft(): image must have non-zero size.
(/Users/niklas/development/release/hugin/mac/ExternalPrograms/repository/include/vigra/basicimage.hxx:928)
One cause could be an invalid or missing image file.

I tried reopening the file, upgrading from the 2016 version to
2019.0.0.a369cbe55179 (Mac), removing images and nothing helped.

Comparing with a working file, I found a workaround. I edited my .pto file and changed line #3:
p f2 w3000 h1 v23  E2.30282 R0 n"TIFF_m c:LZW r:CROP"
I changed "h1" to "h261" and the project then worked fine.

Changing back to "h1" repeatably caused the problem to happen. My guess
is that Hugin doesn't like a horizontal size of 1 and this triggers the
precondition violation.

I don't know what specifically triggered this problem; I was clicking
"center" and "fit" on Panorama Preview when things went bad.

The symptoms are similar to bug 679273, but I was not using
stereographic projection.

There's probably not enough information here to fix the bug. I'm mainly
filing this so the workaround will show up if anyone else encounters the
problem.

** Affects: hugin
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/1824267

Title:
  Could not stitch preview. Precondition violation!

Status in Hugin:
  New

Bug description:
  I was stitching images and everything was going fine with Panorama
  Preview, when suddenly I started getting error dialogs instead of a
  preview:

  Could not stitch preview.
  Error:  Precondition violation!
  BasicImage::upperLeft(): image must have non-zero size.
  (/Users/niklas/development/release/hugin/mac/ExternalPrograms/repository/include/vigra/basicimage.hxx:928)
  One cause could be an invalid or missing image file.

  I tried reopening the file, upgrading from the 2016 version to
  2019.0.0.a369cbe55179 (Mac), removing images and nothing helped.

  Comparing with a working file, I found a workaround. I edited my .pto file and changed line #3:
  p f2 w3000 h1 v23  E2.30282 R0 n"TIFF_m c:LZW r:CROP"
  I changed "h1" to "h261" and the project then worked fine.

  Changing back to "h1" repeatably caused the problem to happen. My
  guess is that Hugin doesn't like a horizontal size of 1 and this
  triggers the precondition violation.

  I don't know what specifically triggered this problem; I was clicking
  "center" and "fit" on Panorama Preview when things went bad.

  The symptoms are similar to bug 679273, but I was not using
  stereographic projection.

  There's probably not enough information here to fix the bug. I'm
  mainly filing this so the workaround will show up if anyone else
  encounters the problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/hugin/+bug/1824267/+subscriptions


Follow ups