|
|
#1 | |
|
Registered User
Join Date: May 2006
Posts: 4
|
Hi -
I'm encountering an Xlib error that seems to be originating from glXChannelRectSyncSGIX() in libGL. The error occurs after my app launches a Tcl/Tk file browser (via tk_getOpenFile -multiple) to select a file. After the "OK" button is clicked, the program crashes on the X Error (glXBadContextTag). A couple of things: 1) I am using multiple threads and glXContexts. When loading data, one thread reads and loads the data while another thread refreshes the OpenGL window (rendering context sharing is enabled). 2) If I use single thread, everything works fine. 3) Also tried using GTK and got the same error. From the XError, I'm guessing that when the Tcl/Tk window closes it is somehow screwing up the current rendering context so when the other thread tries to render it has a bad context? Anyone have any idea how to fix this? Thanks. |
|
|
|
|
|
|
#2 | |
|
NVIDIA Corporation
Join Date: Mar 2005
Posts: 2,487
|
Did you remember to call XInitThreads? Also, are you sure that the same context is never current in two threads at once?
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: May 2006
Posts: 4
|
Ah, I was missing XInitThreads(). Thanks very much! Things are working much better now.
![]() |
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Graphics driver installation problem (your comments will be highly appreciated) | apuurboo | NVIDIA GeForce 400/500 Series | 0 | 06-16-12 07:35 AM |
| Redhat 8.0 NVIDIA works - INSTRUCTIONS | STEEL1 | NVIDIA Linux | 267 | 04-15-03 06:48 PM |
| Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) | Katchina404 | NVIDIA Linux | 9 | 01-12-03 08:49 AM |
| failing to initialize NV driver | PsyShook | NVIDIA Linux | 10 | 09-19-02 12:41 PM |
| Nvidia Driver causes crash on Standby/Suspend | dasher | NVIDIA Linux | 5 | 09-16-02 05:57 PM |