<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 135: environment() segv when called with vector (0,0,1)</title><link href="https://sourceforge.net/p/pixie/bugs/135/" rel="alternate"/><link href="https://sourceforge.net/p/pixie/bugs/135/feed.atom" rel="self"/><id>https://sourceforge.net/p/pixie/bugs/135/</id><updated>2011-06-21T20:34:37Z</updated><subtitle>Recent changes to 135: environment() segv when called with vector (0,0,1)</subtitle><entry><title>environment() segv when called with vector (0,0,1)</title><link href="https://sourceforge.net/p/pixie/bugs/135/" rel="alternate"/><published>2011-06-21T20:34:37Z</published><updated>2011-06-21T20:34:37Z</updated><author><name>Karl Stiefvater</name><uri>https://sourceforge.net/u/qarl/</uri></author><id>https://sourceforge.net0c5d5f1e9ced6b64fa7c04bc3cf022dadb8ea464</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;pixie crashes when calling sl environment() with reflection vector (0,0,1)&lt;/p&gt;
&lt;p&gt;tracked it to texture.cpp line 1762.  variable c is computed to be 0, and then used for division, resulting in NaNs and a crash:&lt;/p&gt;
&lt;p&gt;c = (D[COMP_X]*D[COMP_X]+D[COMP_Y]*D[COMP_Y])*2.0*C_PI;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>