[osg-users] GL error line 2255: invalid operation

2015-03-05 Thread Trajce Nikolov NICK
Hi All,

have some of you experienced this error. it is annoying and I have not clue
how to fix it. Any hint is appreciated

Thanks a lot as always !

Nick

-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL error line 2255: invalid operation

2015-03-05 Thread Björn Blissing
Hi Nick,

I got a couple of this while doing the Oculus integration (mostly due to Oculus 
driver injection). But the procedure I usually use is this:

1. Enabled OpenGL debugging in OpenSceneGraph by setting the environment 
variable:

OSG_GL_ERROR_CHECKING=ON

This will give you more information of which class that triggered the GL error. 
(Although this is not always true, there are some caveats).

2. Once I found which class that is the probable offender I usually add some 
debug printouts in that OSG class, printing out the name of the node, attribute 
or whatever classtype is triggering the error.

The caveats:
This process usually finds you the offending call. But you cannot trust it 
100%. This is due to the fact that to clear the error flag you have to call 
glGetError(), and since OSG cannot have glGetError() calls after every single 
one of its OpenGL calls, sometimes the wrong class gets reported. 

So if you suspects that OSG is pointing the finger on the wrong class. Start by 
adding a glGetError() call as first OpenGL call in that class. Otherwise you 
might chase an error that actually exists in another class.

Good luck on you bug hunting!

Björn

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=62968#62968





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL error line 2255: invalid operation

2015-03-05 Thread Trajce Nikolov NICK
Thanks Bjorn. I will start debugging 

Nick

On Thu, Mar 5, 2015 at 11:21 PM, Björn Blissing 
wrote:

> Hi Nick,
>
> I got a couple of this while doing the Oculus integration (mostly due to
> Oculus driver injection). But the procedure I usually use is this:
>
> 1. Enabled OpenGL debugging in OpenSceneGraph by setting the environment
> variable:
>
> OSG_GL_ERROR_CHECKING=ON
>
> This will give you more information of which class that triggered the GL
> error. (Although this is not always true, there are some caveats).
>
> 2. Once I found which class that is the probable offender I usually add
> some debug printouts in that OSG class, printing out the name of the node,
> attribute or whatever classtype is triggering the error.
>
> The caveats:
> This process usually finds you the offending call. But you cannot trust it
> 100%. This is due to the fact that to clear the error flag you have to call
> glGetError(), and since OSG cannot have glGetError() calls after every
> single one of its OpenGL calls, sometimes the wrong class gets reported.
>
> So if you suspects that OSG is pointing the finger on the wrong class.
> Start by adding a glGetError() call as first OpenGL call in that class.
> Otherwise you might chase an error that actually exists in another class.
>
> Good luck on you bug hunting!
>
> Björn
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=62968#62968
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL error line 2255: invalid operation

2015-03-05 Thread Trajce Nikolov NICK
suddenly OSG_GL_ERROR_CHECKING=ON is not verbose at all for this error 
still the same :-/

Nick

On Thu, Mar 5, 2015 at 11:16 PM, Trajce Nikolov NICK <
trajce.nikolov.n...@gmail.com> wrote:

> Thanks Bjorn. I will start debugging 
>
> Nick
>
> On Thu, Mar 5, 2015 at 11:21 PM, Björn Blissing 
> wrote:
>
>> Hi Nick,
>>
>> I got a couple of this while doing the Oculus integration (mostly due to
>> Oculus driver injection). But the procedure I usually use is this:
>>
>> 1. Enabled OpenGL debugging in OpenSceneGraph by setting the environment
>> variable:
>>
>> OSG_GL_ERROR_CHECKING=ON
>>
>> This will give you more information of which class that triggered the GL
>> error. (Although this is not always true, there are some caveats).
>>
>> 2. Once I found which class that is the probable offender I usually add
>> some debug printouts in that OSG class, printing out the name of the node,
>> attribute or whatever classtype is triggering the error.
>>
>> The caveats:
>> This process usually finds you the offending call. But you cannot trust
>> it 100%. This is due to the fact that to clear the error flag you have to
>> call glGetError(), and since OSG cannot have glGetError() calls after every
>> single one of its OpenGL calls, sometimes the wrong class gets reported.
>>
>> So if you suspects that OSG is pointing the finger on the wrong class.
>> Start by adding a glGetError() call as first OpenGL call in that class.
>> Otherwise you might chase an error that actually exists in another class.
>>
>> Good luck on you bug hunting!
>>
>> Björn
>>
>> --
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=62968#62968
>>
>>
>>
>>
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
>
> --
> trajce nikolov nick
>



