Hi, I've just started experimenting with GEM. I compiled Gem and pd from source on Slackware 10.2 with kernel 2.6.13 and the nVidia binary driver.
The problem is that creating windows works just the first time. When I destroy it the window closes properly, but when I recreate it the windows remains black, and I get this infamous message in the log file:
NVRM: Xid: 6, PE0002 0470 c11daf4b 000bf858 00000000 00000003
I don't have any other problem using opengl on this setup, other than Gem.
Before digging into the code myself I thought to ask here. It seems that the code that disposes the window fails to free some resource.
Suggestions?
Thanks in advance, c.
Cesare Marilungo wrote:
Hi, I've just started experimenting with GEM. I compiled Gem and pd from source on Slackware 10.2 with kernel 2.6.13 and the nVidia binary driver.
The problem is that creating windows works just the first time. When I destroy it the window closes properly, but when I recreate it the windows remains black, and I get this infamous message in the log file:
NVRM: Xid: 6, PE0002 0470 c11daf4b 000bf858 00000000 00000003
I don't have any other problem using opengl on this setup, other than Gem.
Before digging into the code myself I thought to ask here. It seems that the code that disposes the window fails to free some resource.
Suggestions?
Thanks in advance, c.
I can't believe anybody else is having this problem. It hangs my machine if I mess in opening and closing Gem windows.
Anyway I solved it by adding:
glXMakeCurrent(info.dpy, None, NULL);
before calling glXDestroyContext in GemWinCreateXWin.cpp (line 240 in gem 0.90).
Now I can destroy and recreate windows without problems. Authors, please patch this.
www.cesaremarilungo.com
Cesare Marilungo wrote:
Cesare Marilungo wrote:
Hi, I've just started experimenting with GEM. I compiled Gem and pd from source on Slackware 10.2 with kernel 2.6.13 and the nVidia binary driver.
The problem is that creating windows works just the first time. When I destroy it the window closes properly, but when I recreate it the windows remains black, and I get this infamous message in the log file:
NVRM: Xid: 6, PE0002 0470 c11daf4b 000bf858 00000000 00000003
I don't have any other problem using opengl on this setup, other than Gem.
Before digging into the code myself I thought to ask here. It seems that the code that disposes the window fails to free some resource.
Suggestions?
Thanks in advance, c.
I can't believe anybody else is having this problem. It hangs my machine if I mess in opening and closing Gem windows.
Anyway I solved it by adding:
glXMakeCurrent(info.dpy, None, NULL);
before calling glXDestroyContext in GemWinCreateXWin.cpp (line 240 in gem 0.90).
Now I can destroy and recreate windows without problems. Authors, please patch this.
c.
from the source:
glXDestroyContext(info.dpy, info.context); // this crashes sometimes on my laptop
Hope this fix it. :-)
c.
Cesare Marilungo wrote:
Cesare Marilungo wrote:
I can't believe anybody else is having this problem. It hangs my machine if I mess in opening and closing Gem windows.
well, afaik, there is a comment at the glXDestroyContext()-line that says "this sometimes crashes my laptop"...
Now I can destroy and recreate windows without problems. Authors, please patch this.
thanks for the fix, i'll commit it to the CVS.
mfg.asdr IOhannes