<div dir="ltr">Hi Tom,<div>I think your obj file is invalid, as the faces all reference normal "0" and </div><div>1> no normals are provided</div><div>2> normal indices start at 1 (according to <a href="https://en.wikipedia.org/wiki/Wavefront_.obj_file#Face_elements">wikipedia</a>)</div><div><br></div><div>if I reduce your obj file to just the first face (removing material and all but vertex/texcoord 0-1-2) ( attached )</div><div>I get the same crash with</div><div>osgconv DataFace1.obj</div><div>removing the /0 (normal ref) three times fixes the problem - same works for the large file (with textures working)</div><div>Laurens.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 13, 2020 at 3:15 PM 'Tom Pollok' via OpenSceneGraph Users <<a href="mailto:osg-users@googlegroups.com">osg-users@googlegroups.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello Robert,</div><div><br></div><div>I added a minimal reproducer and a stracktrace (release). Unfortunately i only have release builds on this machine, but I could provide debug stack trace from another system later...</div><div><br></div><div>Best,</div><div>Tom<br></div><div><br></div><div><br></div><br>Am Montag, 13. Januar 2020 12:12:48 UTC+1 schrieb Tom Pollok:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I added a zip file with the mesh. It happens when loading that obj file.</div><div><br></div><div><a href="https://owncloud.iosb.fraunhofer.de/owncloud/s/dc8dkbXrQz3gTuh" rel="nofollow" target="_blank">https://owncloud.iosb.fraunhofer.de/owncloud/s/dc8dkbXrQz3gTuh</a></div><div><br></div><div>Pw: osg<br></div><div><br></div><div>I have to check for the stack trace again.<br></div><div><br></div><div><pre lang="cpp"><span lang="cpp"><span>osgDB</span><span>::</span><span>Options</span><span>*</span> <span>opt</span> <span>=</span> <span>new</span> <span>osgDB</span><span>::</span><span>Options</span><span>;</span></span>
<span lang="cpp"><span>opt</span><span>-></span><span>setOptionString</span><span>(</span><span>"noRotation"</span><span>);</span></span>
<span lang="cpp"></span>
<span lang="cpp"><span>osg</span><span>::</span><span>ref_ptr</span><span><</span><span>osg</span><span>::</span><span>Node</span><span>></span> <span>node</span> <span>=</span> <span>osgDB</span><span>::</span><span>readNodeFile</span><span>(pathToObjFile</span><span>,</span> <span>opt</span><span>);</span></span><br><br>Im using two windows machines with intel processors (64bit). <br>OSG was built by ourselves. <br>One has an integrated intel graphics unit and one with a Nvidia 2080Ti.</pre></div><br>Am Freitag, 10. Januar 2020 19:45:26 UTC+1 schrieb Robert Osfield:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">On Friday, 10 January 2020 18:01:57 UTC, Tom Pollok  wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>When loading a textured mesh from an obj file with mtl + texture file, openscenegraph crashes.</div><div><br></div><div>I use openscenegraph 3.4.1. Does anybody know if that issue has been fixed in newer versions?<br></div></div></blockquote><div><br></div><div>I don;t recall reports of crashes associated with .obj.</div><div><br></div><div>Could you provide a link to the model that is causing the problem?</div><div><br></div><div>Could you provide a stack trace?</div><div><br></div><div>What platform are you working on?  Did you build the OSG yourself?  </div><div><br></div><div>What hardware are you working on?</div><div><br></div><div>Cheers,</div><div>Robert,</div></div></blockquote><br><br>Am Freitag, 10. Januar 2020 19:45:26 UTC+1 schrieb Robert Osfield:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">On Friday, 10 January 2020 18:01:57 UTC, Tom Pollok  wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>When loading a textured mesh from an obj file with mtl + texture file, openscenegraph crashes.</div><div><br></div><div>I use openscenegraph 3.4.1. Does anybody know if that issue has been fixed in newer versions?<br></div></div></blockquote><div><br></div><div>I don;t recall reports of crashes associated with .obj.</div><div><br></div><div>Could you provide a link to the model that is causing the problem?</div><div><br></div><div>Could you provide a stack trace?</div><div><br></div><div>What platform are you working on?  Did you build the OSG yourself?  </div><div><br></div><div>What hardware are you working on?</div><div><br></div><div>Cheers,</div><div>Robert,</div></div></blockquote></div></blockquote></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com" target="_blank">osg-users+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/e8e0c207-93e6-49ff-accc-2f4e7ba1be6e%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/osg-users/e8e0c207-93e6-49ff-accc-2f4e7ba1be6e%40googlegroups.com</a>.<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>