-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL error line 2255: invalid operation

2015-03-05 Thread Sebastian Messerschmidt

Hi Nick,

Try geDebugger [1] etc.. Under visual studio they even integrate into 
the GUI, so you will be able to debug the offending line which causes 
the error.



[1] http://developer.amd.com/tools-and-sdks/archive/amd-gdebugger/

Cheers
Sebastian
suddenly OSG_GL_ERROR_CHECKING=ON is not verbose at all for this error 
 still the same :-/


Nick

On Thu, Mar 5, 2015 at 11:16 PM, Trajce Nikolov NICK 
mailto:trajce.nikolov.n...@gmail.com>> 
wrote:


Thanks Bjorn. I will start debugging 

Nick

On Thu, Mar 5, 2015 at 11:21 PM, Björn Blissing
mailto:bjorn.bliss...@vti.se>> wrote:

Hi Nick,

I got a couple of this while doing the Oculus integration
(mostly due to Oculus driver injection). But the procedure I
usually use is this:

1. Enabled OpenGL debugging in OpenSceneGraph by setting the
environment variable:

OSG_GL_ERROR_CHECKING=ON

This will give you more information of which class that
triggered the GL error. (Although this is not always true,
there are some caveats).

2. Once I found which class that is the probable offender I
usually add some debug printouts in that OSG class, printing
out the name of the node, attribute or whatever classtype is
triggering the error.

The caveats:
This process usually finds you the offending call. But you
cannot trust it 100%. This is due to the fact that to clear
the error flag you have to call glGetError(), and since OSG
cannot have glGetError() calls after every single one of its
OpenGL calls, sometimes the wrong class gets reported.

So if you suspects that OSG is pointing the finger on the
wrong class. Start by adding a glGetError() call as first
OpenGL call in that class. Otherwise you might chase an error
that actually exists in another class.

Good luck on you bug hunting!

Björn

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=62968#62968





___
osg-users mailing list
osg-users@lists.openscenegraph.org


http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




-- 
trajce nikolov nick





--
trajce nikolov nick


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL error line 2255: invalid operation

2015-03-06 Thread Trajce Nikolov NICK
Thanks Sebastian. I have to switch to my Windows machine :-)

Cheers,
Nick

On Fri, Mar 6, 2015 at 8:47 AM, Sebastian Messerschmidt <
sebastian.messerschm...@gmx.de> wrote:

>  Hi Nick,
>
> Try geDebugger [1] etc.. Under visual studio they even integrate into the
> GUI, so you will be able to debug the offending line which causes the error.
>
>
> [1] http://developer.amd.com/tools-and-sdks/archive/amd-gdebugger/
>
> Cheers
> Sebastian
>
>  suddenly OSG_GL_ERROR_CHECKING=ON is not verbose at all for this error
>  still the same :-/
>
>  Nick
>
> On Thu, Mar 5, 2015 at 11:16 PM, Trajce Nikolov NICK <
> trajce.nikolov.n...@gmail.com> wrote:
>
>>  Thanks Bjorn. I will start debugging 
>>
>>  Nick
>>
>> On Thu, Mar 5, 2015 at 11:21 PM, Björn Blissing 
>> wrote:
>>
>>> Hi Nick,
>>>
>>> I got a couple of this while doing the Oculus integration (mostly due to
>>> Oculus driver injection). But the procedure I usually use is this:
>>>
>>> 1. Enabled OpenGL debugging in OpenSceneGraph by setting the environment
>>> variable:
>>>
>>> OSG_GL_ERROR_CHECKING=ON
>>>
>>> This will give you more information of which class that triggered the GL
>>> error. (Although this is not always true, there are some caveats).
>>>
>>> 2. Once I found which class that is the probable offender I usually add
>>> some debug printouts in that OSG class, printing out the name of the node,
>>> attribute or whatever classtype is triggering the error.
>>>
>>> The caveats:
>>> This process usually finds you the offending call. But you cannot trust
>>> it 100%. This is due to the fact that to clear the error flag you have to
>>> call glGetError(), and since OSG cannot have glGetError() calls after every
>>> single one of its OpenGL calls, sometimes the wrong class gets reported.
>>>
>>> So if you suspects that OSG is pointing the finger on the wrong class.
>>> Start by adding a glGetError() call as first OpenGL call in that class.
>>> Otherwise you might chase an error that actually exists in another class.
>>>
>>> Good luck on you bug hunting!
>>>
>>> Björn
>>>
>>> --
>>> Read this topic online here:
>>> http://forum.openscenegraph.org/viewtopic.php?p=62968#62968
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> osg-users mailing list
>>> osg-users@lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>
>>
>>
>>
>>  --
>> trajce nikolov nick
>>
>
>
>
> --
> trajce nikolov nick
>
>
> ___
> osg-users mailing 
> listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL error line 2255: invalid operation

