Hi,
sorry for not reporting the bug via Launchpad, but after several attempts to
create an Ubuntu One
account I gave up.
However, I get a seg fault when starting hugin on two different machines.
Details
-------
hugin version 2021.0.0-4
Arch Linux; up-to-date as of today, July 18th
custom kernel 5.18.3
Steps to reproduce
------------------
To reproduce the crash it is sufficient on my machines to unset the env
variable XDG_DATA_HOME, so:
$ unset XDG_DATA_HOME
$ hugin
(...)
(hugin:3437): Gtk-CRITICAL **: 21:30:24.701: 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
/usr/share/hugin/data/plugins/woa.py
CAT:Control Points
NAM:Warped Overlap Analysis
fails @api-max
zsh: IOT instruction (core dumped) hugin
Investigation
-------------
Using gdb I got this backtrace:
Thread 1 "hugin" received signal SIGSEGV, Segmentation fault.
0x00007ffff531f9b4 in hugin_utils::GetUserAppDataDir[abi:cxx11]() () at
/usr/users/presnitz/hugin/src/hugin-2021.0.0/src/hugin_base/hugin_utils/utils.cpp:475
475 if (strlen(xdgDataDir) == 0)
(gdb) bt
#0 0x00007ffff531f9b4 in hugin_utils::GetUserAppDataDir[abi:cxx11]() ()
at
/usr/users/presnitz/hugin/src/hugin-2021.0.0/src/hugin_base/hugin_utils/utils.cpp:475
#1 0x00005555556d0fb6 in MainFrame::MainFrame(wxWindow*, HuginBase::Panorama&)
(this=0x555555f15dc0, parent=0x0, pano=...)
at
/usr/users/presnitz/hugin/src/hugin-2021.0.0/src/hugin1/hugin/MainFrame.cpp:475
#2 0x00005555556bb901 in huginApp::OnInit() (this=0x555555b4a590)
at
/usr/users/presnitz/hugin/src/hugin-2021.0.0/src/hugin1/hugin/huginApp.cpp:372
#3 0x00005555556bfc15 in wxAppConsoleBase::CallOnInit() (this=0x555555b4a590)
at /usr/include/wx-3.2/wx/app.h:93
#4 0x00007ffff670efe2 in wxEntry(int&, wchar_t**) () at
/usr/lib/libwx_baseu-3.2.so.0
#5 0x00005555556ba87d in main(int, char**) (argc=1, argv=0x7fffffffd318)
at
/usr/users/presnitz/hugin/src/hugin-2021.0.0/src/hugin1/hugin/huginApp.cpp:152
This gave me the hint that the seg fault is connected with XDG_DATA_HOME. And
yes, after defining
XDG_DATA_HOME (empty string or some sensible value) hugin starts as expected :)
So, a workaround for my setup is:
$ export XDG_DATA_HOME=""
$ hugin
Additional Information
----------------------
For the sake of completeness I attach hugin's error-report xml file and list my
version numbers of
the packages, Arch says that hugin directly depends on:
xwidgets-gtk3 3.2.0-3
boost-libs 1.79.0-1
libtiff 4.4.0-1
libpano13 2.9.21-1
libjpeg-turbo 2.1.3-2
libpng 1.6.37-3
openexr 3.1.5-1
vigra 1.11.1.r67+g093d57d1-3
exiv2 0.27.5-3
glew 2.2.0-3
sqlite 3.39.1-1
lcms2 2.13.1-1
lapack 3.10.1-1
fftw 3.3.10-3
glu 9.0.2-3
libxi 1.8-1
libxmu 1.1.3-3
python 3.10.5-1
lensfun-git 0.3.3.815-1
enblend-enfuse 4.2.r1524+h4c30a326b3f4-2
Best regards,
Manuel.
--
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/hugin-ptx/202207182139460682.0015867F%40gateway.core.mpy.ch.
<?xml version="1.0" encoding="UTF-8"?>
<report version="1.0" kind="exception">
<system description="Linux 5.18.3 x86_64"/>
<modules>
<module path="[heap]" address="0x55878fdab000" size="0x1205000"/>
<module path="/SYSV00000000" address="0x7fd772494000" size="0x800000"/>
<module path="[stack]" address="0x7ffca7b76000" size="0x22000"/>
<module path="[vdso]" address="0x7ffca7be6000" size="0x2000"/>
</modules>
<stack>
<frame level="0" function="GenerateReport(wxDebugReport::Context)" offset="0x12a" address="0x7fd789116c9a" module="/usr/lib/hugin/libhuginbasewx.so.0.0"/>
<frame level="1" offset="0x1ad226" address="0x7fd789dad226" module="/usr/lib/libwx_baseu-3.2.so.0"/>
<frame level="2" offset="0x3e8e0" address="0x7fd78823e8e0" module="/usr/lib/libc.so.6"/>
<frame level="3" function="hugin_utils::GetUserAppDataDir[abi:cxx11]()" offset="0x48" address="0x7fd788aface8" module="/usr/lib/hugin/libhuginbase.so.0.0"/>
<frame level="4" offset="0x2595bb" address="0x55878edd95bb" module="hugin"/>
<frame level="5" offset="0xc75b9" address="0x55878ec475b9" module="hugin"/>
<frame level="6" function="wxEntry(int&, wchar_t**)" offset="0x92" address="0x7fd789d0efe2" module="/usr/lib/libwx_baseu-3.2.so.0"/>
<frame level="7" offset="0xaab90" address="0x55878ec2ab90" module="hugin"/>
<frame level="8" offset="0x29290" address="0x7fd788229290" module="/usr/lib/libc.so.6"/>
<frame level="9" function="__libc_start_main" offset="0x8a" address="0x7fd78822934a" module="/usr/lib/libc.so.6"/>
<frame level="10" offset="0xbd3e5" address="0x55878ec3d3e5" module="hugin"/>
</stack>
</report>