Hi Brad,

As you've spotted the GLU tessellation code has now been integrated
with the build of the core OSG library.  I have taken the code from
Mesa 7.9, which in turn based it's GLU implementation on SGI base.
I'd expect most GLU implementations are based on the original SGI code
base, they might all have different bug fixes applied to them, perhaps
the Mesa code doesn't have a fix that the previous GLU library that
you were linking against had, or perhaps I've introduced a bug during
integration.

One advantage now is that you will be able build the GLU code with
debug along with the rest of the OSG and be able step through it see
where problems might be arising.  From your stack trace the line:

:push_back(osg::Vec3f * const & _Val=0x00000000)

Looks pretty suspicious.  The debug info doesn't really reveal exactly
which code is calling phs_back with the dodgy value.

BTW, Do you see problems when you run osgtext3D? Or osgtessellate?
Both of these will be using the newly integrated GLU tessellation
code.

Robert.


On Wed, Oct 13, 2010 at 9:42 AM, Christiansen, Brad
<[email protected]> wrote:
> Hi,
>
> I forgot a few details. I am runnign Windows 7 with Visual Studio 2010.
>
> The relevent bit of the stack trace is:
>
>        msvcr100.dll!free(void * pBlock=0x0c3acde8)  Line 51    C
>>       osgUtilrd.dll!std::vector<osg::Vec3f *,std::allocator<osg::Vec3f *> 
>> >::reserve(unsigned int _Count=141)  Line 765 + 0x6 bytes   C++
>        osgUtilrd.dll!std::vector<osg::Vec3f *,std::allocator<osg::Vec3f *> 
> >::_Reserve(unsigned int _Count=150271084)  Line 1297 + 0x21 bytes  C++
>        osgUtilrd.dll!std::vector<osg::Vec3f *,std::allocator<osg::Vec3f *> 
> >::push_back(osg::Vec3f * const & _Val=0x00000000)  Line 995 + 0xe bytes    
> C++
>        08f4f488()
>        osgrd.dll!__gl_renderCache(osg::GLUtesselator * tess=0x08f4f9b4)  Line 
> 493 + 0x1a bytes C++
>
> Cheers,
>
> Brad
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Christiansen, Brad
> Sent: Wednesday, 13 October 2010 2:05 PM
> To: OpenSceneGraph Users
> Subject: [osg-users] Crash with SVN version of Tessellator
>
> Hi,
>
> I have just updated to the latest revision of OSG and am now getting a crash 
> when calling Tessellator.retessellatePolygons.
>
> The code in my application calling this function hasn't changed in many years 
> and has started breaking since the update. I have debugged the issue a little 
> and the crash is occuring when the Tessellator::endTessellation function is 
> called. The crash occurs on a call to free. I think I will need to do a full 
> debug build of OSG to get much further with my debuging (I am using release 
> with debug info) but a full rebuild will take me a while.
>
> The previous (working) version of OSG I used was revision 11703 and the new 
> (broken) revision is 11835.
>
> I know al the new GLU code has been added between these revision so I am 
> guessing that is what is causing the error. Before I go much further I was 
> wondering if anyone had any info that might help me track down the issue. It 
> doesn't seem that the required usage of Tessellator has changed but I am 
> hoping it has so I can simply call some different methods to fix the issue.
>
> Cheers,
>
> Brad
>
>
>
>
>
> DISCLAIMER:---------------------------------------------------------------------------
> This e-mail transmission and any documents, files and previous e-mail messages
> attached to it are private and confidential. They may contain proprietary or 
> copyright
> material or information that is subject to legal professional privilege. They 
> are for
> the use of the intended recipient only.  Any unauthorised viewing, use, 
> disclosure,
> copying, alteration, storage or distribution of, or reliance on, this message 
> is
> strictly prohibited. No part may be reproduced, adapted or transmitted 
> without the
> written permission of the owner. If you have received this transmission in 
> error, or
> are not an authorised recipient, please immediately notify the sender by 
> return email,
> delete this message and all copies from your e-mail system, and destroy any 
> printed
> copies. Receipt by anyone other than the intended recipient should not be 
> deemed a
> waiver of any privilege or protection. Thales Australia does not warrant or 
> represent
> that this e-mail or any documents, files and previous e-mail messages 
> attached are
> error or virus free.
> --------------------------------------------------------------------------------------
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
> DISCLAIMER:---------------------------------------------------------------------------
> This e-mail transmission and any documents, files and previous e-mail messages
> attached to it are private and confidential. They may contain proprietary or 
> copyright
> material or information that is subject to legal professional privilege. They 
> are for
> the use of the intended recipient only.  Any unauthorised viewing, use, 
> disclosure,
> copying, alteration, storage or distribution of, or reliance on, this message 
> is
> strictly prohibited. No part may be reproduced, adapted or transmitted 
> without the
> written permission of the owner. If you have received this transmission in 
> error, or
> are not an authorised recipient, please immediately notify the sender by 
> return email,
> delete this message and all copies from your e-mail system, and destroy any 
> printed
> copies. Receipt by anyone other than the intended recipient should not be 
> deemed a
> waiver of any privilege or protection. Thales Australia does not warrant or 
> represent
> that this e-mail or any documents, files and previous e-mail messages 
> attached are
> error or virus free.
> --------------------------------------------------------------------------------------
>
> _______________________________________________
> 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

Reply via email to