Anyone had this problem? Whenever I destroy a gemwin, Pd crashes with a segmentation fault. I'm using pd-extended 0.40.3 on Kubuntu Intrepid.
That works ok for other people, right?
thanks,
-ben
\[Linux\] gemwin destroy causes segfault
Anyone had this problem? Whenever I destroy a gemwin, Pd crashes with a segmentation fault. I'm using pd-extended 0.40.3 on Kubuntu Intrepid.
That works ok for other people, right?
thanks,
-ben
Used to happen to me, too. Compiled GEM(well, the entire Pd SVN, actually) from source and fixed it.
Thanks, I'll try that. My other machine runs Hardy and it's fine, so must be either something with the Intrepid package or something with that laptop.
I also had this problem, if you dont want to compile you cant try the Nightly Auto-Builds.
http://autobuild.puredata.info/auto-build/
It worked for me.
Thanks, I'll try that next. I built my own GEM (easy), but I'm still getting the same behavior. Whenever I close a gemwin, Pd crashes with a segfault.
here's the backtrace from gdb:
#0 0xb6834bb0 in ?? ()
#1 0xb7998510 in glXMakeCurrent () from /usr/lib/libGL.so.1
#2 0xb7c39e32 in gemWinMakeCurrent () from /home/ben/src/gem-0.91-3/src/Gem.pd_linux
#3 0xb7c2845a in GemMan::destroyWindow () from /home/ben/src/gem-0.91-3/src/Gem.pd_linux
#4 0xb7c28c05 in GemMan::render () from /home/ben/src/gem-0.91-3/src/Gem.pd_linux
#5 0x080c351c in m_mainloop () at m_sched.c:372
#6 0x080c6b55 in sys_main (argc=5, argv=0xbfab4ff4) at s_main.c:313
#7 0x080d26cf in main (argc=170465544, argv=0xa290388) at s_entry.c:32
My card is an ATI Mobility Radeon X1600. Probably the culprit is ATI's sucky drivers (Catalyst 8.54.3).
This made me chuckle, here's the point in the code where the crash is happening:
void gemWinMakeCurrent(WindowInfo&nfo)
{
if (!nfo.dpy && !nfo.win && !nfo.context)return; // do not crash
glXMakeCurrent(nfo.dpy, nfo.win, nfo.context);
}
Note the optimistic comment.
Oh for crying out loud:
void GemMan :: destroyWindow()
{
<snip>
// reestablish the const glxContext
/* this crashes on linux with intel cards */
gemWinMakeCurrent(constInfo);
}
uhhhh .... so .... what do I do now, exactly? wonder what happens if I take that out...
EDIT:
Yup, that fixed it. Everything seems to work fine, I haven't noticed any problems by removing it ... happy happy happy!
Oops! Looks like something went wrong!