<div dir="ltr">Hi Sebastian,<div><br></div><div>maybe related maybe not, I have seen this in uniform setting. Internally the code of the uniform setting is using &std::vector::first() even for empty vectors .. just a hint and again, maybe not that issue</div><div><br></div><div>Nick</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 5, 2016 at 5:41 PM, Sebastian Messerschmidt <span dir="ltr"><<a href="mailto:sebastian.messerschmidt@gmx.de" target="_blank">sebastian.messerschmidt@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Robert,<br>
<br>
A debug assertion will happen under Visual Studio in debug mode.<br>
I'll will try to see what is going on, but I suspect some empty vector's first element accessed.<br>
<br>
Cheers<span class="HOEnZb"><font color="#888888"><br>
Sebastian</font></span><div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for posting the model. The bunny.ply loads with the OSG git<br>
master just fine when I run:<br>
<br>
osgviewer bunny.ply<br>
<br>
The bunny renders and there are no warnings to console. There have<br>
been a few changes to the ply plugin since 3.4 so can't rule out a fix<br>
with rolling back to 3.4 and trying it.<br>
<br>
Robert.<br>
<br>
On 5 October 2016 at 05:43, Uma Devi Selvaraj <<a href="mailto:umaselvam1503@gmail.com" target="_blank">umaselvam1503@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Sebastain<br>
<br>
I have attached the model.(Since not .ply extension is not allowed I have zipped model) I have build osg 3.4.0 in windows.<br>
<br>
<br>
SMesserschmidt wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Uma,<br>
<br>
There is no model attached.<br>
Without giving us a model that shows this behavior and some basic<br>
information on your OSG-Version, build environment etc. it is hard to<br>
guess what is going on.<br>
Most likely the ply-reader produces the error, so please try to attach<br>
the model so we can investigate. In case you are building OSG yourself,<br>
it should be easy to attach a debugger and check what is going on for<br>
yourself ...<br>
<br>
Cheers<br>
Sebastian<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I have tried a simple program in C++ to render 3d model using Osg Viewer.<br>
When I am trying to run the code I am getting "vector script out of range error " for some 3d model.<br>
<br>
This is my code.<br>
<br>
/*osg header files */<br>
<br>
int main(int argc,char**argv)<br>
{<br>
<br>
<br>
/*using ref_ptr*/<br>
osg::ref_ptr<osg::Node> root = osgDB::readNodeFile("bunny.ply<wbr>");<br>
osgViewer::Viewer viewer;<br>
viewer.setSceneData(root.get(<wbr>));<br>
return viewer.run();<br>
}<br>
<br>
can some body tell me what is the problem. but it is working for some models. I have attached the 3d model file. I have loaded 2963 KB file<br>
<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Uma<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=68842#68842" rel="noreferrer" target="_blank">http://forum.openscenegraph.or<wbr>g/viewtopic.php?p=68842#68842</a><br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
<br>
</blockquote>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
<br>
------------------<br>
Post generated by Mail2Forum<br>
</blockquote>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=68853#68853" rel="noreferrer" target="_blank">http://forum.openscenegraph.or<wbr>g/viewtopic.php?p=68853#68853</a><br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
<br>
</blockquote>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
</blockquote>
<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">trajce nikolov nick<br></div>
</div>