Problem with VPM-B in master

Rick Walsh rickmwalsh at gmail.com
Fri Aug 21 01:48:22 PDT 2015


Hi Robert,

On 21 August 2015 at 17:38, Robert C. Helling <helling at atdotde.de> wrote:

>
> Rick,
>
> On 21 Aug 2015, at 01:49, Rick Walsh <rickmwalsh at gmail.com> wrote:
>
> 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.
>
>
> 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?
>
>
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.

The error messages can be seen in this gdb output.
(gdb) b deco.c:342
Breakpoint 2 at 0x68c35e: file /home/rick/src/subsurface/deco.c, line 342.
(gdb) run
Starting program: /home/rick/src/subsurface/build/subsurface
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Map theme file does not exist: ""
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No
such file or directory
[New Thread 0x7fff79ffb700 (LWP 1976)]
[New Thread 0x7fff797fa700 (LWP 1975)]
[New Thread 0x7fff7affd700 (LWP 1969)]
[New Thread 0x7fff7b7fe700 (LWP 1968)]
[New Thread 0x7fff7bfff700 (LWP 1967)]
[New Thread 0x7fff80ccc700 (LWP 1966)]
[New Thread 0x7fffc19e0700 (LWP 1965)]
[New Thread 0x7fffc8cbd700 (LWP 1963)]
[New Thread 0x7fffd7a6a700 (LWP 1962)]

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) p depth
$1 = {void (char *, depth_t *)} 0x6a7e4d <depth>
(gdb) bt 10
#0  solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
#1  0x000000000068c4cf in update_gradient
(next_stop_pressure=1.0129999999999999, first_gradient=3.4490979090939202)
at /home/rick/src/subsurface/deco.c:356
#2  0x000000000068c541 in boyles_law
(next_stop_pressure=1.0129999999999999) at
/home/rick/src/subsurface/deco.c:368
#3  0x00000000006ba52c in calculate_deco_information (dive=0xa7c220
<displayed_dive>, dc=0xa7c520 <displayed_dive+768>, pi=0xfb04c0,
print_mode=false)
   at /home/rick/src/subsurface/profile.c:856
#4  0x00000000006bb101 in create_plot_info_new (dive=0xa7c220
<displayed_dive>, dc=0xa7c520 <displayed_dive+768>, pi=0xfb04c0,
fast=false)
   at /home/rick/src/subsurface/profile.c:1083
#5  0x000000000062cff2 in ProfileWidget2::plotDive (this=0xfb0450, d=0x0,
force=true) at
/home/rick/src/subsurface/qt-ui/profile/profilewidget2.cpp:558
#6  0x000000000062b7b7 in ProfileWidget2::replot (this=0xfb0450) at
/home/rick/src/subsurface/qt-ui/profile/profilewidget2.cpp:350
#7  0x0000000000656be9 in ProfileWidget2::qt_static_metacall (_o=0xfb0450,
_c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x7fffffffccc0)
   at /home/rick/src/subsurface/build/moc_profilewidget2.cpp:192
#8  0x00007ffff05ff15a in QMetaObject::activate(QObject*, int, int, void**)
() from /lib64/libQt5Core.so.5
#9  0x00007ffff067b26c in QAbstractItemModel::dataChanged(QModelIndex
const&, QModelIndex const&, QVector<int> const&) () from
/lib64/libQt5Core.so.5
(More stack frames follow...)
(gdb) c
Continuing.
[Thread 0x7fff79ffb700 (LWP 1976) exited]

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) bt 10
#0  solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
#1  0x000000000068c4cf in update_gradient
(next_stop_pressure=1.0129999999999999, first_gradient=3.5872014883972732)
at /home/rick/src/subsurface/deco.c:356
#2  0x000000000068c57f in boyles_law
(next_stop_pressure=1.0129999999999999) at
/home/rick/src/subsurface/deco.c:369
#3  0x00000000006ba52c in calculate_deco_information (dive=0xa7c220
<displayed_dive>, dc=0xa7c520 <displayed_dive+768>, pi=0xfb04c0,
print_mode=false)
   at /home/rick/src/subsurface/profile.c:856
#4  0x00000000006bb101 in create_plot_info_new (dive=0xa7c220
<displayed_dive>, dc=0xa7c520 <displayed_dive+768>, pi=0xfb04c0,
fast=false)
   at /home/rick/src/subsurface/profile.c:1083
#5  0x000000000062cff2 in ProfileWidget2::plotDive (this=0xfb0450, d=0x0,
force=true) at
/home/rick/src/subsurface/qt-ui/profile/profilewidget2.cpp:558
#6  0x000000000062b7b7 in ProfileWidget2::replot (this=0xfb0450) at
/home/rick/src/subsurface/qt-ui/profile/profilewidget2.cpp:350
#7  0x0000000000656be9 in ProfileWidget2::qt_static_metacall (_o=0xfb0450,
_c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x7fffffffccc0)
   at /home/rick/src/subsurface/build/moc_profilewidget2.cpp:192
#8  0x00007ffff05ff15a in QMetaObject::activate(QObject*, int, int, void**)
() from /lib64/libQt5Core.so.5
#9  0x00007ffff067b26c in QAbstractItemModel::dataChanged(QModelIndex
const&, QModelIndex const&, QVector<int> const&) () from
/lib64/libQt5Core.so.5
(More stack frames follow...)
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0056673170305897459) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.

Breakpoint 2, solve_cubic (A=1.0129999999999999, B=-0.35799999999999998,
C=0.0051749092549835483) at /home/rick/src/subsurface/deco.c:342
342                     return 0.0;
(gdb) c
Continuing.




[image: Inline images 1][image: Inline images 1]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150821/98fec1df/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: complex solution error messages.png
Type: image/png
Size: 201004 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150821/98fec1df/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: complex solution no deco.png
Type: image/png
Size: 168083 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150821/98fec1df/attachment-0003.png>


More information about the subsurface mailing list