Crash when adding dive [was: add dive implementation pushed]

Henrik Brautaset Aronsen subsurface at henrik.synth.no
Sun Sep 22 02:37:32 UTC 2013


Henrik Brautaset Aronsen wrote:
> Dirk Hohndel wrote:
>> On Sat, 2013-09-21 at 08:11 -0700, Dirk Hohndel wrote:
>>> On Sat, 2013-09-21 at 11:56 +0200, Henrik Brautaset Aronsen wrote:
>>>> Dirk Hohndel wrote:
>>>>> This uses part of the planner widget to allow the user to actually
>>>>> create a profile for their dive.
>>>> Cool!  Some issues:
>>>>
>>>> (1) when I double click one of the nodes on the graph, I'm unable to
>>>> exit that dialog (seehttp://imgbin.org/images/15123.png) or save the
>>>> dive.
>>> Simply pick one of the values and the dialog goes away. Yes, Escape
>>> should close it, too. And of course you should be able to add your own
>>> gas, not just one of the three standard gases.
>>
>> Added support for ESC to close that popup dialog
>
> Cool, that works!  Pressing ESC again stores the profile, it seems.  
> And pressing OK crashes subsurface.
>
> Documented in this screencast: 
> http://screencast-o-matic.com/watch/cIQ3QwVm12

Ah, that thing crashes even though I just select Add Dive and then 
directly OK.  DBUS is not involved this time:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   subsurface                        0x000000010f96a685 
MainTab::acceptChanges() + 5213 (maintab.cpp:424)
1   subsurface                        0x000000010fa4f51c 
MainTab::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 
224 (maintab.moc.cpp:85)
2   QtCore                            0x00000001127f40f9 
QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2265
3   QtGui                             0x0000000111d2f0bd 
QDialogButtonBoxPrivate::_q_handleButtonClicked() + 253
4   QtGui                             0x0000000111d2f83d 
QDialogButtonBox::qt_static_metacall(QObject*, QMetaObject::Call, int, 
void**) + 125
5   QtCore                            0x00000001127f40f9 
QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2265
6   QtGui                             0x0000000111f98c60 
QAbstractButton::clicked(bool) + 64
7   QtGui                             0x0000000111d00dd2 
QAbstractButtonPrivate::emitClicked() + 50
8   QtGui                             0x0000000111d00c72 
QAbstractButtonPrivate::click() + 226
9   QtGui                             0x0000000111d018d9 
QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 89
10  QtGui                             0x0000000111a1df44 
QWidget::event(QEvent*) + 308
11  QtGui                             0x0000000111d017fd 
QAbstractButton::event(QEvent*) + 205
12  QtGui                             0x0000000111d94ac1 
QPushButton::event(QEvent*) + 177
13  QtGui                             0x00000001119d120f 
QApplicationPrivate::notify_helper(QObject*, QEvent*) + 255
14  QtGui                             0x00000001119d2f9d 
QApplication::notify(QObject*, QEvent*) + 2749
15  QtCore                            0x00000001127dd041 
QCoreApplication::notifyInternal(QObject*, QEvent*) + 113
16  QtGui                             0x00000001119d1b5e 
QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, 
QWidget*, QWidget**, QPointer<QWidget>&, bool) + 446
17  QtGui                             0x0000000111982821 
qt_mac_handleMouseEvent(NSEvent*, QEvent::Type, Qt::MouseButton, 
QWidget*, bool) + 1025
18  com.apple.AppKit                  0x00007fff87be75d6 -[NSWindow 
sendEvent:] + 7053
19  QtGui                             0x000000011197a1de -[QCocoaWindow 
sendEvent:] + 110
20  com.apple.AppKit                  0x00007fff87be3644 -[NSApplication 
sendEvent:] + 5761
21  QtGui                             0x000000011197edae 
-[QNSApplication sendEvent:] + 78
22  com.apple.AppKit                  0x00007fff87af921a -[NSApplication 
run] + 636
23  QtGui                             0x0000000111987963 
QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 
1219
24  QtCore                            0x00000001127da5b5 
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 501
25  QtCore                            0x00000001127dd57e 
QCoreApplication::exec() + 206
26  subsurface                        0x000000010f955a59 run_ui() + 9 
(qt-gui.cpp:136)
27  subsurface                        0x000000010f94f346 main + 1174 
(main.cpp:59)
28  libdyld.dylib                     0x00007fff830ec7e1 start + 1

Henrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130922/fb276e98/attachment-0001.html>


More information about the subsurface mailing list