Hi Vincent/Gordon,
Thanks for your quick replies.
I've had a read of the thread, but I'm not actually updating the text once it's
added as a drawable so, if I understand correctly, I shouldn't need to worry
about thread safety.
But to be on the safe side, I've also set the text data variance to DYNAMIC,
which worked for me in the past when I had similar issues but only when
updating text objects.
What is odd though is that the crash only happens when I use two fonts.
If I use just one I get the:
before Font::Glyph::subload(): detected OpenGL error 'invalid operation'
error, but continues on, if I use two fonts it bombs.
Kim.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Tomlinson,
Gordon
Sent: 02 March 2009 14:40
To: OpenSceneGraph Users
Subject: Re: [osg-users] Curious osgText crash
Hi Kim
Not much help:
I have seen the same message occasionally when updating text ( not had crashes)
But have no been able to track down issue that may causing subload message yet
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Vincent
Bourdier
Sent: Monday, March 02, 2009 9:37 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Curious osgText crash
Hi Kim,
I had a problem like this in the past, I solved it using a draw callback to
update the texts.
you can read this problem here :
http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/39315/focus=39408
Hopping this can help you.
Regards,
Vincent.
2009/3/2 Kim C Bale <[email protected]>:
> Hi all,
>
>
>
> I'm getting some odd errors in conjunction with osgText.
>
>
>
> I'm loading two font files and assigning them to various osgText
> drawables, which are in turn added to a series geodes.
>
> Each geode is then rendered to texture using individual pre render FBO
> cameras.
>
>
>
> When I set the application to single threaded all is well, however
> when I set it to AutomaticSelection
>
>
>
> It prints the error:
>
>
>
> before Font::Glyph::subload(): detected OpenGL error 'invalid
> operation
>
> before Font::Glyph::subload(): detected OpenGL error '
>
>
>
> Before crashing with an access violation. Last four entries on the
> call stack are at the base of the post.
>
>
>
> I'm not changing the text at any point after I've done the initial set
> up and I've tried setting the data variance on the osgText drawables
> to DYNAMIC. But it doesn't seem to help.
>
>
>
> Anybody have any ideas what's gone wrong here? Hopefully I've given
> enough information.
>
>
>
> Cheers,
>
>
>
> Kim.
>
>
>
>
>
>
>
> msvcr80d.dll!strlen(unsigned char * buf=0x0549ef78) Line 81 Asm
>
>
>
> msvcp80d.dll!std::char_traits<char>::length(const char *
> _First=0x00000000) Line 559 + 0x9 bytes C++
>
>
>
> osg55-osgTextd.dll!std::operator<<<std::char_traits<char>
>>(std::basic_ostream<char,std::char_traits<char> > & _Ostr={...}, const
>>char
> * _Val=0x00000000) Line 748 + 0xc bytes C++
>
>
>
> osg55-osgTextd.dll!std::operator<<<std::char_traits<char>
>>(std::basic_ostream<char,std::char_traits<char> > & _Ostr={...}, const
> unsigned char * _Val=0x00000000) Line 929 + 0xd bytes C++
>
>
>
>
>
> **********************************************************************
> ******************* To view the terms under which this email is
> distributed, please go to
> http://www.hull.ac.uk/legal/email_disclaimer.html
> **********************************************************************
> ******************* _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.
> org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org*****************************************************************************************
To view the terms under which this email is distributed, please go to
http://www.hull.ac.uk/legal/email_disclaimer.html
*****************************************************************************************
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org