selecting the dives a user wants to import

Miika Turkia miika.turkia at gmail.com
Fri Jan 9 02:10:31 PST 2015


On Thu, Jan 8, 2015 at 10:24 PM, Dirk Hohndel <dirk at hohndel.org> wrote:

> Since Tomaz was on a tear of productivity, I figured I'd point him at
> another BIG thing that was on my "we really should do that" list since
> forever...
>
> After you download dives from a divecomputer, you are presented with a
> quick list of dives and can pick which ones to import into your dive list.
> By default all are selected - so for the common case it's just one more
> click. But it gives a ton of flexibility to the user...
>
> I just pushed the current state to master and will do daily builds soon.
> It's not perfect, yet (duh, it's less than 2 days of work), but I think it
> gives a great idea of what's possible.
>
> As usual, feedback is very welcome.
>

Crash when trying to import. Vyper was slow on getting to transfer mode.
Unfortunately no debugger attached. Console gave the following:
---8<---
[3.807747] ERROR: Failed to receive the answer. [in suunto_vyper2.c:207
(suunto_vyper2_device_packet)]
[4.478353] ERROR: Unexpected answer header. [in suunto_vyper2.c:213
(suunto_vyper2_device_packet)]
[5.149138] ERROR: Unexpected answer header. [in suunto_vyper2.c:213
(suunto_vyper2_device_packet)]
[5.149215] ERROR: Failed to read the version info. [in suunto_vyper2.c:144
(suunto_vyper2_device_open)]
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted
---8<---


But my trusty Stinger gave a new crash, so here is some more details:
---8<---
[1.899591] ERROR: Failed to receive the answer. [in suunto_vyper.c:231
(suunto_vyper_transfer)]
[Thread 0x7fff65f59700 (LWP 31974) exited]
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

Program received signal SIGABRT, Aborted.
0x00007ffff43cfbb9 in __GI_raise (sig=sig at entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56    ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff43cfbb9 in __GI_raise (sig=sig at entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff43d2fc8 in __GI_abort () at abort.c:89
#2  0x00007ffff4ac56b5 in __gnu_cxx::__verbose_terminate_handler() ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff4ac3836 in ?? () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff4ac3863 in std::terminate() ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff4ac3aa2 in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007ffff4ac3f8d in operator new(unsigned long) ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00007ffff4ac4029 in operator new[](unsigned long) ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#8  0x0000000000499a00 in DiveImportedModel::setImportedDivesIndexes (
    this=0x631fd00, first=640, last=639)
    at ../qt-ui/downloadfromdivecomputer.cpp:636
#9  0x000000000049898d in DownloadFromDCWidget::onDownloadThreadFinished (
    this=0x7fffffffd0d0) at ../qt-ui/downloadfromdivecomputer.cpp:407
#10 0x0000000000588e97 in DownloadFromDCWidget::qt_static_metacall (
    _o=0x7fffffffd0d0, _c=QMetaObject::InvokeMetaMethod, _id=6,
    _a=0x7fff58002fa0) at .moc/moc_downloadfromdivecomputer.cpp:279
#11 0x00007ffff521722e in QObject::event(QEvent*) ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007ffff6339efc in QWidget::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ffff62fec8c in QApplicationPrivate::notify_helper(QObject*,
QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
...
---8<---


I have an empty line on the divelog list, but one dive is missing. Thus I
am able to download only 2 of todays 3 dives.


It would be great if canceling download would allow me to select dives from
the ones that were already loaded. (As I have to force load of all dives to
get all 3 dives out of my Vyper, I naturally tried to speed things up and
canceled the load prematurely.)


I am not able to select dives to be downloaded using the checkbox, only
clicking elsewhere ticks/unticks the selection.


miika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150109/1f0214af/attachment.html>


More information about the subsurface mailing list