<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Benjamin,<div class=""><br class=""></div><div class="">Here's an update...</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 7, 2018, at 6:57 AM, Dirk Hohndel <<a href="mailto:dirk@hohndel.org" class="">dirk@hohndel.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jul 7, 2018, at 12:00 AM, Benjamin <<a href="mailto:nystire@gmail.com" class="">nystire@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Subsurface starts up and gives me a red bar at the bottom of the screen saying "Unmatched action 'hash' ", but that could really be my setup, given that Dirk just saved me from a bad data file :) (Thank you, Dirk)</div></div></blockquote><div class=""><br class=""></div><div class="">No, I see the same thing here. I'm looking into this.</div></div></div></div></blockquote><div><br class=""></div>This is fixed in master.</div><div><br class=""></div><div><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">Running using Subsurface -v -v</div><div class="">When trying to import from my Petrel 2, I choose "classic mode" and get the following messages on the CLI:</div><div class="">




<span class=""></span>










<span class=""></span><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: 'Andale Mono'; color: rgb(40, 254, 20); background-color: rgba(0, 0, 0, 0.901961);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Starting download from<span class="gmail-Apple-converted-space">  </span>BT</span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: 'Andale Mono'; color: rgb(40, 254, 20); background-color: rgba(0, 0, 0, 0.901961);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Starting the thread 0</span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: 'Andale Mono'; color: rgb(40, 254, 20); background-color: rgba(0, 0, 0, 0.901961);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">IOBluetooth works only on the main thread or a thread with a running CFRunLoop</span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: 'Andale Mono'; color: rgb(40, 254, 20); background-color: rgba(0, 0, 0, 0.901961);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Failed to connect to device<span class="gmail-Apple-converted-space">  </span>00:13:43:0C:56:29 . Device state<span class="gmail-Apple-converted-space">  </span>QBluetoothSocket::UnconnectedState . Error:<span class="gmail-Apple-converted-space">  </span>QBluetoothSocket::SocketError( -2 )</span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: 'Andale Mono'; color: rgb(40, 254, 20); background-color: rgba(0, 0, 0, 0.901961);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">qt_ble_open( 00:13:43:0C:56:29 )</span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: 'Andale Mono'; color: rgb(40, 254, 20); background-color: rgba(0, 0, 0, 0.901961);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">failed to connect to the controller<span class="gmail-Apple-converted-space">  </span>00:13:43:0C:56:29 with error "Remote device cannot be found"</span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: 'Andale Mono'; color: rgb(40, 254, 20); background-color: rgba(0, 0, 0, 0.901961);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Finishing download thread: "Unable to open 00:13:43:0C:56:29 Shearwater (Petrel 2)"</span></div>


<br class=""></div></div></div></blockquote><div class=""><br class=""></div>That's interesting. The message on IOBluetooth is a new one - I have noticed that Qt5.11 gives better error messages in a few other situations as well. Also something to investigate.</div><div class="">I assume that you are able to download from your Petrel 2 with the release version of Subsurface 4.8?</div><div class="">Which version of macOS are you on? I created an issue on GitHub to track this: <a href="https://github.com/Subsurface-divelog/subsurface/issues/1472" class="">https://github.com/Subsurface-divelog/subsurface/issues/1472</a></div></div></div></blockquote><div><br class=""></div><div>If you look at this closely you see that it first fails BT because the device is in UnconnectedState and then it tries BLE and that fails as well.</div><div>Now, the BLE part of the Petrel 2 has been failing for us for a while now.</div><div>I played here with the BT download for a little bit and this is my result:</div><div><br class=""></div><div>If I pair my Petrel (Linus currently has my Petrel 2, so I tested with the BT-only Petrel) with my Mac with system tools, </div><div>and then click on '...' in order to open the BT dialog and search for the dive computer, select the Petrel and then Save it, </div><div>and then click Download, </div><div>wait for macOS to pop up another pairing request, enter '0000' as pin and OK, </div><div>then it still shows the same IOBluetooth error, but it downloads successfully. </div><div>And I can show that same behavior with both stock Subsurface 4.8.0 (Qt5.10.1) and with the test binary I created based on Qt5.11.1.</div><div><br class=""></div></div>Can you reproduce the successful download, following these steps?</div><div class=""><br class=""></div><div class="">/D</div></body></html>