[osg-users] Vector script out of range

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Wed Oct 5 11:31:49 PDT 2016


Hi Sebastian,

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

Nick

On Wed, Oct 5, 2016 at 5:41 PM, Sebastian Messerschmidt <
sebastian.messerschmidt at gmx.de> wrote:

>
> Hi Robert,
>
> A debug assertion will happen under Visual Studio in debug mode.
> I'll will try to see what is going on, but I suspect some empty vector's
> first element  accessed.
>
> Cheers
> Sebastian
>
> Thanks for posting the model. The bunny.ply loads with the OSG git
>> master just fine when I run:
>>
>>    osgviewer bunny.ply
>>
>> The bunny renders and there are no warnings to console.  There have
>> been a few changes to the ply plugin since 3.4 so can't rule out a fix
>> with rolling back to 3.4 and trying it.
>>
>> Robert.
>>
>> On 5 October 2016 at 05:43, Uma Devi Selvaraj <umaselvam1503 at gmail.com>
>> wrote:
>>
>>> Hi Sebastain
>>>
>>>      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.
>>>
>>>
>>> SMesserschmidt wrote:
>>>
>>>> Hi Uma,
>>>>
>>>> There is no model attached.
>>>> Without giving us a model that shows this behavior and some basic
>>>> information on your OSG-Version, build environment etc. it is hard to
>>>> guess what is going on.
>>>> Most likely the ply-reader produces the error, so please try to attach
>>>> the model so we can investigate. In case you are building OSG yourself,
>>>> it should be easy to attach a debugger and check what is going on for
>>>> yourself ...
>>>>
>>>> Cheers
>>>> Sebastian
>>>>
>>>> Hi,
>>>>>
>>>>> I have tried a simple program in C++ to render 3d model using Osg
>>>>> Viewer.
>>>>> When I am trying to run the code I am getting "vector script out of
>>>>> range error " for some 3d model.
>>>>>
>>>>> This is my code.
>>>>>
>>>>> /*osg header files */
>>>>>
>>>>> int main(int argc,char**argv)
>>>>> {
>>>>>
>>>>>
>>>>>      /*using ref_ptr*/
>>>>>      osg::ref_ptr<osg::Node> root = osgDB::readNodeFile("bunny.ply");
>>>>>      osgViewer::Viewer viewer;
>>>>>      viewer.setSceneData(root.get());
>>>>>      return viewer.run();
>>>>> }
>>>>>
>>>>> 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
>>>>>
>>>>>
>>>>> Thank you!
>>>>>
>>>>> Cheers,
>>>>> Uma
>>>>>
>>>>> ------------------
>>>>> Read this topic online here:
>>>>> http://forum.openscenegraph.org/viewtopic.php?p=68842#68842
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> osg-users mailing list
>>>>>
>>>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opens
>>>>> cenegraph.org
>>>>>
>>>>> _______________________________________________
>>>> osg-users mailing list
>>>>
>>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opens
>>>> cenegraph.org
>>>>
>>>>   ------------------
>>>> Post generated by Mail2Forum
>>>>
>>>
>>> ------------------
>>> Read this topic online here:
>>> http://forum.openscenegraph.org/viewtopic.php?p=68853#68853
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> osg-users mailing list
>>> osg-users at lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opens
>>> cenegraph.org
>>>
>>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161005/59dc7ca9/attachment-0002.htm>


More information about the osg-users mailing list