I'm developing a python application that uses a C-extension module I also developed myself. The extension module does some heavy number crunching and makes use of OpenMP.
I was recently adding some GUI components to my Python application using PyQt4. However, when I show a window, the application crashes before the window is fully drawn (The window shows up very shortly). I was able to track the problem down: When I compile my number-crunching C-extension without OpenMP support the Window shows up fine and everything works. I guess it has something to do with the threading stuff between OpenMP and Qt. Has anyone ever made a similar observation?
As a workaround, you can create a stand alone program using openmp, and a Qt frontend program. and make them communicate by using tcp socket or something you familiar (dll is another option?).
the point is, isolate different modules, if one module fails, you know which part fails.
as one whole big program, it is hard to find one wild pointer...
Crash when showing a PyQt4 Window after importing a python extension that uses OpenMP