Hugin crashes when creating mask

Bug #1295798 reported by zarl
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Hugin
Expired
Undecided
Unassigned

Bug Description

2014.0.0-beta1 built by Matthieu DESILE
Mac OS X 10.8.5

In "Masks" tab I select an image file, click on "Add new mask" and add a couple of points to create a polygon. As soon as I try to set the last point (right click) the image and all points disappear and Hugin quits.

The crash report is attached.

Tags: windows macos
Revision history for this message
zarl (carl-einem) wrote :
Revision history for this message
tmodes (tmodes) wrote :

It works here on Windows. The crash happens inside a wxWidgets function. As a workaround you could try to disable the display of the active masks.

tags: added: macos
Revision history for this message
zarl (carl-einem) wrote :

That's the first time I see a remark about disabling the display of active masks. How can I actively deactivate that drawing behaviour?

Now I just try to recreate this error in OS X 10.6 and while (more or less accidently) clicking on the "Crop" sub tab inside the "Masks" tab I get this dialog:

WXWidgets Debug Alert
"../src/generic/listctrl.cpp(3243): assert "litem >= 0 && (size_t)litem < GetItemCount()" failed in SetItemState(): invalid list ctrl item index in SetItem
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.

After clicking [Cancel] I proceed with creating a new mask and now it works.

And no matter if I restart Hugin (2014.0.0-beta1 built by Matthieu DESILE) and directly start with creating masks in 10.6.8 it works. No crash with this system version on the same Mac hardware.

Revision history for this message
tmodes (tmodes) wrote :

> How can I actively deactivate that drawing behaviour?
Mask tab, under options.

So the status is: it crashes in Mac OS 10.8, but works in Mac OS 10.6?

Revision history for this message
zarl (carl-einem) wrote :

Thanks, I found the option.

On 10.6 with this option activated I still get no crashes but as soon as I add even a small exclude mask all of the image is dimmed, not only the masked area.

I'll switch over to 10.8 and will report what happens there using the same project.

Revision history for this message
zarl (carl-einem) wrote :

This is on 10.8

These crashes seem to be related to the "Show extend of active masks and crop" option (and the wxWidget alerts) as suggested by Thomas.

Upon enabling / disabling the option Hugin showed that WXWidgets Debug Alert that I already mentioned. I dismissed with "Cancel" to suppress further warnings and now I can add masks no matter if I select or deselect "Show extend of active masks and crop". Looks like I have a workaround.

However also on 10.8 with that option selected Hugin displays the whole image dimmed even if just a small part is masked.

Revision history for this message
Sybren Stüvel (sybren-stuvel) wrote :

I can confirm this also happens on Windows 7 running Hugin 2014 RC4. When I double-click to add the last point to the mask, Hugin crashes.

Operating System: Windows 7 (build 7601, Service Pack 1), 64-bit edition
Architecture: 64 bit
Free memory: 4194303 kiB
Active Codepage: 1252 (Western European Windows)

Hugin
Version: 2014.0.0.51ff237f209e built by Matthew Petroff
Path to resources: C:\Program Files (x86)\Hugin/share/hugin/xrc/
Path to data: C:\Program Files (x86)\Hugin/share/hugin/data/
Path to public lensfun database: C:\Program Files (x86)\Hugin/share/lensfun
Path to user lensfun database: C:\Users\Sybren\AppData\Local\lensfun

Libraries
wxWidgets: 3.0.0.0
libpano13: 2.9.19
Boost: 1.55.0
Exiv2: 0.24.0
Lensfun: 0.2.8.0

Revision history for this message
Sybren Stüvel (sybren-stuvel) wrote :

PS: This is with "Show extent of active masks and crop" disabled in the Mask tab -> Options tab.
When I enabled it, and then selected an image, Hugin crashed.
When I re-opened Hugin, that option was still enabled. It then allowed me to select an image and create a mask, without crashing.

Revision history for this message
Sybren Stüvel (sybren-stuvel) wrote :

PPS: PTBatcherGUI.exe now crashes as soon as I try to stitch the project:

Unhandled exception at 0x576C6FD7 (huginbase.dll) in PTBatcherGUI.exe: 0xC0000005: Access violation reading location 0xFFFFFFFF.

When I remove the mask from the project, PTBacherGUI.exe starts just fine.

tags: added: windows
Changed in hugin:
status: New → Confirmed
Revision history for this message
tmodes (tmodes) wrote :

I can't reproduce the issue.
The masks works fine here.

Could you provide the pto file where it crashed?

Revision history for this message
Sybren Stüvel (sybren-stuvel) wrote :

This file shows the problem, at least on my machine:
Windows 7 64-bit
Hugin 2014.0.0.51ff237f209e built by Matthew Petroff

Load the file, switch to the mask tab, and scroll to photo #36 (SBRN1953.jpg). If I create a mask there and confirm the last point by double-clicking, Hugin crashes. I hope you can recreate the problem without needing all 84 photos.

Revision history for this message
Sybren Stüvel (sybren-stuvel) wrote :

Installing all updates to Windows 7 changed the behaviour a little bit. I can now create the mask without crashing Hugin. Saving the file seems to work, but now Hugin crashes upon opening it. I've attached the PTO.

Revision history for this message
tmodes (tmodes) wrote :

I can't reproduce the crash with your files. It opens fine with 2014.0 without any crash. So I don't know why it crashes at your side.

But I see another issue with your project: the assignment of lens and stacks is very strange. For each stack the first image is assigned another lens, but all other images of the stack are linked with the first image. This can have unseen consequences. So use the same lens for all images in this project.

Revision history for this message
Sybren Stüvel (sybren-stuvel) wrote :

Thanks for the feedback. I've created the PTO myself, using some Python code to automatically generate it from a bunch of files. I guess I messed up there. I'll recreate it and try again.

Revision history for this message
tmodes (tmodes) wrote :

Please test 2016.2 version and report back if it is fixed.

Changed in hugin:
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Hugin because there has been no activity for 60 days.]

Changed in hugin:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.