<div dir="ltr">Unless you can reproduce the issue with our code it&#39;s not much what we can do for you.<div><br></div><div>Just step-by-step and see where exactly something goes from proper pointer to NULL. Using ASAN could also help you.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 14, 2016 at 11:19 AM, Mohamed Sakr <span dir="ltr">&lt;<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Sergey,<br><br>I&#39;m having a nightmare with this bug, so I need your help.<br>what happens in the first rendering:<br>kernel_globals is filled correctly inside device update, path trace is running fine &quot;scene is empty, no meshes, no lights, no objects, just params are passed&quot;.<br><br>in the second rendering:<br>kernel_globals is filled correctly inside device update, path trace kernel_globals got all data = NULL... , any idea how this happens &quot;and they are just filled before path trace&quot;?<br><br>cheers,<br>Mohamed Sakr</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 13, 2016 at 11:01 AM, Mohamed Sakr <span dir="ltr">&lt;<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Sergey,<br><br>it fails to sample Sobol sampler.</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 13, 2016 at 8:54 AM, Sergey Sharybin <span dir="ltr">&lt;<a href="mailto:sergey.vfx@gmail.com" target="_blank">sergey.vfx@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It depends on what texture it&#39;s failing to sample.<div><br></div><div>Most likely you either not calling `device_update()` somewhere or you don&#39;t call kernel_tex_copy().</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Apr 13, 2016 at 4:57 AM, Mohamed Sakr <span dir="ltr">&lt;<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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 style="white-space:pre-wrap">        </span>ccl_always_inline T fetch(int index)</div><div><span style="white-space:pre-wrap">        </span>{</div><div><span style="white-space:pre-wrap">                </span>kernel_assert(index &gt;= 0 &amp;&amp; index &lt; width);</div><div><span style="white-space:pre-wrap">                </span>return data[index];</div><div><span style="white-space:pre-wrap">        </span>}</div><div><br></div><div>#ifdef __KERNEL_SSE2__</div><div><span style="white-space:pre-wrap">        </span>ccl_always_inline ssef fetch_ssef(int index)</div><div><span style="white-space:pre-wrap">        </span>{</div><div><span style="white-space:pre-wrap">                </span>kernel_assert(index &gt;= 0 &amp;&amp; index &lt; width);</div><div><span style="white-space:pre-wrap">                </span>return ((ssef*)data)[index];</div><div><span style="white-space:pre-wrap">        </span>}</div><div><br></div><div><span style="white-space:pre-wrap">        </span>ccl_always_inline ssei fetch_ssei(int index)</div><div><span style="white-space:pre-wrap">        </span>{</div><div><span style="white-space:pre-wrap">                </span>kernel_assert(index &gt;= 0 &amp;&amp; index &lt; width);</div><div><span style="white-space:pre-wrap">                </span>return ((ssei*)data)[index];</div><div><span style="white-space:pre-wrap">        </span>}</div><div>#endif</div><div><br></div><div><span style="white-space:pre-wrap">        </span>T *data;</div><div><span style="white-space:pre-wrap">        </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>
<br></div></div>_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</font></span></div>
<br>_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</div>