<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 15 Dec 2014, at 08:25, Robert C. Helling <<a href="mailto:helling@atdotde.de" class="">helling@atdotde.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="font-family: GillSans; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Paul,</div><div class="" style="font-family: GillSans; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""></div><div class="" style="font-family: GillSans; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">unless I hear otherwise I would currently assume this issue is there for your binary/your build only. Could you make sure you are indeed building the latest master and nothing else? Perhaps do a make distclean and git reset —hard origin/master first and then start again with make.</div></div></blockquote></div><div class=""><br class=""></div><div class="">Cleaned, reset, rebuilt, still getting it. Haven’t pulled today yet.</div><br class=""><div class="">When I wrote the original mail I though this would be easy to reproduce and fix for people with better knowledge of the code Seeing as nobody else was able to replicate it, I decided to dig deeper. Maybe it’s something to do with my preferences or user setup, so best debugged on my machine. I could use some help understanding what I’m seeing though. (Tried on IRC, but my time zone is probably too early for people)</div><div class=""><br class=""></div><div class=""></div><blockquote type="cite" class=""><div class=""><span style="font-family: GillSans;" class="">Hmm, unless this is originating from uninitialized memory, a cylinder number -1 could only come from </span><span class="" style="font-family: GillSans; font-size: 11px;">dive->oxygen_cylinder_index (or the corresponding function </span><b class="" style="font-family: GillSans; color: rgb(195, 55, 32); font-size: 11px;">get_cylinder</b><span class="" style="font-family: GillSans; font-size: 11px;">_idx_by_use() if no oxygen cylinder is defined. In the place you quote, however, since commit 13934b0f this should have been caught a few lines above. Are you sure you have that commit?</span></div></blockquote><div class=""><br class=""></div><div class="">It is coming from that function (<span class=""><font face="GillSans" class=""><span style="font-size: 11px;" class="">get_cylinder_idx_by_use)</span></font></span>, but it looks like it’s happening when it’s looking for a diluent in explicit_first_cylinder(). As the only gas in the gas list is listed as an "OC-gas”, it can’t find a diluent. Hence a -1 return value, which then gets populated into the plot_info by check_gas_change_events.</div><div class=""><br class=""></div><div class="">The only way I can spot of getting a gas set as DILUENT is by reading a file. I wonder if, as I’ve read no files, nothing is set as DILUENT. Either that or I’ve missed a code path.</div><div class=""><br class=""></div><div class="">Does any of that make sense?</div><div class=""><br class=""></div><div class="">Oh, and… </div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""></blockquote></div><div class=""><blockquote type="cite" style="font-family: monospace;" class="">On 15 Dec 2014, at 15:22, Dirk Hohndel <<a href="mailto:dirk@hohndel.org" class="">dirk@hohndel.org</a>> wrote:<br class=""><br class=""><blockquote type="cite" class="" style="font-family: Inconsolata;">I am running without any other dives in the system. Starting Subsurface doesn’t load any dives automatically for me. I think that’s because I don’t save my dives in the default location as I have them in a synced folder across machines.<br class=""></blockquote><br class="">So simply edit the preferences and point them at the XML file in that<br class="">folder...<br class=""></blockquote></div><div class=""><br class=""></div><div class="">I wasn’t really stating that as a problem (whilst testing things I prefer to not load my real dive log), just something that might be related to the crash. I’ll let the other response I got slide.</div><div class=""><br class=""></div><div class="">Paul</div></body></html>