
Mon, 03/03/2008 - 17:20
Forums:
Hi,
As I've said here before, I'm working on a project that's using OpenCascade for some representation functionalities. We are using Qt4.3.
I am experiencing this problem on 3 machines.
The first one is crashing when I close the program by a segfault (ubuntu edgy).
The second one is my laptop and segfaults on opening (debian sid).
The third one is another laptop and crashes with this error:
>> terminate called after throwing an instance of 'Aspect_GraphicDeviceDefinitionError'
(mac os X)
This makes me think that it is a wrong initialization problem, but I can't find it.
I've checked Qt OpenCascade on all linux machines and works properly
Wed, 03/05/2008 - 12:48
Hi,
could you try to run your program in a debugger? ddd might be the easiest.
Cheers, Torsten
Wed, 03/05/2008 - 12:50
Another point:
Are you using a native or a X11 Qt on MacOSX. You mut use X11. Native can't work.
Cheers, Torsten
Wed, 03/05/2008 - 20:03
I'm running it on X11, i'm using your patches in fact, IIRC. :)
I'm debugging it, it hangs when creating the Viewer, I can send you a backtrace if you want to tomorrow.
The backtrace is the same on the linux version that hangs when loading and MacOS X.
Bye!
Thu, 03/06/2008 - 23:33
How are you link with Qt4. If you're using any of my QtOOC codes, whic version are you using. The reason I ask is that there were versions on different platforms that had problems with trying to create OpenGL contexts before the window had been correctly initialised. I thought that the qtoccharness on the sourceforge site http://sourceforge.net/project/showfiles.php?group_id=207005 was working on Win32, Linux and MacOS X11, although the qtgeom code in SVN has improved the widget further.
The graphics initialisation error is also a symptom of an incorrectly set environment variable.
Pete