POV-Ray : Newsgroups : povray.beta-test : Spline causing 3.8 beta 2 to crash : Spline causing 3.8 beta 2 to crash Server Time
29 Mar 2024 06:38:23 EDT (-0400)
  Spline causing 3.8 beta 2 to crash  
From: Chris R
Date: 8 Feb 2023 09:50:00
Message: <web.63e3b5ca554275b637a9ec105cc1b6e@news.povray.org>
I have been experiencing crashes running the latest beta of POV-Ray v3.8 (Win64)
when trying to call a spline.  The narrowed it down to a few lines of code that
causes the crash:

#macro make_spline()
    #local _s   = spline {
        quadratic_spline
        0, <0, 0, 0>,
        1, <0, 0, 1>,
        2, <1, 0, 2>,
        3, <2, 1, 3>
    }
    _s
#end

#local myspline = spline { make_spline() }

#debug concat("_pt=<", vstr(3, myspline(0), ",", 0, 3), ">\n")

The contents of the spline don't seem to matter nor does the type of spline.
The result is a memory access violation.

When I run the same code on v3.7 it works fine.

Declaring the spline outside of a macro does not cause the crash:

#local myspline   = spline {
    natural_spline
    0, <0, 0, 0>,
    1, <0, 0, 1>,
    2, <1, 0, 2>,
    3, <2, 1, 3>
}

#debug concat("_pt=<", vstr(3, myspline(0), ",", 0, 3), ">\n")

-- Chris R.


Post a reply to this message

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