Hugin crashes on startup

On trying to start the hugin panorama tool:

$ hugin

(hugin:141415): Gtk-CRITICAL **: 16:11:19.638: gtk_widget_set_size_request: assertion 'height >= -1' failed
.
.
.
(hugin:141415): Gtk-CRITICAL **: 16:11:19.834: 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
Aborted (core dumped)

(all but first and last assertion fails removed as they all look pretty much the same).

I have hugin installed from the repo’s and it appears to be updated at the last update set, relevant info:

$ pacman -Qi hugin
Name            : hugin
Version         : 2021.0.0-4
Packager        : Antonio Rojas <arojas@archlinux.org>
Build Date      : Fri 08 Jul 2022 06:56:31 BST
Install Date    : Mon 18 Jul 2022 11:41:31 BST

$ pacman -Q wxwidgets-gtk3 
wxwidgets-gtk3 3.2.0-2

Is this possibly another wxwidgets issue needing an expedited update to the -3 build? Otherwise are there any ideas.

There is an XML log file generated in /tmp, but it doesn’t look that useful without debugging symbols in the libraries.

The console output pointed me to this Hugin 2021.0.0-4 crashes after wxgtk3 update - Error initialising GLEW / Pacman & Package Upgrade Issues / Arch Linux Forums second comment.
It seems it crashes the same regardless the wxwidgets-gtk3 version … No solutions so far, except using the appimage.

Hi, any news or solution in this topic?

In the link to Arch Linux Forum the solution is to use comunity’s glew.
I have installed hugin 2021.0.0-5 (community) and glew 2.2.0-3 (extra).

Error output is:

(hugin:3649): Gtk-CRITICAL **: 19:53:09.173: gtk_widget_set_size_request: assertion 'height >= -1' failed
(hugin:3649): Gtk-CRITICAL **: 19:53:09.188: gtk_widget_set_size_request: assertion 'height >= -1' failed
.
.
.
(hugin:3649): Gtk-CRITICAL **: 19:53:09.228: gtk_widget_set_size_request: assertion 'height >= -1' failed
/usr/share/hugin/data/plugins/woa.py
   CAT:Control Points
   NAM:Warped Overlap Analysis
   fails @api-max
/usr/share/hugin/data/plugins/top_five.py
   CAT:Control Points
   NAM:keep 5 CPs per image pair
   fails @api-max
ERROR: 19:53:09.438445 (/build/hugin/src/hugin-2021.0.0/src/hugin1/hugin/GLViewer.cpp:133) SetUpContext(): Error initialising GLEW: Unknown error.
Speicherzugriffsfehler (Speicherabzug geschrieben)

Although the assertion fails are still there, hugin does now start up successfully.

Hugin works for me again without doing anything - magic self-healing :slight_smile: