<div dir="ltr">Hi Robert,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On 21 August 2015 at 17:38, Robert C. Helling <span dir="ltr"><<a href="mailto:helling@atdotde.de" target="_blank">helling@atdotde.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><div style="word-wrap:break-word">Rick,<div><br><div><blockquote type="cite"><span><div>On 21 Aug 2015, at 01:49, Rick Walsh <<a href="mailto:rickmwalsh@gmail.com" target="_blank">rickmwalsh@gmail.com</a>> wrote:</div><br></span><span><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">However, I did get an error message in the red box at the base of the screen when testing the 100 m / 10 min dive with 18/45 bottom gas.  Along the lines of the cubic equation has a complex solution.  Sorry, I had no time to track down the cause.</span></div></span></blockquote></div><br></div><div>hmm, I cannot reproduce this. Would you mind sending me a screen shot of your planner window with the settings visible that produces this error?</div><br></div></blockquote><div><br></div><div>It appears that the error didn't occur with the 100 m profile, but with shallow profiles that were calculated after entering gasses, but before entering all the depth information.  The red box with error messages wasn't visible while the planner was open, but is displayed after saving the plan.  The attached screenshot shows an offending plan, but not the error messages.  I know that this was the plan that caused the problem because I picked it up with gdb.  I did not get the same error with the 100 m for 10 min plan with 18/45.<br><br></div><div>The error messages can be seen in this gdb output.<br>






<div>
<span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff">(gdb) b deco.c:342
</span><br>Breakpoint 2 at 0x68c35e: file /home/rick/src/subsurface/deco.c, line 342.
<br>(gdb) run
<br>Starting program: /home/rick/src/subsurface/build/subsurface  <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 1976)]
<br>[New Thread 0x7fff797fa700 (LWP 1975)]
<br>[New Thread 0x7fff7affd700 (LWP 1969)]
<br>[New Thread 0x7fff7b7fe700 (LWP 1968)]
<br>[New Thread 0x7fff7bfff700 (LWP 1967)]
<br>[New Thread 0x7fff80ccc700 (LWP 1966)]
<br>[New Thread 0x7fffc19e0700 (LWP 1965)]
<br>[New Thread 0x7fffc8cbd700 (LWP 1963)]
<br>[New Thread 0x7fffd7a6a700 (LWP 1962)]
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) p depth
<br>$1 = {void (char *, depth_t *)} 0x6a7e4d <depth>
<br>(gdb) bt 10
<br>#0  solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
<br>#1  0x000000000068c4cf in update_gradient (next_stop_pressure=1.0129999999999999, first_gradient=3.4490979090939202) at /home/rick/src/subsurface/deco.c:356
<br>#2  0x000000000068c541 in boyles_law (next_stop_pressure=1.0129999999999999) at /home/rick/src/subsurface/deco.c:368
<br>#3  0x00000000006ba52c in calculate_deco_information (dive=0xa7c220 <displayed_dive>, dc=0xa7c520 <displayed_dive+768>, pi=0xfb04c0, print_mode=false)
<br>    at /home/rick/src/subsurface/profile.c:856
<br>#4  0x00000000006bb101 in create_plot_info_new (dive=0xa7c220 <displayed_dive>, dc=0xa7c520 <displayed_dive+768>, pi=0xfb04c0, fast=false)
<br>    at /home/rick/src/subsurface/profile.c:1083
<br>#5  0x000000000062cff2 in ProfileWidget2::plotDive (this=0xfb0450, d=0x0, force=true) at /home/rick/src/subsurface/qt-ui/profile/profilewidget2.cpp:558
<br>#6  0x000000000062b7b7 in ProfileWidget2::replot (this=0xfb0450) at /home/rick/src/subsurface/qt-ui/profile/profilewidget2.cpp:350
<br>#7  0x0000000000656be9 in ProfileWidget2::qt_static_metacall (_o=0xfb0450, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x7fffffffccc0)
<br>    at /home/rick/src/subsurface/build/moc_profilewidget2.cpp:192
<br>#8  0x00007ffff05ff15a in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5
<br>#9  0x00007ffff067b26c in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) () from /lib64/libQt5Core.so.5
<br>(More stack frames follow...)
<br>(gdb) c
<br>Continuing.
<br>[Thread 0x7fff79ffb700 (LWP 1976) exited]
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) bt 10
<br>#0  solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
<br>#1  0x000000000068c4cf in update_gradient (next_stop_pressure=1.0129999999999999, first_gradient=3.5872014883972732) at /home/rick/src/subsurface/deco.c:356
<br>#2  0x000000000068c57f in boyles_law (next_stop_pressure=1.0129999999999999) at /home/rick/src/subsurface/deco.c:369
<br>#3  0x00000000006ba52c in calculate_deco_information (dive=0xa7c220 <displayed_dive>, dc=0xa7c520 <displayed_dive+768>, pi=0xfb04c0, print_mode=false)
<br>    at /home/rick/src/subsurface/profile.c:856
<br>#4  0x00000000006bb101 in create_plot_info_new (dive=0xa7c220 <displayed_dive>, dc=0xa7c520 <displayed_dive+768>, pi=0xfb04c0, fast=false)
<br>    at /home/rick/src/subsurface/profile.c:1083
<br>#5  0x000000000062cff2 in ProfileWidget2::plotDive (this=0xfb0450, d=0x0, force=true) at /home/rick/src/subsurface/qt-ui/profile/profilewidget2.cpp:558
<br>#6  0x000000000062b7b7 in ProfileWidget2::replot (this=0xfb0450) at /home/rick/src/subsurface/qt-ui/profile/profilewidget2.cpp:350
<br>#7  0x0000000000656be9 in ProfileWidget2::qt_static_metacall (_o=0xfb0450, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x7fffffffccc0)
<br>    at /home/rick/src/subsurface/build/moc_profilewidget2.cpp:192
<br>#8  0x00007ffff05ff15a in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5
<br>#9  0x00007ffff067b26c in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) () from /lib64/libQt5Core.so.5
<br>(More stack frames follow...)
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.
<br>
<br>Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998, C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
<br>342                     return 0.0;
<br>(gdb) c
<br>Continuing.<br>
<br></span></div>


<br></div><div><br><br><img alt="Inline images 1" src="cid:ii_14f4f68e0863e622" width="473" height="266"><img alt="Inline images 1" src="cid:ii_14f4f70f1637b520" width="473" height="266"><br><br><br> <br></div></div></div></div></div>