<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Dec 7, 2014 at 5:09 PM, Anton Lundin <span dir="ltr"><<a href="mailto:glance@acc.umu.se" target="_blank">glance@acc.umu.se</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"><span class="">On 07 December, 2014 - Miika Turkia wrote:<br>
</span><span class=""><br>
> ><br>
> > I might be able to take a look at this as well.<br>
> ><br>
><br>
> Maybe not. When I try to load the settings of my Stinger, I get a<br>
> segmentation fault.<br>
><br>
<br>
</span>Could you share a stack trace / or other fault report?<br>
<br>
The code _should_ work against the Stinger, but it's probably only me<br>
that have tested it and thats against my Vyper, where it works great.<br></blockquote><div><br></div><div>Sure, thing. The problem arises when there is communication trouble with the device. The crash occurs in different attempts in dc_device_read.<br><br>Program received signal SIGSEGV, Segmentation fault.<br>[Switching to Thread 0x7fff5effd700 (LWP 5738)]<br>0x0000000000569528 in ReadSettingsThread::run (this=0x13eb950) at ../configuredivecomputerthreads.cpp:198<br>198                rc = dc_device_read(m_data->device, SUUNTO_VYPER_NUMBEROFDIVES, data, 2);<br>(gdb) bt<br>#0  0x0000000000569528 in ReadSettingsThread::run (this=0x13eb950) at ../configuredivecomputerthreads.cpp:198<br>#1  0x00007ffff2d3232f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4<br>#2  0x00007ffff2aa1182 in start_thread (arg=0x7fff5effd700) at pthread_create.c:312<br>#3  0x00007ffff21c3efd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111<br><br></div><div>Steps to reproduce (note that there is no need to have the device attached, this simulates dirty contacts that I apparently had):<br></div><div>- Hook a USB-serial adapter to laptop<br></div><div>- Try to retrieve details from Vyper class device<br></div><div>- After two-three attempts I get a crash<br></div><div><br><br><br></div><div>Other notes after cleaning the contacts on my DC:<br></div><div>- I get a red text stating: This feature is not yet available... and at the same time black text states: Dive computer details read succesfully.<br><br></div><div>I'm not able to update dive count on Stinger (GUI issue? or not supported?)<br></div><div>Computer model should probably not be changeable on the GUI.<br></div><div>I have dive alarm at 80 minutes, but shown value on GUI is 999min.<br></div><div><br></div><div>miika<br></div></div></div></div>