<div dir="ltr">Unless you can reproduce the issue with our code it'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"><<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@gmail.com</a>></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'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 "scene is empty, no meshes, no lights, no objects, just params are passed".<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 "and they are just filled before path trace"?<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"><<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@gmail.com</a>></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"><<a href="mailto:sergey.vfx@gmail.com" target="_blank">sergey.vfx@gmail.com</a>></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's failing to sample.<div><br></div><div>Most likely you either not calling `device_update()` somewhere or you don'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"><<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@gmail.com</a>></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'm implementing an exporter similar to Cycles standalone.<br>got a little problem,<br>first render call runs fine "simply an empty scene"<br>second render call (should be with a non-empty scene" fails, it always crashes inside tables "many times inside sobol table, once inside film offset"<br><br><div>template<typename T> 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 >= 0 && index < 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 >= 0 && index < 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 >= 0 && index < 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? "or where/when are they deleted/initialized, with scene or session"<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>