Nate,

Sorry, I got my wires crossed.  I did have the <renderMethod> set to SGIX not XLIB.  Please disregard my original post.

Mark


On Apr 11, 2006, at 2:09 PM, Mark Woehrer wrote:

Nate,

Yes, the last value is a return value. My mistake.                                                                                                                                                                                                                                                                  

Yes, I was using XLIB for the render method:                                                                
<renderMethod>XLIB</renderMethod>

I will take another look at the code and see if I can figure something out.

Mark


-----

Hello,

The last parameter to glXChooseFBConfigSGIX is a return value. The
function sets config_count to the number of elements in the config
array which it returns. It doesn't use the value as a count.

If you were using XLIB the InitSGIX function should never have been
called. Are you sure you have set your <renderMethod> to xlib?

-nate

On 4/10/06, Mark Woehrer <markwoehrer@ou.edu> wrote:
> All,
>
> I have run into a major problem while running Gazebo 0.6.0 on OS X
> v10.4.5.  It also applies to Gazebo 0.5.2.
>
> When I run wxgazebo using 'example.world' (XLIB render method) I get
> the following error:
>
> Bus Error
>
> Here is what I found with gdb:
>
> GLContext::InitSGIX (this=0x1805008, shareList=0x0) at GLContext.cc:462
> 462         config = configs[i];
>
> After a little work I found that the error is actually on line 456 of
> 'server/sensors/Camera/GLContext.cc'.
>
> Here is the original code:
> configs = glXChooseFBConfigSGIX(::display, 0, attrList, &config_count);
>
> Here is the modified code:
> configs = glXChooseFBConfigSGIX(::display, 0, attrList, &attrCount);
>
> Basically the wrong count is being passed to glXChooseFBConfigSGIX().
>
> Using the modified code fixes the problem for me.
>
> Thanks,
> Mark
>
> Mark Woehrer
> Doctoral Student
> Computer Science
> Oklahoma University
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Playerstage-gazebo mailing list
> Playerstage-gazebo@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>