Hugin exits when adding controil point in cp editor

175 views
Skip to first unread message

Cristian Marchi

unread,
Sep 15, 2024, 11:37:49 AM9/15/24
to hugin and other free panoramic software
Hi, I'm using hugin compiled from latest revision from hg. When I'm in the cp editor, and I add a control point in the left image, hugin suddenly exits before finding the corresponding cp in the right image.
Starting hugin from command line, I can't see any log or error message.

Thanks for any help

T. Modes

unread,
Sep 15, 2024, 12:28:02 PM9/15/24
to hugin and other free panoramic software
Hi,

I can't reproduce the issue here. I can add cp from the left and also from the right image.

Could you post a screenshot before the exit?
Also what type of images are these? Rectilinear, fisheye, …? What field of view.

Cristian Marchi

unread,
Sep 15, 2024, 12:41:27 PM9/15/24
to hugin and other free panoramic software
I've tried to revert back to previous revision reaching rev. 8600 from more than a year ago and the problem is still here. I remember in the past I had not this problem so I think it's specific of my system. I'm using Ubuntu 24.04. I'll try to completely remove hugin and install it back.

Thanks

Cristian Marchi

unread,
Sep 23, 2024, 1:15:02 PM9/23/24
to hugin and other free panoramic software

Hi, 
I've experimented a bit with this problem. I found out it is related to images dimension: I loaded a couple of overlapping images from my Canon camera in original size (3456x2304px) and when i try to add cp in the cp tab, Hugin exits. next is an image of teh last thing I see before the program completely close)
Just before exiting.png

If I reduce the size of both images (I used gimp to resize to 1200x1800px), now I can normally add cp in hugin:
Normal behavior.png

Any idea?
Thanks for any help

T. Modes

unread,
Sep 23, 2024, 3:07:14 PM9/23/24
to hugin and other free panoramic software
Hi,

cri....@gmail.com schrieb am Montag, 23. September 2024 um 19:15:02 UTC+2:

Hi, 
I've experimented a bit with this problem. I found out it is related to images dimension: I loaded a couple of overlapping images from my Canon camera in original size (3456x2304px) and when i try to add cp in the cp tab, Hugin exits. next is an image of teh last thing I see before the program completely close)

Any idea?

No, sorry. I tested with my images, which are even bigger (5184x3888) and don't get any problems.

Could you post the pto file with the 2 images?
And please post also a screenshot for the cp editor settings in the preferences. Then I can try to reproduce it.

Thomas

Thanks for any help

Cristian Marchi

unread,
Sep 28, 2024, 7:30:12 AM9/28/24
to hugin and other free panoramic software
Hi Thomas,
here are the cp preferences
CP editor Settings.png
CP detetctor.png

I also attach the pto files. Today hugin is exiting with 1200x1800px images too, but working with 800x1200px (IMG_7691-IMG_7692-SMALL.pto) I was able to manually add a control point i the cp tab

The assistant finds cp between images without any problem
IMG_7691-IMG_7692-BIG.pto
IMG_7691-IMG_7692-SMALL.pto

T. Modes

unread,
Sep 29, 2024, 9:41:46 AM9/29/24
to hugin and other free panoramic software
Hi Cristian,


cri....@gmail.com schrieb am Samstag, 28. September 2024 um 13:30:12 UTC+2:
Hi Thomas,
here are the cp preferences
I see nothing special. That's all the default settings.
When using your pto file it works for me (with dummy images). No crash, the cps are added. No matter if I use the small or big variant.
So it is very strange, that is crashing for you with different resolutions and this changes from day to day.

Thomas

Cristian Marchi

unread,
Oct 1, 2024, 11:47:18 AM10/1/24
to hugin and other free panoramic software
Yes, very strange...I reverted back to hugin (2023 release) from ubuntu 24.04 snap store and it keeps crashing. Running it from terminal I get these messages

hugin

(hugin:14194): Gtk-CRITICAL **: 17:37:30.493: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:14194): Gtk-CRITICAL **: 17:37:30.515: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:14194): Gtk-CRITICAL **: 17:37:30.556: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:14194): Gtk-CRITICAL **: 17:37:30.557: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:14194): Gtk-CRITICAL **: 17:37:30.558: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:14194): Gtk-CRITICAL **: 17:37:30.558: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:14194): Gtk-CRITICAL **: 17:37:30.558: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:14194): Gtk-CRITICAL **: 17:37:30.561: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:14194): Gtk-CRITICAL **: 17:37:30.561: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:14194): Gtk-CRITICAL **: 17:37:30.562: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:14194): Gtk-CRITICAL **: 17:37:30.563: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:14194): Gtk-CRITICAL **: 17:37:30.563: gtk_widget_set_size_request: assertion 'height >= -1' failed
/usr/share/hugin/data/plugins/top_five.py
   CAT:Control Points
   NAM:keep 5 CPs per image pair
   fails @api-max
