#551006 hugin: Hugin crashes at startup with "segmentation fault"

Package:
hugin
Source:
hugin
Description:
panorama photo stitcher - GUI tools
Submitter:
Stefano Bettelli
Date:
2026-08-08 02:53:01 UTC
Severity:
important
#551006#5
Date:
2009-10-14 21:18:51 UTC
From:
To:
As soon as I run the program "hugin", it displays the
main canvas then crashes. If "tip of the day" is enabled,
I can see the tip, but as soon as I close the info window
the program crashes. In both cases with "segmentation fault".
I suspect it has something to do with the libwxgtk library,
since I find the following message in /var/log/messages:

.... kernel: hugin[31242]: segfault at 1d8 ip
  00007f4ca2bb10ed sp 00007ffff48d0d00 error 4 in
  libwx_gtk2u_core-2.8.so.0.4.0[7f4ca29a7000+3ca000]

#551006#10
Date:
2009-10-15 16:53:05 UTC
From:
To:
[....]

Would you mind checking whether you can still reproduce this with
2009.2.0+dfsg-2 (available in experimental)?
cu andreas

#551006#15
Date:
2009-10-15 17:50:28 UTC
From:
To:
Yes, it does; I installed

  hugin_2009.2.0+dfsg-2_amd64.deb
  hugin-tools_2009.2.0+dfsg-2_amd64.deb
  hugin-data_2009.2.0+dfsg-2_all.deb
  libboost-thread1.40.0_1.40.0-2_amd64.deb

and observed the same behaviour
(segmentation fault). The most recent
release that does not seg-fault is

	0.7.0~svn3191+beta5-2

Stefano

#551006#20
Date:
2009-10-17 11:26:20 UTC
From:
To:
Does your testing include 0.7.0-2?

Could try to produce a backtrace?

gdb hugin
run
bt

thanks, cu andreas

#551006#25
Date:
2009-10-25 17:41:49 UTC
From:
To:
I am not Stefano, but I have the same problem an can produce the
following backtrace:

: Reading symbols from /usr/bin/hugin...(no debugging symbols found)...done.
: (gdb) run
: Starting program: /usr/bin/hugin
: [Thread debugging using libthread_db enabled]
:
: (hugin:15463): GLib-GObject-WARNING **: /tmp/buildd/glib2.0-2.22.2/gobject/gsignal.c:2387: instance `0xbef340' has no handler with id `129'
:
: (hugin:15463): GLib-GObject-WARNING **: /tmp/buildd/glib2.0-2.22.2/gobject/gsignal.c:2387: instance `0x8ce5b0' has no handler with id `56'
: MainFrame::RestoreLayoutOnNextResize()
:
: (hugin:15463): GLib-GObject-WARNING **: /tmp/buildd/glib2.0-2.22.2/gobject/gsignal.c:2387: instance `0xbef270' has no handler with id `13362'
:
: Program received signal SIGSEGV, Segmentation fault.
: 0x00007ffff5ac4942 in wxWindow::DoSetSize(int, int, int, int, int) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
: (gdb) bt
: #0  0x00007ffff5ac4942 in wxWindow::DoSetSize(int, int, int, int, int) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
: #1  0x00007ffff5ba4fb2 in wxGridSizer::SetItemBounds(wxSizerItem*, int, int, int, int) ()
:    from /usr/lib/libwx_gtk2u_core-2.8.so.0
: #2  0x00007ffff5ba6689 in wxFlexGridSizer::RecalcSizes() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
: #3  0x00007ffff5ba55b5 in wxBoxSizer::RecalcSizes() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
: #4  0x0000000000529c32 in GLPreviewFrame::panoramaChanged(PT::Panorama&) ()
: #5  0x000000000047c3d9 in PT::PanoramaObserver::panoramaChanged(HuginBase::PanoramaData&) ()
: #6  0x00007ffff7ab69c5 in HuginBase::Panorama::changeFinished(bool) () from /usr/lib/libhuginbase.so.0.0
: #7  0x0000000000472e74 in huginApp::OnInit() ()
: #8  0x00007ffff5f823b3 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
: #9  0x0000000000470062 in main ()

Deleting .hugin as an experiment did not help.  Rather than crashing at
startup for me, with an empty config it crashes after closing the tip of
the day (which I have disabled in my config).

#551006#30
Date:
2009-10-25 18:21:04 UTC
From:
To:
I actually found the problem.  I was running the fglrx driver without
the ATI proprietary libGL.  This does not work for all apps and after
installing fglrx-glx, the problem disappeared.

#551006#35
Date:
2009-10-26 07:37:44 UTC
From:
To:
Hello,

Andreas Bombe has experienced a similar problem and found this to be
the cause:

| I actually found the problem.  I was running the fglrx driver without
| the ATI proprietary libGL.  This does not work for all apps and after
| installing fglrx-glx, the problem disappeared.

Can this be related your crash, too?

thanks, cu andreas

#551006#40
Date:
2009-10-27 07:07:06 UTC
From:
To:
severity 551006 important
thanks

This bug is caused by m_parent in wxWindowGTK::DoSetSize being null.

See the backtrace; I can provide the coredump upon request.



Don Armstrong

#551006#47
Date:
2009-10-28 18:28:17 UTC
From:
To:
Hello,

could you provide some info on the system, especially regarding OpenGL
drivers? It boggles my mind that I do not see any sign of this bug
here, either on i386 or in the amd64 chroot. (Using Intel G33, i.e.
libgl1-mesa-glx, libgl1-mesa-dri)

thanks, cu andreas

#551006#52
Date:
2009-10-28 19:36:09 UTC
From:
To:

$ dpkg -l *glx*
ii  libgl1-mesa-glx 7.6-1...

but that's all just a red herring.

