<div dir="ltr">Hi,<br><br>    I&#39;m creating a render engine based on Cycles, right now everything is fine except that the function callbacks &quot;<font color="#4b4d51" face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="line-height:16.0030002593994px">write_render_tile_cb, update_render_tile_cb&quot; and variables &quot;progressive, progressive_refine&quot; are making a problem!!</span></font><br><br><font color="#4b4d51" face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="line-height:16.0030002593994px">the problem is:</span></font><br><font color="#4b4d51" face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="line-height:16.0030002593994px">case (1):<br></span></font><div style><div style><span class="" style="white-space:pre">        </span>options.session_params.progressive = true;</div><div style><span class="" style="white-space:pre">        </span>options.session_params.progressive_refine = true;</div><div style><span class="" style="white-space:pre">        </span>options.session_params.progressive_update_timeout = 0.1;</div><div style><span class="" style="white-space:pre">        </span>options.session_params.background = true;</div><br><font color="#4b4d51" face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="line-height:16.0030002593994px">no feedback is given &quot;from both functions, so they are not called&quot; , at the end of the render it saves the image on destructor.</span></font><br><br><font color="#4b4d51" face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="line-height:16.0030002593994px">case (2):</span></font><br><div><span class="" style="white-space:pre">        </span>options.session_params.progressive = false;</div><div><span class="" style="white-space:pre">        </span>options.session_params.progressive_refine = false;</div><div><span class="" style="white-space:pre">        </span>options.session_params.progressive_update_timeout = 0.1;</div><div><span class="" style="white-space:pre">        </span>options.session_params.background = true;<br><br>crash!! after first tile, shows 12/192 in tiles and crashes.<br><br>case (3):<br><div><span class="" style="white-space:pre">        </span>options.session_params.progressive = false;</div><div><span class="" style="white-space:pre">        </span>options.session_params.progressive_refine = false;</div><div><span class="" style="white-space:pre">        </span>options.session_params.progressive_update_timeout = 0.1;</div><div><span class="" style="white-space:pre">        </span>options.session_params.background = true;<br><br>and in session.cpp:<br><br><div>void Session::release_tile(RenderTile&amp; rtile)</div><div>{</div><div><span class="" style="white-space:pre">        </span>thread_scoped_lock tile_lock(tile_mutex);</div><div><br></div><div><span class="" style="white-space:pre">        </span>if(write_render_tile_cb) {</div><div><span class="" style="white-space:pre">                </span>if(params.progressive_refine == false) {</div><div><span class="" style="white-space:pre">                        </span>/* todo: optimize this by making it thread safe and removing lock */</div><div><span class="" style="white-space:pre">                        </span>write_render_tile_cb(rtile);</div><div><br></div><div><span class="" style="white-space:pre">                        //</span>delete rtile.buffers;  // I commented this line!!</div><div><span class="" style="white-space:pre">                </span>}</div><div><span class="" style="white-space:pre">        </span>}</div><div><br></div><div><span class="" style="white-space:pre">        </span>update_status_time();</div><div>}<br><br>with commenting delete rtile.buffers; , it doesn&#39;t crash, and updates fine!! &quot;although with some problems in gamma in updating, but at the end the written image is gamma correct&quot;<br><br>I&#39;m not sure where is the problem.<br><br>cheers,<br>Mohamed Sakr</div></div></div></div></div>