<div dir="ltr">Hi,<br><br>I&#39;m implementing an exporter similar to Cycles standalone.<br>got a little problem,<br>first render call runs fine &quot;simply an empty scene&quot;<br>second render call (should be with a non-empty scene&quot; fails, it always crashes inside tables &quot;many times inside sobol table, once inside film offset&quot;<br><br><div>template&lt;typename T&gt; struct texture  {</div><div><span class="" style="white-space:pre">        </span>ccl_always_inline T fetch(int index)</div><div><span class="" style="white-space:pre">        </span>{</div><div><span class="" style="white-space:pre">                </span>kernel_assert(index &gt;= 0 &amp;&amp; index &lt; width);</div><div><span class="" style="white-space:pre">                </span>return data[index];</div><div><span class="" style="white-space:pre">        </span>}</div><div><br></div><div>#ifdef __KERNEL_SSE2__</div><div><span class="" style="white-space:pre">        </span>ccl_always_inline ssef fetch_ssef(int index)</div><div><span class="" style="white-space:pre">        </span>{</div><div><span class="" style="white-space:pre">                </span>kernel_assert(index &gt;= 0 &amp;&amp; index &lt; width);</div><div><span class="" style="white-space:pre">                </span>return ((ssef*)data)[index];</div><div><span class="" style="white-space:pre">        </span>}</div><div><br></div><div><span class="" style="white-space:pre">        </span>ccl_always_inline ssei fetch_ssei(int index)</div><div><span class="" style="white-space:pre">        </span>{</div><div><span class="" style="white-space:pre">                </span>kernel_assert(index &gt;= 0 &amp;&amp; index &lt; width);</div><div><span class="" style="white-space:pre">                </span>return ((ssei*)data)[index];</div><div><span class="" style="white-space:pre">        </span>}</div><div>#endif</div><div><br></div><div><span class="" style="white-space:pre">        </span>T *data;</div><div><span class="" style="white-space:pre">        </span>int width;</div><div>};<br><br>data is nullptr, sometimes width is wrong, etc..<br>what does reset these values? &quot;or where/when are they deleted/initialized, with scene or session&quot;<br><br>thanks.<br>cheers,<br>Mohamed Sakr<br><br></div></div>