Most likely you're not using a tiling window manager, so
panoramaChanged doesn't get called at the same point. [This particular
segfault has nothing to do with openGL.] The reason it segfaults is
pretty simple; m_parent is NULL, and DoSetSize in libwx dereferences
the null pointer. It's most likely a bug in hugin somewhere that
results in m_parent being NULL.


Don Armstrong

#551006#59
Date:
2010-05-11 11:24:15 UTC
From:
To:
Here's a fun data point: If I run X in 16bpp mode, Hugin segfaults in
DoSetSize() just after the “align” step, every time (tried 5/5). If I run X
in 24bpp mode, however, everything is fine.

FWIW, I'm using bog-standard GNOME and Metacity, i945 with KMS. No tiling WM,
no non-free drivers.

/* Steinar */

#551006#64
Date:
2010-05-13 10:32:01 UTC
From:
To:
[...]

Hello,

it still does not crash for me with

startx -- -depth 16

Did you do something else to get 16bpp mode? This is on lenny, though.

cu andreas

#551006#69
Date:
2010-05-13 10:52:51 UTC
From:
To:
I changed the depth in xorg.conf from 24 to 16. I'm running sid.

/* Steinar */

#551006#78
Date:
2010-12-02 18:05:45 UTC
From:
To:
[...]

Hello,

I am sending this mail to the various people who were hit by this bug:

Could you you please check whether it is still reproducable in
2010.4.0+dfsg~beta1 [1]? If this is the case, does moving away
~/.hugin solve the issue?

thanks in advance, cu andreas

[1]
Available in experimental, backports for lenny (which require some
stuff from backports.org) are available on my personal site on
http://www.bebt.de/debian/dists/lenny/hugin-latest/

#551006#85
Date:
2011-10-14 11:30:59 UTC
From:
To:
I am experiencing this behaviour on a fresh install of sid.
  I am running it from a headless machine (i386) over ssh.

  hugin                        2011.2.0+dfsg-2

bt:
#0  0xb705ed53 in wxWindow::DoSetSize(int, int, int, int, int) () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#1  0xb713ee52 in wxSizerItem::SetDimension(wxPoint const&, wxSize const&)
() from /usr/lib/libwx_gtk2u_core-2.8.so.0
#2  0xb713e84e in wxBoxSizer::RecalcSizes() () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#3  0xb713cdb3 in wxSizer::Layout() () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#4  0xb713ec9b in wxSizer::SetDimension(int, int, int, int) () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#5  0xb714fcb8 in wxWindowBase::Layout() () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#6  0xb7172b1b in wxPanel::OnSize(wxSizeEvent&) () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#7  0xb72a47a8 in wxAppConsole::HandleEvent(wxEvtHandler*, void
(wxEvtHandler::*)(wxEvent&), wxEvent&) const ()
    from /usr/lib/libwx_baseu-2.8.so.0
#8  0xb73342aa in
wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&,
wxEvtHandler*, wxEvent&) ()
    from /usr/lib/libwx_baseu-2.8.so.0
#9  0xb733442b in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
() from /usr/lib/libwx_baseu-2.8.so.0
#10 0xb73347e1 in wxEvtHandler::ProcessEvent(wxEvent&) () from
/usr/lib/libwx_baseu-2.8.so.0
#11 0xb705ecc1 in wxWindow::DoSetSize(int, int, int, int, int) () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#12 0xb713ee52 in wxSizerItem::SetDimension(wxPoint const&, wxSize const&)
() from /usr/lib/libwx_gtk2u_core-2.8.so.0
#13 0xb713e84e in wxBoxSizer::RecalcSizes() () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#14 0xb713cdb3 in wxSizer::Layout() () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#15 0xb713ec9b in wxSizer::SetDimension(int, int, int, int) () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#16 0xb713ee87 in wxSizerItem::SetDimension(wxPoint const&, wxSize const&)
() from /usr/lib/libwx_gtk2u_core-2.8.so.0
#17 0xb713e7ab in wxBoxSizer::RecalcSizes() () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#18 0xb713cdb3 in wxSizer::Layout() () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#19 0xb713ec9b in wxSizer::SetDimension(int, int, int, int) () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#20 0xb713ee87 in wxSizerItem::SetDimension(wxPoint const&, wxSize const&)
() from /usr/lib/libwx_gtk2u_core-2.8.so.0

#551006#90
Date:
2018-06-09 22:13:00 UTC
From:
To:
Open Attached File for details....
Este mensaje y los ficheros adjuntos pueden contener información confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente y pueden estar protegidos por secreto profesional. Si usted recibe este correo electrónico por error, gracias por informar inmediatamente al remitente y destruir el mensaje. Al no estar asegurada la integridad de este mensaje sobre la red, Diputación de Málaga no se hace responsable por su contenido. Su contenido no constituye ningún compromiso para la Diputación de Málaga, salvo ratificación escrita por ambas partes. Aunque se esfuerza al máximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no será responsable de cualesquiera daños que puedan resultar de una transmisión de virus. This e-mail and the documents attached are confidential and intended solely for the addressess it may also be privileged. If you receive this e-mail in error, please no
 tify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, Diputacion de Malaga liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

#551006#95
Date:
2018-07-11 12:23:09 UTC
From:
To:
ARE YOU IN NEED OF LOAN @3% INTEREST RATE FOR BUSINESS AND PRIVATE
PURPOSES? IF YES:
FILL AND RETURN

Name: ===

Amount needed:===

Duration: ==

country ===

Purpose: ===

Mobile number

#551006#100
Date:
2024-07-07 23:14:47 UTC
From:
To:
Hello, We offer very fast loans from €3000 to €850,000 in all areas with an
available rate of 2%. If you are interested and serious, do not hesitate to
contact us privately for more details.