POV-Ray

The Persistence of Vision Raytracer (POV-Ray).

This is the legacy Bug Tracking System for the POV-Ray project. Bugs listed here are being migrated to our github issue tracker. Please refer to that for new reports or updates to existing ones on this system.

Attached to Project: POV-Ray
Opened by Michael Friedrichs - 2012-11-01
Last edited by Christoph Lipka - 2016-12-13

FS#259 - Stack Overflow with the write-directive with missing closing bracket

As I posted yesterday to the POV bugreports, I observed a bug with the #write directive, having forgotten the closing bracket. I looked a little bit closer and found different behaviours of POV with different array sizes.

With ArrayDim=100 (please look at the attached SDL-code, which is reduced as much as possible and produces only the bug and no scene) one get the Parse Error: “Expected ‘string’, End of File found instead” and the last line is highlighted. With ArrayDim=1024 you get an Stack Overflow and POV crashes.

I observed this at two different core i7 windows machines. On one of them (16 GB RAM, if this is of importance) the threshold between both behaviours was between 300 and 400. Hope this helps.

Best regards,
Michael

Closed by  Christoph Lipka
Tuesday, 13 December 2016, 06:02 GMT
Reason for closing:  Fixed
Grimbert Jérôme commented on Thursday, 27 December 2012, 16:01 GMT

Confirmed on Ubuntu 12.10 too.
recursing #write does not seem a good idea

Would forbidding the #write in #write be a solution ?

I wonder if the same would happens with #debug & al.

Michael Friedrichs commented on Friday, 04 January 2013, 18:08 GMT

At the moment I have no idea what could be achieved with recursing #write, #debug and the like. But maybe my imagination deserts me. Yes I think forbidding #write within #write would solve the problem. But I never have implemented a parser for an interpreting language.

William F Pokorny commented on Saturday, 26 November 2016, 18:07 GMT

Now tracked on github as issue #160.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing