[vtkusers] QT 4.7.4 + VTK 5.10.1 + OSX rendering crash

Berkowitz, Benjamin M benjamin-berkowitz at uiowa.edu
Fri Jan 18 12:16:21 EST 2013


My Qt and VTK program is also crashing when I try to access anything in VTK through a slot.


Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000000f8

VM Regions Near 0xf8:
--> 
    __TEXT                 0000000103295000-0000000103be1000 [ 9520K] r-x/rwx SM=COW  /Users/USER/*/Aneu3D.app/Contents/MacOS/Aneu3D

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0                                 	0x000000010329de5e Aneu3D::Aneu3D() + 238
1                                 	0x000000010329dd65 Aneu3D::Aneu3D() + 21
2                                 	0x00000001032a7298 main + 72
3   libdyld.dylib                 	0x00007fff95b4b7e1 start + 1



On Jan 18, 2013, at 10:07 AM, Sean McBride <sean at rogue-research.com> wrote:

> On Fri, 18 Jan 2013 12:22:42 +0100, Alessandro said:
> 
>> I'm working on a multi-platform project using QT, VTK and ITK. I'm
>> working on a team so we run the project on several environments. Now,
>> I'm currently stuck on an OSX issue. Using a Linux environment,
>> provinding QT 4.8.3 and VTK 5.10.1 everything is ok. Once I try to run
>> the same code on a OSX 10.6.8, QT 4.7.4 and VTK 5.10.1, the program
>> crash in the paintEvent/rendering process with this error stack:
>> 
>> 0   ???                               0000000000 0 + 0
>> 1   libvtkRendering.5.10.dylib        0x04a543cc
>> vtkOpenGLRenderWindow::OpenGLInit() + 46 (vtkOpenGLRenderWindow.cxx:243)
>> 2   libvtkRendering.5.10.dylib        0x04ab5e9f
>> vtkCocoaRenderWindow::CreateAWindow() + 3471 (vtkCocoaRenderWindow.mm:726)
>> 3   libvtkRendering.5.10.dylib        0x04ab3646
>> vtkCocoaRenderWindow::Initialize() + 298 (vtkCocoaRenderWindow.mm:799)
> 
> Those line numbers seem a little off vs 5.10.1, but anyway it seems something dereferenced null.  Can you run in a debugger (gdb / lldb / Xcode) to see exactly what?
> 
> Cheers,
> 
> -- 
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com 
> Mac Software Developer              Montréal, Québec, Canada
> 
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list