2015-03-06 Thread Sebastian Messerschmidt

Am 06.03.2015 um 10:34 schrieb Trajce Nikolov NICK:

Thanks Sebastian. I have to switch to my Windows machine :-)
Maybe some of the Unix-users here can drop in and tell us if there is 
some tool on Unix to debug OpenGL calls.


Cheers
Sebastian


Cheers,
Nick

On Fri, Mar 6, 2015 at 8:47 AM, Sebastian Messerschmidt 
> wrote:


Hi Nick,

Try geDebugger [1] etc.. Under visual studio they even integrate
into the GUI, so you will be able to debug the offending line
which causes the error.


[1] http://developer.amd.com/tools-and-sdks/archive/amd-gdebugger/

Cheers
Sebastian

suddenly OSG_GL_ERROR_CHECKING=ON is not verbose at all for this
error  still the same :-/

Nick

On Thu, Mar 5, 2015 at 11:16 PM, Trajce Nikolov NICK
mailto:trajce.nikolov.n...@gmail.com>> wrote:

Thanks Bjorn. I will start debugging 

Nick

On Thu, Mar 5, 2015 at 11:21 PM, Björn Blissing
mailto:bjorn.bliss...@vti.se>> wrote:

Hi Nick,

I got a couple of this while doing the Oculus integration
(mostly due to Oculus driver injection). But the
procedure I usually use is this:

1. Enabled OpenGL debugging in OpenSceneGraph by setting
the environment variable:

OSG_GL_ERROR_CHECKING=ON

This will give you more information of which class that
triggered the GL error. (Although this is not always
true, there are some caveats).

2. Once I found which class that is the probable offender
I usually add some debug printouts in that OSG class,
printing out the name of the node, attribute or whatever
classtype is triggering the error.

The caveats:
This process usually finds you the offending call. But
you cannot trust it 100%. This is due to the fact that to
clear the error flag you have to call glGetError(), and
since OSG cannot have glGetError() calls after every
single one of its OpenGL calls, sometimes the wrong class
gets reported.

So if you suspects that OSG is pointing the finger on the
wrong class. Start by adding a glGetError() call as first
OpenGL call in that class. Otherwise you might chase an
error that actually exists in another class.

Good luck on you bug hunting!

Björn

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=62968#62968





___
osg-users mailing list
osg-users@lists.openscenegraph.org


http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




-- 
trajce nikolov nick





-- 
trajce nikolov nick



___
osg-users mailing list
osg-users@lists.openscenegraph.org  

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



___
osg-users mailing list
osg-users@lists.openscenegraph.org

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




--
trajce nikolov nick


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL error line 2255: invalid operation

2015-03-07 Thread Björn Blissing
Hi,

I haven't tried it myself, but gDebugger is available for Linux as well:
http://developer.amd.com/tools-and-sdks/archive/amd-gdebugger/

Cheers 
Björn

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=62983#62983





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL error line 2255: invalid operation

2015-03-07 Thread Trajce Nikolov NICK
Thanks Bjorn

Nick

On Sat, Mar 7, 2015 at 10:29 PM, Björn Blissing 
wrote:

> Hi,
>
> I haven't tried it myself, but gDebugger is available for Linux as well:
> http://developer.amd.com/tools-and-sdks/archive/amd-gdebugger/
>
> Cheers
> Björn
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=62983#62983
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org