That change seemed to fix it on my computer. Thanks.
Alex -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Robert Osfield Sent: Wednesday, January 28, 2009 1:05 AM To: OpenSceneGraph Users Subject: Re: [osg-users] possible bug in cfg plugin Hi Alexander, I didn't see the crash (I work under Linux) but a code review of the RenderSurface constructor did reveal that it was lacking a number of member variable initializers. I have added these back including the missing _realized = false; line. These changes are now checked in. I've also attached the changed src/osgPlugins/cfgRenderSurface.cpp. Could you test and let me know if it fixes things. FYI, you don't need to svn access to check svn - you can do it all on the website - just go to Browse Source link from the front page. Our svn server also support https, there is a chance this might work for you. Robert. On Tue, Jan 27, 2009 at 11:53 PM, Pecoraro, Alexander N <[email protected]> wrote: > I noticed a bug in the 2.6.0 version of the API with the viewer config file > reader plugin. I can't access the latest developer source code right now so > I can't verify that the bug still exists in the 2.7 version of the API, but > I've attached the config file that I used to reproduce the problem. The > problem is that the plugin causes a segfault when it reads that > configuration file because the _realized member variable of the > RenderSurface class defined in src/osgPlugins/cfg/RenderSurface.cpp is never > given an initial value. Interestingly enough this problem does not occur on > my Linux box, which is running Redhat Enterprise Client 5. However, on my > Windows box with Visual Studio 2005 Professional the _realized variable is > auto-initialized to true which ends up causing the segfault to occur. I'm > guessing, but haven't verified, that the reason it works on my Linux box is > because the GCC compiler auto-initializes the variable to false which > prevents the bug from occurring. > > > > Here is how I ran the osgviewer to get it to crash: > > > > osgviewer -c oneWindow.cfg <name of osg file> > > > > I also found that once I went into the ReaderSurface's constructor and added > "_realized = false;" to it then the bug went away. > > > > Alex > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

