Comment 82 for bug 792896

Revision history for this message
Bernd Kreuss (prof7bit) wrote :

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.