I am desperate :)

I am trying to install PyOpenCL on a Linux machine (Manjaro, arch-based) for several days now.
I have an Nvidia GeForce GT640, I have installed the last drivers, OpenCL, OpenGL, ... everything.
I have installed PyOpenCL with the --cl_enable_gl flag.
I have the correct drivers and OpenGL libraries (as far I can see from glxinfo | grep OpenGL).

My problem is that I cannot run any code involving the GL interop.
The situation looks very similar to what described here:

but in my case I had a look the the cffi_cl.py file and it looks in the version I have the bug has been corrected already by the developers.

Every time I try to get a context this way:
ctx = cl.Context(properties=[(cl.context_properties.PLATFORM, platform)] + get_gl_sharing_properties(), devices = [platform.get_devices()[0]])

the python script crashes with a "Segmentation fault (core dumped)".

dmesg gives many errors like:
segfault at XXXXXX ip YYYY  sp ZZZZZZZZ error 5 in libGLX_nvidia.so.390.25
segfault at XXXXXX ip YYYY  sp ZZZZZZZZ error 4 in libGLX_nvidia.so.390.25

However, if I compile and run the interop examples written in C in the Nvidia SDK everything works fine. For this I am sure my environment works.

All my interop python scripts are perfectly working on another computer (MacBook Air) where I have another installation of PyOpenCL.

Do you have any suggestion? Could this be a bug somewhere in PyOpenCL?

Best regards,

Erik Zorzin
address: Viale Miramare 235, 34136 Trieste - ITALY
phone: (+39) 3291555703
webpage: http://www.zorzin.com

(sent from my MacBook Air, Erik Zorzin - HOME)