/usr/share/hugin/data/plugins/woa.py
   CAT:Control Points
   NAM:Warped Overlap Analysis
   fails @api-max

(hugin:14194): Gtk-CRITICAL **: 17:37:34.189: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(hugin:14194): Gtk-CRITICAL **: 17:37:34.189: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(hugin:14194): Gtk-CRITICAL **: 17:37:34.189: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(hugin:14194): Gtk-CRITICAL **: 17:37:34.189: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(hugin:14194): Gtk-CRITICAL **: 17:37:34.190: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(hugin:14194): Gtk-CRITICAL **: 17:37:34.190: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
Warning: Directory Canon has an unexpected next pointer; ignored.
Warning: Directory Canon has an unexpected next pointer; ignored.


The red ones seems to appear when it crashes or just before

T. Modes

unread,
Oct 1, 2024, 1:51:27 PM10/1/24
to hugin and other free panoramic software
Hi Cristian,

cri....@gmail.com schrieb am Dienstag, 1. Oktober 2024 um 17:47:18 UTC+2:
(hugin:14194): Gtk-CRITICAL **: 17:37:34.189: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
<snip>
I think the first ones can be ignored.
Warning: Directory Canon has an unexpected next pointer; ignored.
Warning: Directory Canon has an unexpected next pointer; ignored.
This could be the culprit.
Could you provide sample images?
Otherwise check which exiv2 version (and maybe libjpeg/vigra version) are used in your programs.

Thomas

Cristian Marchi

unread,
Oct 1, 2024, 3:26:41 PM10/1/24
to hugin and other free panoramic software
Thanks Thomas, here are the two images used to test:

About versions, I should have these installed by default in Ubuntu 24.04:
libexiv2 version 0.27.6
libjpeg version 8.2.2
libvigraimpex version 1.11.1


David W. Jones

unread,
Oct 2, 2024, 10:37:46 PM10/2/24
to hugin-ptx
No problems here in Debian Bookworm with Hugin 2023.0.0.548f2a905b6a.
The libexiv2 and libvigraimpex versions are the same, but Bookworm only
has libs called "libjpeg62-turbo", version 2.1.5. I don't know if that's
the same or not.

--

--
David W. Jones
gnome...@gmail.com
wandering the landscape of god
http://dancingtreefrog.com
My password is the last 8 digits of π.

T. Modes

unread,
Oct 3, 2024, 12:25:15 PM10/3/24
to hugin and other free panoramic software
Hi Cristian,

cri....@gmail.com schrieb am Dienstag, 1. Oktober 2024 um 21:26:41 UTC+2:
Thanks Thomas, here are the two images used to test:

thanks for test images. I'm getting the same warning as you, but no crash.
I tried several variants, but all worked fine here.
During testing a found another bug and fixed it - this affects only the right mouse button release.

As David has written, it works also for him. So I don't know what other settings on your system could interacting with Hugin (maybe some setting regard mouse clicks??)

Thomas

Cristian Marchi

unread,
Oct 7, 2024, 11:52:42 AM10/7/24
to hugin and other free panoramic software
Thanks for trying. I've tried to modify some mouse options in ubuntu settings, but nothing changed. I really have no idea what's causing it

Cristian Marchi

unread,
Oct 12, 2024, 11:02:23 AM10/12/24
to hugin and other free panoramic software
Last update: today I tried to login in ubuntu 24.04 with Xorg, and hugin is working as expected!! So the problem is related to Wayland

T. Modes

unread,
Oct 12, 2024, 12:53:18 PM10/12/24
to hugin and other free panoramic software
Hi Cristian,

cri....@gmail.com schrieb am Samstag, 12. Oktober 2024 um 17:02:23 UTC+2:
Last update: today I tried to login in ubuntu 24.04 with Xorg, and hugin is working as expected!! So the problem is related to Wayland

in this case you could try to set the environment variable GDK_BACKEND to x11 and then run Hugin
GDK_BACKEND=x11 hugin
If this fixes your issue, then you can recompile Hugin with adding -DUSE_GDKBACKEND_X11=on to the CMake command.
This will automatically set GDK_BACKEND when starting Hugin.

Thomas

Cristian Marchi

unread,
Oct 16, 2024, 12:50:42 PM10/16/24
to hugin and other free panoramic software
Thanks Thomas,
tried the command "GDK_BACKEND=x11 hugin" under wayland but the problem is still there. At least it works with Xorg
Reply all
Reply to author
Forward
0 new messages