POV-Ray : Newsgroups : povray.general : Strange error message Server Time
5 Aug 2024 08:25:02 EDT (-0400)
  Strange error message (Message 1 to 1 of 1)  
From: Philippe Lhoste
Subject: Strange error message
Date: 11 Oct 2002 05:53:41
Message: <Xns92A478C2D1E35PhiLho@204.213.191.226>
Not sure if I should put this here, or in p.programming...
Well, the other day I played with sphere_sweep, and commented out some 
components to see the changes.

I ended with doing a cubic_spline sphere_sweep with only 3 spheres, which 
is illegal, according to the documentation (6.5.1.10).

sphere_sweep {
//  linear_spline
  cubic_spline
  3,
  <0, stemLength,    0>, stemRad
  <0, stemLength/2,  0>, stemRad
//  <0, stemLength/4,  0>, stemRad
//  <0, stemLength/8,  0>, serifRad/4
//  <0, stemLength/16, 0>, serifRad/2
  <0, 0,              0>, serifRad
//  tolerance 0.1
  bounded_by { box { <-serifRad, -stemLength-stemRad, -serifRad> 
<serifRad, serifRad, serifRad> } }
}

The problem is the resulting error message (in Windows version of POV-Ray 
3.5 on Win98SE) is quite strange:

Parse Error: Attempt to malloc zero size block (File: 
..\..\source\sphsweep.cpp Line: 1613).

I think the scene error should be catched earlier (?) and results in a 
more user friendly message, not one for code hackers :-)

-- 
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/


Post a reply to this message

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