Qt version first impressions

Henrik Brautaset Aronsen subsurface at henrik.synth.no
Tue Sep 17 13:38:59 UTC 2013


On Tue, Aug 27, 2013 at 10:20 PM, Dirk Hohndel <dirk at hohndel.org> wrote:

> > 1- Download a dive from my Pretel. Subsurface just can't see the
> > Pretel whereas MacDive downloaded the dive without any trouble. I have
> > successfully installed both libdivecomputer and subsurface from
> > sources.
>
> The Petrel is a Bluetooth dive computer. So the process is a little more
> complicated (and I am not 100% sure this has been tested with the Qt
> version on a Mac, yet).
>


I just tried that myself.  It worked, but I had to specify the device
manually as /dev/cu.Petrel-SerialPort.  It took a long time, though, so I
just sent a separate mail about that.


> 2- Try to import files … clicker the option under File and the
> > application crashed.
>
> I tried this just last week and it worked fine for me. Again, can you
> give more details how one could reproduce that?
>


The same thing happened to me.  Stacktrace attached.  It also complains
about dbus, I guess that's because of the super verbose marble package in
Macports:

  Dynamic session lookup supported but failed: launchd did not provide a
socket path, verify that org.freedesktop.dbus-session.plist is loaded!
  startkdeinitlock(9681)/kdeui (KIconLoader): Error: standard icon theme
"oxygen" not found!

  QIODevice::setTextModeEnabled: The device is not open
  Dynamic session lookup supported but failed: launchd did not provide a
socket path, verify that org.freedesktop.dbus-session.plist is loaded!
  klauncher(9686) kdemain: No DBUS session-bus found. Check if you have
started the DBUS server.
  kdeinit4: Communication error with launcher. Exiting!
  Segmentation fault: 11


 > 3- Try to add a dive. I just added the Location and Buddy. Did not
> > realized you have to go to other tabs to add more info, clicked Save
> > and now unable to edit that dive. Not intuitive. Why not put all the
> > related information of the dive into one window? How can I edit that
> > dive without reading the manual? In my opinion that should be very
> > intuitive.
>
> What happens when you try to edit the dive?
>


Similar things happen here.  If I start Subsurface with no dives, and
choose "Add dive", I can edit the Location/Buddy fields, but the
"save"/"undo" buttons doesn't show up.  If I click somewhere else the edits
are gone. And I seem to be unable to enter the edit mode of that first dive.


>
> > 4- After being unable to edit the dive I clicked Open … don't know for
> > what it is but the application crashed again.
>


Same here.  Stacktrace and dbus error messages are similar to the previous
one.



No, it shouldn't be THAT bad. Yes, there are a few rough edges, still,
> but I have used the current Subsurface on my last dive trip and things
> worked fairly well. So there's something in your build that is causing
> this.
>
> Henrik, any ideas?
>


I haven't had time to dig, but it seems there are several bugs at play
here.  The dbus thing is an obvious showstopper, but I think the edit first
dive issue is something else.

Cheers,
Henrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130917/f69df131/attachment.html>
-------------- next part --------------
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libkio.5.dylib                	0x0000000115be2bb5 KFileDialog::KFileDialog(KUrl const&, QString const&, QWidget*, QWidget*) + 101
1   libkio.5.dylib                	0x0000000115bea578 KFileDialogQtOverride::getOpenFileNames(QWidget*, QString const&, QString const&, QString const&, QString*, QFlags<QFileDialog::Option>) + 184
2   QtGui                         	0x000000010cc787e2 QFileDialog::getOpenFileNames(QWidget*, QString const&, QString const&, QString const&, QString*, QFlags<QFileDialog::Option>) + 82
3   subsurface                    	0x000000010a8228b0 MainWindow::on_actionImport_triggered() + 1864 (mainwindow.cpp:171)
4   subsurface                    	0x000000010a8db592 MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 246 (mainwindow.moc.cpp:123)
5   subsurface                    	0x000000010a8db9cf MainWindow::qt_metacall(QMetaObject::Call, int, void**) + 123 (mainwindow.moc.cpp:194)
6   QtCore                        	0x000000010d66c2fc QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2780
7   QtGui                         	0x000000010c83f63a QAction::activate(QAction::ActionEvent) + 266
8   QtGui                         	0x000000010c7f5951 -[QCocoaMenuLoader qtDispatcherToQAction:] + 65
9   com.apple.AppKit              	0x00007fff93c81959 -[NSApplication sendAction:to:from:] + 342
10  com.apple.AppKit              	0x00007fff93db736c -[NSMenuItem _corePerformAction] + 406
11  com.apple.AppKit              	0x00007fff93db705a -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 133
12  com.apple.AppKit              	0x00007fff93aa420f -[NSMenu _internalPerformActionForItemAtIndex:] + 36
13  com.apple.AppKit              	0x00007fff93aa4097 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 135
14  com.apple.AppKit              	0x00007fff93db0165 NSSLMMenuEventHandler + 342
15  com.apple.HIToolbox           	0x00007fff8ef48d1a DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1206
16  com.apple.HIToolbox           	0x00007fff8ef481e9 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 410
17  com.apple.HIToolbox           	0x00007fff8ef5dfc9 SendEventToEventTarget + 40
18  com.apple.HIToolbox           	0x00007fff8ef94ca9 SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 443
19  com.apple.HIToolbox           	0x00007fff8ef39a21 SendMenuCommandWithContextAndModifiers + 59
20  com.apple.HIToolbox           	0x00007fff8ef399d3 SendMenuItemSelectedEvent + 254
21  com.apple.HIToolbox           	0x00007fff8ef3985f FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 94
22  com.apple.HIToolbox           	0x00007fff8ef158bb MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 605
23  com.apple.HIToolbox           	0x00007fff8ef14ec8 _HandleMenuSelection2 + 565
24  com.apple.AppKit              	0x00007fff93c6f8c6 _NSHandleCarbonMenuEvent + 245
25  com.apple.AppKit              	0x00007fff93b91a9f _DPSNextEvent + 2073
26  com.apple.AppKit              	0x00007fff93b90df2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
27  com.apple.AppKit              	0x00007fff93b881a3 -[NSApplication run] + 517
28  QtGui                         	0x000000010c7fe963 QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1219
29  QtCore                        	0x000000010d6525b5 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 501
30  QtCore                        	0x000000010d65557e QCoreApplication::exec() + 206
31  subsurface                    	0x000000010a7e7b99 run_ui() + 9 (qt-gui.cpp:133)
32  subsurface                    	0x000000010a7e1c16 main + 1174 (main.cpp:59)
33  libdyld.dylib                 	0x00007fff972937e1 start + 1



More information about the subsurface mailing list