POV-Ray : Newsgroups : povray.beta-test : sphere_sweep crashed pov Server Time: 26 Sep 2020 08:08:22 GMT
  sphere_sweep crashed pov (Message 1 to 4 of 4)  
From: Physiker
Subject: sphere_sweep crashed pov
Date: 1 Sep 2008 19:40:01
Message: <web.48bc447cc2ccad1e8510f03f0@news.povray.org>
I played with the number of points of a sphere_sweep:
had 9 points, reduce to 3, try to render - crash:

--

[...]

#declare raumt=1000;

sphere_sweep {
  b_spline
  3,
  <-150,70,0>,2,
  <0,0,0>,2,
  <150,70,0>,2


  pigment { color 0.5*Red }
  normal { gradient x }
  translate <0,80,raumt/2>
}

--



2. try: no crash
3. try: crash
and so on...

Even with wrong number of points this should not happen ;-)

system: W2K


Post a reply to this message

From: Le Forgeron
Subject: Re: sphere_sweep crashed pov
Date: 4 Sep 2008 19:24:16
Message: <48c035e0$1@news.povray.org>
Le Mon, 01 Sep 2008 15:37:32 -0400, Physiker a modifié des petits morceaux
de l'univers pour nous faire lire :

> I played with the number of points of a sphere_sweep: had 9 points,
> reduce to 3, try to render - crash:

> Even with wrong number of points this should not happen ;-)
> 
> system: W2K

Which version ?

On linux (from source code): No problem with Beta 28 (render fine)
Release 3.6.1 (from source code too): Stop with

File: spheresweep.pov  Line: 12
File Context (5 lines):
  <0,0,0>,2,
  <150,70,0>,2

  pigment
Parse Error: Attempt to malloc zero size block (File: sphsweep.cpp Line: 
1616).


Full code (as tested):
=======================
#include "colors.inc"
#declare raumt=1000;

sphere_sweep {
  b_spline
  3,
  <-150,70,0>,2,
  <0,0,0>,2,
  <150,70,0>,2


  pigment { color 0.5*Red }
  normal { gradient x }
  translate <0,80,raumt/2>
}

global_settings{max_trace_level 55}
camera {location  <0,0,0> look_at <0,80,raumt/2> angle 55}
light_source {<-30, 100, -30> color rgb 1.6}


Post a reply to this message

From: Physiker
Subject: Re: sphere_sweep crashed pov
Date: 6 Sep 2008 06:50:00
Message: <web.48c22709507b3200c7d19d280@news.povray.org>
crash in both tested versions:

POV-Ray-3.7.0.beta.27.msvc8.win32
POV-Ray-3.7.0.beta.28.msvc8.win32


Post a reply to this message

From: Chris Cason
Subject: Re: sphere_sweep crashed pov
Date: 18 Sep 2008 11:50:15
Message: <48d24077@news.povray.org>
Physiker wrote:
> I played with the number of points of a sphere_sweep:
> had 9 points, reduce to 3, try to render - crash:

thanks for the report: this is a result of the parser not enforcing the
minimum sphere count for the sweep type (b_spline requires at least four).
I'll fix this.

-- Chris


Post a reply to this message

Copyright 2003-2008 Persistence of Vision Raytracer Pty. Ltd.