POV-Ray : Newsgroups : povray.general : What is -1.#IO : Re: What is -1.#IO Server Time
21 Dec 2025 04:25:23 EST (-0500)
  Re: What is -1.#IO  
From: Bald Eagle
Date: 17 Dec 2025 13:10:00
Message: <web.6942f103df4c0ffa7f81dbac25979125@news.povray.org>
Following up,

It looks like this is a general "undefined" state for Windows.
My money is divide by zero error in normalizing the vector to unit length.

https://www.mathworks.com/matlabcentral/answers/31571-1-io-error-on-xpc

https://stackoverflow.com/questions/35997187/what-leads-to-the-floating-point-exception-1-io

https://www.sierrachart.com/SupportBoard.php?ThreadID=14054

https://unmethours.com/question/24410/-1io-error-value-when-running-battery-storage-in-e/

I'd simply check vlength (Vector) before proceeding, and exit early if a
zero-length vector is the input.

(Using those values in a #if statement should still not crash POV-Ray)


- BE


Post a reply to this message

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