<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I did some analysing and found ambiguos stuff:<div><a href="http://www.pasteall.org/34979">http://www.pasteall.org/34979</a></div><div><br></div><div>Jens</div><div><br><div><div>Am 05.09.2012 um 12:26 schrieb Brecht Van Lommel &lt;<a href="mailto:brechtvanlommel@pandora.be">brechtvanlommel@pandora.be</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite">Could this perhaps be related to RTTI? That can influence class size.<br>It seems RTTI was disabled in CMake but not in SCons.<br><br>Brecht.<br><br>On Tue, Sep 4, 2012 at 11:43 PM, Dalai Felinto &lt;<a href="mailto:dfelinto@gmail.com">dfelinto@gmail.com</a>&gt; wrote:<br><blockquote type="cite">Hi there,<br><br>I'm helping Jens to get OSL 1.2 to work on OSX as well. OSL is<br>building and Blender builds as well. However we are now stumbling into<br>a strange problem.<br><br>When rendering with OSL we get the errors:<br><a href="http://www.pasteall.org/34953">http://www.pasteall.org/34953</a><br>* note, Parameter 1 is the first parameter of the array (index 0)<br><br><br>The error comes from the register_closure() function in the OSL source<br>code, see below:<br><br>//OpenShadingLanguage/src/liboslexec/shadingsys.cpp :~507<br>void ShadingSystemImpl::register_closure(...) {<br> &nbsp;&nbsp;&nbsp;for (int i = 0; params &amp;&amp; params[i].type != TypeDesc(); ++i) {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (params[i].key == NULL &amp;&amp; params[i].type.size() !=<br>(size_t)params[i].field_size) {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error ("Parameter %d of '%s' closure is assigned to a<br>field of incompatible size", i + 1, name);<br><br><br>This function is called from //intern/cycles/kernel/osl/osl_closures.cpp:62<br> &nbsp;&nbsp;&nbsp;ss-&gt;register_closure(name, id, params, prepare,<br>generic_closure_setup, generic_closure_compare);<br><br>A breakpoint to this line and found out that the value of params[0] is<br>indeed problematic:<br>Basically params[0].type.size() is zero, while params[0].field_size is 12:<br>http://www.pasteall.org/34955<br><br><br>In Linux this is working though. Does anyone has any clues on what is<br>going wrong here?<br>If someone has a Linux debug of Blender with OSL could you please:<br><br>b osl_closures.cpp:62<br>r<br>[in blender, render something ... it will get back to the debugger]<br>p params[0]<br>p params[0].type.size()<br>p params[0].field_size<br><br>Thanks,<br>Dalai<br>_______________________________________________<br>Bf-cycles mailing list<br>Bf-cycles@blender.org<br>http://lists.blender.org/mailman/listinfo/bf-cycles<br></blockquote>_______________________________________________<br>Bf-cycles mailing list<br><a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>http://lists.blender.org/mailman/listinfo/bf-cycles<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div><span class="Apple-style-span" style="font-size: 12px; ">_____________________________________</span></div><div><span class="Apple-style-span" style="font-size: 12px; "><div><br class="khtml-block-placeholder"></div><div style="text-align: left; ">Jens Verwiebe</div><div style="text-align: left; ">Allerskehre 44&nbsp; -&nbsp;&nbsp;22309 Hamburg</div><div style="text-align: left; "><br class="khtml-block-placeholder"></div><div style="text-align: left; ">Tel.: +49 40 68 78 50</div><div style="text-align: left; ">mobil: +49 172 400 49 07</div><div>mailto:&nbsp;<a href="mailto:info@jensverwiebe.de"><span class="Apple-style-span" style="color: rgb(0, 0, 238); ">info@jensverwiebe.de</span></a></div><div>web:&nbsp;&nbsp;<a href="http://www.jensverwiebe.de/"><span class="Apple-style-span" style="color: rgb(0, 0, 238); ">http://www.jensverwiebe.de</span></a></div><div style="text-align: left; ">_____________________________________</div></span></div></span>
</div>
<br></div></body></html>