Hello Eric,
On Tue, 2007-09-04 at 09:35 -0400, Eric Maslowski wrote:
> Hello,
> Replacing the "vector<bool>" with a "vector<Uint8>" fixed that issue, but
> ran into another semi-related one. (see below) First, just want to point out
> that there were a few instances of vector<bool> scattered about. Some were:
> vector <bool > for formatting purposes. (just in case this gets added to
> the standard release)
>
> As for the other issue, I'm getting a vector out of range now in
> RenderAction::start(id). Digging a little deeper shows that it's actually
> coming from the "window->hasExtension(_arbOcclusionQuery)." inside
> hasExtension(), _arbOcclusionQuery has id of 35, when total count of entries
> in list (_availExtensions) is 35. Thus, causing out of range error. This
> only seems to happen in a clustered application when using more than one
> osg::viewport. (e.g. for stereo rendering)
hm, it might be a problem with concurrent access to the extension
handling, but this is just a guess. I'll take a look at the extension
handling from that angle.
> Unfortunately, I don't know enough about how OpenSG handles extensions to be
> of much help here, but if someone has a work around/fix, I would really
> appreciate it.
I imagine it would be possible to paper over the problem, by either
finding out how to disable the range checks in the MS STL or use the
attached patch (but that might disable an extension, although it is
actually available), to get things going.
> OpenSG 1.8 (daily build: Sep 2, 2007)
> NVIDIA Quadro 5600 (latest drivers)
> WinXP 64
Thanks,
Carsten
Index: Source/System/Window/OSGWindow.inl
===================================================================
RCS file: /cvsroot/opensg/OpenSG/Source/System/Window/OSGWindow.inl,v
retrieving revision 1.18
diff -u -r1.18 OSGWindow.inl
--- Source/System/Window/OSGWindow.inl 26 Mar 2007 14:15:03 -0000 1.18
+++ Source/System/Window/OSGWindow.inl 5 Sep 2007 23:18:52 -0000
@@ -63,6 +63,9 @@
*/
inline bool Window::hasExtension(UInt32 id)
{
+ if(id >= _availExtensions.size())
+ return false;
+
return _availExtensions[id];
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users