hugin-devs team mailing list archive
-
hugin-devs team
-
Mailing list archive
-
Message #03791
[Bug 792896] Re: Fast Preview Hangs or Crashes since 2011.0
Ok, here is some more information.
I removed the nightly and instead added the official hugin/next
repository from launchpad. Everything that I write now refers to this
version. To retrieve the backtrace I did the following:
$ sudo apt-get build-dep hugin
$ apt-get source hugin
$ cd hugin-2012.0.0~beta1+dfsg
$ geany debian/rules
and comment the line dh_strip around line 162 to build it with debugging symbols
$ dpkg-buildpackage -us -uc -nc
Build it and create .deb packages
$ sudo dpkg -i ../hugin*.deb
Install them
$ gdb hugin
(gdb) run
provole the crash (just open the fast preview and if it does not yert
crash on its own then enable the Overview, this will surely crash it)
(gdb) backtrace
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) backtrace
#0 0x00000000 in ?? ()
#1 0x081e91ac in OverviewOutlinesTool::draw (this=0x8c198a8)
at /home/bernd/hugin-2012.0.0~beta1+dfsg/src/hugin1/hugin/OverviewOutlinesTool.cpp:194
#2 0x081e348b in PanosphereOverviewToolHelper::AfterDrawImagesBack (this=0x91d6e10)
at /home/bernd/hugin-2012.0.0~beta1+dfsg/src/hugin1/hugin/ToolHelper.cpp:706
#3 0x081876e9 in GLPanosphereOverviewRenderer::Redraw (this=0x8ffe7c0)
at /home/bernd/hugin-2012.0.0~beta1+dfsg/src/hugin1/hugin/GLRenderer.cpp:312
OverviewOutlinesTool.cpp:194 looks like this:
glBlendEquation(GL_FUNC_ADD);
comment it (because GL_FUNC_ADD is the default anyways)
// glBlendEquation(GL_FUNC_ADD);
now I built the package with this modification (I have no idea how to
convince dpkg-buildpackage to just recompile what was modified, I can
either clean everything with -Tclean and rebuild from scratch or it
won't compile anything at all, probably just a file I would need to
touch but I don't know which one)
The patched version works like a charm, it will not crash and I can even
*use* the Overview globe (which I have seen for the first time today and
which is a very nice feature), everything is working perfectly well!
Developers: I can reproduce the crash everytime and I have now set up
the environment to build from source (based on this launchpad source
package) and If you want me to insert debugging code to catch this
exception and log various stuff of interest on my system to investigate
what exactly is going on then please tell me, send me a patch (post it
here) and I will apply and test and report back.
--
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/792896
Title:
Fast Preview Hangs or Crashes since 2011.0
Status in Hugin - Panorama Tools GUI:
Fix Released
Bug description:
EDIT (August 6, 2011): summarized known information
*WORKAROUND FOR USERS*: disable the Overview
1- start Hugin
2- load a project
3- go to the Fast Preview Window. don't touch anything else but described below as this could trigger the bug
4- hit the button Show/Hide to hide the Overview
5- quit Hugin
Now Hugin should perform well.
*AFFECTED SYSTEMS*
- CPU: all systems with more than one thread, that is multi-core CPUs as well as single-core CPUs with hyperthreading.
- Operating Systems: due to the different implementations of threading and OpenGL on different platform, some systems are more prone to error than others. Mac OS X seems to be the least affected. Windows seems to be the most affected.
*AFFECTED VERSIONS*
- All versions of Hugin since the introduction of the Overview in the Fast Preview are affected. That is, all versions after revision 4808:8c577b320714 2011-01-09 12:21:18
- This includes the final releases of 2011.0.0 as well as all beta/candidate releases of 2011.2.0
*SUMMARY FOR DEVELOPERS / BUG HUNTERS*
This is most likely a threading issue. Lukáš' hypothesis: "a race
condition in OpenGL calls, when OGL is called by separate threads from
both overview and fast preview. The reason is that OpenGL is not
thread-safe and it can cause various problems when used within multi-
threaded application."
Run 'valgrind --tool=helgrind hugin' and try to reproduce the error to
produce a useful backtrace like
https://bugs.launchpad.net/hugin/+bug/792896/+attachment/2253077/+files
/valgrind-out.txt
*ORIGINAL BUG REPORT BELOW FOR COMPLETION:*
Upgraded from 2010.4 to 2011.0.0 and it has hung 3 times in about 15
sessions. All three hangs happened while doing the same thing.....
new session, load images, load a lens profile, set the canvas size
(Calculate optimal size), save-as and save profile then click on GL
(fast preview) button. Fast preview window comes up, shows anchor
image and then hangs.
Is not reproducible. Running 2011.0.0.0fd3e119979c built by Matthew
Petroff on 64-bit Win7.
To manage notifications about this bug go to:
https://bugs.launchpad.net/hugin/+bug/792896/+subscriptions
References