Depth validation in planner

Henrik Brautaset Aronsen subsurface at
Wed Feb 13 02:59:06 PST 2013

On Wed, Feb 13, 2013 at 11:56 AM, Robert C. Helling <helling at> wrote:

> On Wed, 13 Feb 2013, Sergey Starosek wrote:
>  Hi,
>> During testing I've accidentally entered depth of 1000m with 1min
>> duration for the first segment. At this point application
>> stops responding for a long time and consumes 100% CPU on one of the
>> cores. Every focus change makes it even worse.
> I think, it's calculating a very long deco. You can see it for a 400m
> dive: For me it takes several seconds to come up with a plan to come out of
> the water (which asks for about 3000 minutes of deco). So for your 1km
> dive, we might have to wait longer than MAX_INT seconds.

We should still have a cutoff.  Noone is seriously going to plan a dive
deeper than ~300m.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the subsurface mailing list