<div dir="ltr"><div>For what it's worth, the visible issue <i>appears</i> to be caused by a bogus initial pressure reading from the first sample after the air source was switched. Applying the following diff to the XML and re-importing the dive seems to get everything looking back to normal.<br><br><div style="margin-left:40px"><span style="font-family:monospace,monospace">$ diff -u test.xml test-fixed.xml <br>--- test.xml    2016-11-06 08:07:47.592116207 -0600<br>+++ test-fixed.xml    2016-11-10 18:26:17.323748662 -0600<br>@@ -182,7 +182,7 @@<br>   <sample time='41:30 min' depth='10.954 m' pressure='48.953 bar' /><br>   <sample time='41:45 min' depth='10.649 m' /><br>   <sample time='42:00 min' depth='10.516 m' pressure='47.919 bar' /><br>-  <sample time='42:15 min' depth='10.287 m' pressure='336.464 bar' sensor='1' /><br>+  <sample time='42:15 min' depth='10.287 m' sensor='1' /><br>   <sample time='42:30 min' depth='9.754 m' /><br>   <sample time='42:45 min' depth='10.363 m' /><br>   <sample time='43:00 min' depth='10.516 m' /></span><br></div><br></div>As mentioned previously, there was no transmitter present on the pony regulator, so I don't believe it should have included the pressure attribute in any event. No idea how it managed to get there in the first case.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 6, 2016 at 9:09 AM, Adric Norris <span dir="ltr"><<a href="mailto:landstander668@gmail.com" target="_blank">landstander668@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I've encountered a bit of an oddity with reported air pressure on my most recent dive, which I believe can only be explained by a bug of some sort... no idea if it resides in my Oceanic VT4.1 dive computer, Subsurface, or libdivecomputer. Specifically, the graph displays an impossible ending pressure. I've confirmed that my computer has the <a href="http://www.oceanicworldwide.com/us/support/software/" target="_blank">current firmware</a> (2B03) loaded, for what that's worth, and I'm using the Linux appimage of Subsurface 4.5.95-25-g02389c95cb59.<br><br></div>My dive computer supports four air sources, although prior to the dive in question I had never made use of more than one. On this occasion, however, I was practicing deployment and use of a 19cuft pony bottle near the end of the dive... since I was expecting to use it for around 10 minutes, I decided to switch my computer to the second air source as well. In hindsight this wasn't really necessary, as the pony regulator doesn't currently have a transmitter, but it seemed reasonable at the time. Both tanks were filled with ordinary air, so there was no difference in the air mix configured for each source on my dive computer, and had a starting pressure of approximately 3000 PSI (200 bar). The main tank (the one with the transmitter) ended with about 700 PSI (48 bar).<br><br></div>Air usage on the graph looks normal up until the time the air source was switched, at which point it displays a pressure of 4880 PSI (336 bar) for the remainder of the dive. Although it makes sense that it would show a constant pressure (due to the lack of a transmitter), I don't understand how it could possibly come up with the displayed value (especially knowing the ending value of the main tank).<br><div><div><div><div><br></div><div>I've made the following files available at <a href="https://drive.google.com/open?id=0B-3AX-51D0csZ3I1dFNkR2FUYmM" target="_blank">https://drive.google.com/open?<wbr>id=0B-3AX-<wbr>51D0csZ3I1dFNkR2FUYmM</a>:<br><ul><li><b>subsurface-libdivecomputer-<wbr>dump.bin</b> - libdivecomputer dumpfile covering around 70 dives (since I had to force a re-download), but the dive in question is the very last item.</li><li><b>subsurface-libdivecomputer-<wbr>dump.log</b> - libdivecomputer logfile covering the same "import" where the dumpfile was captured.</li><li><b>subsurface.log</b> - libdivecomputer logfile, covering import of only the dive in question (although I still had to force a re-download).</li><li><b>subsurface-terminal.out</b> - Output produced by running Subsurface from the terminal.</li><li><b>text.xml</b> - Subsurface XML file containing just the dive in question. Please note that it was saved immediately after import, with no manual changes having been made.</li></ul><p>On my real logbook, saved to cloud storage, I did manually add a second tank with the relevant capacity and start/end pressures. This didn't make any apparent difference to the graph, however.</p><p>At this point I have <b>not</b> tried to reproduce the issue under the latest official release (4.5.6). I'll be happy to do so if you like, however, so please let me know.</p><p></p>Thanx!<span class="HOEnZb"><font color="#888888"><br clear="all"></font></span></div><span class="HOEnZb"><font color="#888888"><div><br>-- <br><div class="m_-8300543711506408265gmail_signature"><div dir="ltr">"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." -Douglas Adams<br></div></div>
</div></font></span></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." -Douglas Adams<br></div></div>
</div>