<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 6 September 2015 at 21:20, Rick Walsh <span dir="ltr"><<a href="mailto:rickmwalsh@gmail.com" target="_blank">rickmwalsh@gmail.com</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"><div dir="ltr">Hi,<br><br>I get a segfault (on Fedora 22), if I hit 'Download' without first selecting 'Choose Bluetooth download mode'.  The Vendor (Shearwater), Dive computer (Petrel) and Device or mount point (the Petrel's MAC address), are automatically entered from the last time I downloaded dives.  The dive computer was in upload mode, but I suspect that's irrelevant.  I ran under gdb and got the backtrace.<br><br>(gdb) run<br>Starting program: /home/rick/src/subsurface/build/subsurface <br>Missing separate debuginfos, use: dnf debuginfo-install glibc-2.21-5.fc22.x86_64 glibc-2.21-7.fc22.x86_64<br>[Thread debugging using libthread_db enabled]<br>Using host libthread_db library "/lib64/libthread_db.so.1".<br>Map theme file does not exist: ""<br>QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory<br>[New Thread 0x7fff79ffb700 (LWP 2590)]<br>[0.000099] ERROR: No such file or directory (2) [in serial_posix.c:159 (serial_open)]<br>[0.000178] ERROR: Failed to open the serial port. [in custom_serial.c:69 (dc_serial_native_open)]<br>[New Thread 0x7fff62354700 (LWP 2610)]<br>[New Thread 0x7fff78ff9700 (LWP 2600)]<br>[New Thread 0x7fff7a7fc700 (LWP 2599)]<br>[New Thread 0x7fff797fa700 (LWP 2589)]<br>[New Thread 0x7fff7affd700 (LWP 2583)]<br>[New Thread 0x7fff7b7fe700 (LWP 2582)]<br>[New Thread 0x7fff7bfff700 (LWP 2581)]<br>[New Thread 0x7fff80ccc700 (LWP 2580)]<br>[New Thread 0x7fffc19e0700 (LWP 2579)]<br>[New Thread 0x7fffc8cbd700 (LWP 2578)]<br>[New Thread 0x7fffd7a67700 (LWP 2577)]<br><br>Program received signal SIGSEGV, Segmentation fault.<br>[Switching to Thread 0x7fff62354700 (LWP 2610)]<br>0x00000000007286b3 in shearwater_common_open (device=device@entry=0x7fff4c005320, context=context@entry=0x7fff4c003190, name=name@entry=0x248e720 "00:13:43:0E:6B:D0")<br>    at shearwater_common.c:52<br>52              rc = serial_configure (device->serial->port, 115200, 8, SERIAL_PARITY_NONE, 1, SERIAL_FLOWCONTROL_NONE);<br>Missing separate debuginfos, use: dnf debuginfo-install bzip2-libs-1.0.6-14.fc22.x86_64 cyrus-sasl-lib-2.1.26-22.fc22.x86_64 cyrus-sasl-lib-2.1.26-23.fc22.x86_64 ...(lots more libraries listed - I haven't installed the debug packages)<br>(gdb) bt 30<br>#0  0x00000000007286b3 in shearwater_common_open (device=device@entry=0x7fff4c005320, context=context@entry=0x7fff4c003190, <br>    name=name@entry=0x248e720 "00:13:43:0E:6B:D0") at shearwater_common.c:52<br>#1  0x000000000071ebe3 in shearwater_petrel_device_open (out=out@entry=0x7fff62353cd8, context=context@entry=0x7fff4c003190, <br>    name=name@entry=0x248e720 "00:13:43:0E:6B:D0") at shearwater_petrel.c:102<br>#2  0x00000000006fa8d3 in dc_device_open (out=0x7fffffffd328, context=0x7fff4c003190, descriptor=0x7deb98 <g_descriptors+3768>, name=0x248e720 "00:13:43:0E:6B:D0")<br>    at device.c:158<br>#3  0x00000000006aae50 in do_libdivecomputer_import (data=0x7fffffffd2f0) at /home/rick/src/subsurface/libdivecomputer.c:955<br>#4  0x00000000005ee1f8 in DownloadThread::run (this=0xf76dd0) at /home/rick/src/subsurface/qt-ui/downloadfromdivecomputer.cpp:617<br>#5  0x00007ffff03ee54e in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5<br>#6  0x00007ffff57b9555 in start_thread () from /lib64/libpthread.so.0<br>#7  0x00007fffefaf5b9d in clone () from /lib64/libc.so.6<br><br><br><br>If I select 'Choose Bluetooth download mode', run a Bluetooth scan, and select my dive computer, everything works as it should.<br><br>If it is necessary to use the Bluetooth selection dialogue before downloading, rather than remembering from last time, we should alert the user instead of segfaulting.<br><br>I just got home from a weekend of collecting data in deep holes on sheep and dairy farms (the fun part of "testing Subsurface").  I'll try the Windows beta next, and see if I can crash it in the same way.<br></div></blockquote><div><br></div><div>I just tested the Windows binary (4.5 Beta 1) on Windows 8.1, and got a similar crash.  When using the Bluetooth selection dialogue it works correctly again.  The Windows crash info reads:<br><br>Problem signature:<br>  Problem Event Name:    APPCRASH<br>  Application Name:    subsurface.exe<br>  Application Version:    0.0.0.0<br>  Application Timestamp:    55e85bd8<br>  Fault Module Name:    subsurface.exe<br>  Fault Module Version:    0.0.0.0<br>  Fault Module Timestamp:    55e85bd8<br>  Exception Code:    c0000005<br>  Exception Offset:    001da9e9<br>  OS Version:    6.3.9600.2.0.0.768.101<br>  Locale ID:    3081<br>  Additional Information 1:    5861<br>  Additional Information 2:    5861822e1919d7c014bbb064c64908b2<br>  Additional Information 3:    a10f<br>  Additional Information 4:    a10ff7d2bb2516fdc753f9c34fc3b069<br><br>Read our privacy statement online:<br>  <a href="http://go.microsoft.com/fwlink/?linkid=280262">http://go.microsoft.com/fwlink/?linkid=280262</a><br><br>If the online privacy statement is not available, please read our privacy statement offline:<br>  C:\Windows\system32\en-US\erofflps.txt<br><br><br></div><div>The output on the command prompt is:<br>C:\Program Files (x86)\Subsurface><br>Map theme file does not exist: ""<br>Found 126 GeoNode object LEAKS!<br>No GeoNode object leak!<br>Found 99 GeoNode object LEAKS!<br>Set the current dive site: 0<br>No GeoNode object leak!<br>[0.000076] ERROR: The system cannot find the file specified (2) [in serial_win32.c:152 (serial_open)]<br>[0.000342] ERROR: Failed to open the serial port. [in custom_serial.c:69 (dc_serial_native_open)]<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br>Cheers,<br><br>Rick<br></div>
</blockquote></div><br></div></div>