<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jan 8, 2015 at 10:24 PM, Dirk Hohndel <span dir="ltr"><<a href="mailto:dirk@hohndel.org" target="_blank">dirk@hohndel.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Since Tomaz was on a tear of productivity, I figured I'd point him at<br>
another BIG thing that was on my "we really should do that" list since<br>
forever...<br>
<br>
After you download dives from a divecomputer, you are presented with a<br>
quick list of dives and can pick which ones to import into your dive list.<br>
By default all are selected - so for the common case it's just one more<br>
click. But it gives a ton of flexibility to the user...<br>
<br>
I just pushed the current state to master and will do daily builds soon.<br>
It's not perfect, yet (duh, it's less than 2 days of work), but I think it<br>
gives a great idea of what's possible.<br>
<br>
As usual, feedback is very welcome.<br></blockquote><div><br></div><div>Crash when trying to import. Vyper was slow on getting to transfer mode. Unfortunately no debugger attached. Console gave the following:<br>---8<---<br>[3.807747] ERROR: Failed to receive the answer. [in suunto_vyper2.c:207 (suunto_vyper2_device_packet)]<br>[4.478353] ERROR: Unexpected answer header. [in suunto_vyper2.c:213 (suunto_vyper2_device_packet)]<br>[5.149138] ERROR: Unexpected answer header. [in suunto_vyper2.c:213 (suunto_vyper2_device_packet)]<br>[5.149215] ERROR: Failed to read the version info. [in suunto_vyper2.c:144 (suunto_vyper2_device_open)]<br>terminate called after throwing an instance of 'std::bad_alloc'<br>  what():  std::bad_alloc<br>Aborted<br>---8<---<br><br><br></div><div>But my trusty Stinger gave a new crash, so here is some more details:<br>---8<---<br>[1.899591] ERROR: Failed to receive the answer. [in suunto_vyper.c:231 (suunto_vyper_transfer)]<br>[Thread 0x7fff65f59700 (LWP 31974) exited]<br>terminate called after throwing an instance of 'std::bad_alloc'<br>  what():  std::bad_alloc<br><br>Program received signal SIGABRT, Aborted.<br>0x00007ffff43cfbb9 in __GI_raise (sig=sig@entry=6)<br>    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56<br>56    ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.<br>(gdb) bt<br>#0  0x00007ffff43cfbb9 in __GI_raise (sig=sig@entry=6)<br>    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56<br>#1  0x00007ffff43d2fc8 in __GI_abort () at abort.c:89<br>#2  0x00007ffff4ac56b5 in __gnu_cxx::__verbose_terminate_handler() ()<br>   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6<br>#3  0x00007ffff4ac3836 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6<br>#4  0x00007ffff4ac3863 in std::terminate() ()<br>   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6<br>#5  0x00007ffff4ac3aa2 in __cxa_throw ()<br>   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6<br>#6  0x00007ffff4ac3f8d in operator new(unsigned long) ()<br>   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6<br>#7  0x00007ffff4ac4029 in operator new[](unsigned long) ()<br>   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6<br>#8  0x0000000000499a00 in DiveImportedModel::setImportedDivesIndexes (<br>    this=0x631fd00, first=640, last=639)<br>    at ../qt-ui/downloadfromdivecomputer.cpp:636<br>#9  0x000000000049898d in DownloadFromDCWidget::onDownloadThreadFinished (<br>    this=0x7fffffffd0d0) at ../qt-ui/downloadfromdivecomputer.cpp:407<br>#10 0x0000000000588e97 in DownloadFromDCWidget::qt_static_metacall (<br>    _o=0x7fffffffd0d0, _c=QMetaObject::InvokeMetaMethod, _id=6, <br>    _a=0x7fff58002fa0) at .moc/moc_downloadfromdivecomputer.cpp:279<br>#11 0x00007ffff521722e in QObject::event(QEvent*) ()<br>---Type <return> to continue, or q <return> to quit---<br>   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5<br>#12 0x00007ffff6339efc in QWidget::event(QEvent*) ()<br>   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5<br>#13 0x00007ffff62fec8c in QApplicationPrivate::notify_helper(QObject*, QEvent*)<br>    () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5<br>...<br>---8<---<br></div><div><br><br></div><div>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.<br><br><br></div><div>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.)<br><br><br></div><div>I am not able to select dives to be downloaded using the checkbox, only clicking elsewhere ticks/unticks the selection.<br><br></div><div><br></div><div>miika<br></div><div><br><br></div></div><br></div></div>