info-inventor-dev
[Top] [All Lists]

Re: Q: GLX non sever Runtime Error

To: info-inventor <info-inventor@xxxxxxxxxxx>, info-inventor-dev <info-inventor-dev@xxxxxxxxxxx>
Subject: Re: Q: GLX non sever Runtime Error
From: Christoph Hintermueller <hinzge@xxxxxxxxxxxxxx>
Date: Mon, 01 Oct 2001 13:42:43 +0200
Newsgroups: comp.graphics.api.inventor
References: <3BB1D457.9070304@sbox.tugraz.at>
Sender: owner-info-inventor-dev@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; 0.7) Gecko/20010316
Christoph Hintermueller wrote:

Hi
What do i have to look for if I do get the following message
   GLX Error: maximum number of visuals exceeded

Which lines of code I do have to take a closer look to
What do I have to assume might have been misscode
if getting this messages ???

cu
Christoph

Hi Solved It Was the SoOffscreenRenderer or better the functions SoOffscreenRender::getMaximumResolution(); SoOffscreenRender::getPixelsPerInch(),

These to seem to create a new XVisual everytime they are called
So when calling them in callback functions too they rapidly use up the number of possible XVisuals without freeing them afterwards.


Solution:
set Offscreen Renderer to RGB_TRANSPARANCY in order to make sure that the maximum Resolution returned is related to the Render Mode using up
most space. Than query the max resolution and DPI and save both in
member variables :)


cu
Christoph


<Prev in Thread] Current Thread [Next in Thread>
  • Re: Q: GLX non sever Runtime Error, Christoph Hintermueller <=