On 10 February 2014 06:58, Miika Turkia <[email protected]> wrote:
> I was able to reproduce with debug and normal builds. I start subsurface and
> close default log file immediately. The graph stays on screen, even though
> log is closed (with debug build, I first need to switch to the new profile
> tab, standard is in that tab by default). Now I just hit ctrl-i for import.
> And crash occurs.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000000004f7a75 in DiveGasPressureItem::paint (this=0xee49c0,
> painter=0x7fffffffbbe0, option=0xed9258, widget=0xe0c600) at
> ../qt-ui/profile/diveprofileitem.cpp:384
> 384                pen.setBrush(getSacColor(entry->sac, d->sac));
> (gdb) bt
> #0  0x00000000004f7a75 in DiveGasPressureItem::paint (this=0xee49c0,
> painter=0x7fffffffbbe0, option=0xed9258, widget=0xe0c600) at
> ../qt-ui/profile/diveprofileitem.cpp:384
> #1  0x00007ffff3f3d90f in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
> #2  0x00007ffff3f3e6c5 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
> ...
> #50 0x00007ffff39ffcb6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
> #51 0x00007ffff30e230f in
> QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from
> /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> #52 0x00007ffff30e2605 in
> QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
> /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> #53 0x00007ffff30e7deb in QCoreApplication::exec() () from
> /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> #54 0x0000000000447f00 in run_ui () at ../qt-gui.cpp:165
> #55 0x0000000000439194 in main (argc=1, argv=0x7fffffffdf68) at
> ../main.cpp:54
>

quick patch for that.

lubomir
--

Attachment: 0001-Profile2-Prevent-a-crash-if-no-dives-are-present.patch
Description: Binary data

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to