Message: Qt+OpenGL crashes on Snow Leopard Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Qt+OpenGL crashes on Snow Leopard 

Forum: (Graphical) User Interfaces
Date: 05 Feb, 2010
From: Mojca Miklavec <Mojca Miklavec>

I have first tried to build geant4 version geant4.9.2.p02 with Qt libraries from
     http://qt.nokia.com/downloads
Most probably I had the following installed (or maybe some earlier version):
     http://get.qt.nokia.com/qtsdk/qt-sdk-mac-opensource-2010.01.dmg

The building failed since the Qt libraries mentioned above do not contain libraries and binaries for 64-bit architecture.

After that I have tried geant4.9.3 and explicitely downloaded the package mentioned on
    http://qt.nokia.com/downloads/mac-os-cpp (this is the cover page)
namely:
    Mac binary package using Cocoa for Mac OS X 10.5 (32-bit and 64-bit)
    http://get.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.6.1.dmg

The build went through just fine, but:
- OpenGL works fine
- Qt alone works fine as well; that is: I'm able to use
   "unset G4UI_USE_TCSH"
   and I get the Qt user interface in input line
- Qt+OpenGL doesn't work; that is: if I take N02 from beginners' examples and replace
       /vis/open OGLIX 600x600-0+0
   with
       /vis/open OGLIQt
it crashes. Other Snow Leopard users reported crashing sessions as well.

Visualization Manager instantiating...
Visualization Manager initialising...
Registering graphics systems...

You have successfully registered the following graphics systems.
Current available graphics systems are:
  ASCIITree (ATree)
  DAWNFILE (DAWNFILE)
  G4HepRep (HepRepXML)
  G4HepRepFile (HepRepFile)
  RayTracer (RayTracer)
  VRML1FILE (VRML1FILE)
  VRML2FILE (VRML2FILE)
  gMocrenFile (gMocrenFile)
  OpenGLImmediateX (OGLIX)
  OpenGLStoredX (OGLSX)
  OpenGLImmediateQt (OGLIQt)
  OpenGLStoredQt (OGLSQt)
  RayTracerX (RayTracerX)
  VRML1 (VRML1)
  VRML2 (VRML2)

Registering model factories...

You have successfully registered the following model factories.
Registered model factories:
  generic
  drawByCharge
  drawByParticleID
  drawByOriginVolume
  drawByAttribute

Registered filter factories:
  chargeFilter
  particleFilter
  originVolumeFilter
  attributeFilter

Segmentation fault


Report:

Process:         exampleN02 [8723]
Path:            /Users/mojca/geant4/bin/Darwin-g++/exampleN02
Identifier:      exampleN02
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  bash [7509]

Date/Time:       2010-02-05 20:27:56.232 +0100
OS Version:      Mac OS X 10.6.2 (10C540)
Report Version:  6

Interval Since Last Report:          149771 sec
Crashes Since Last Report:           5
Per-App Crashes Since Last Report:   5
Anonymous UUID:                      FEB14A48-63DE-4F91-AAB5-F5AECC54B71F

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   ???                           	000000000000000000 0 + 0
1   libG4OpenGL.dylib             	0x000000010011f9b8 G4OpenGLImmediateQtViewer::initializeGL() + 24
2   QtOpenGL                      	0x0000000101bb2124 QGLWidget::glInit() + 68
3   QtOpenGL                      	0x0000000101badf1c QGLWidget::resizeEvent(QResizeEvent*) + 156
4   QtGui                         	0x0000000101064448 QWidget::event(QEvent*) + 2344
5   QtOpenGL                      	0x0000000101bb3272 QGLWidget::event(QEvent*) + 82
6   QtGui                         	0x000000010100fdbd QApplicationPrivate::notify_helper(QObject*, QEvent*) + 189
7   QtGui                         	0x00000001010157fd QApplication::notify(QObject*, QEvent*) + 349
8   QtCore                        	0x0000000100cf305c QCoreApplication::notifyInternal(QObject*, QEvent*) + 124
9   QtGui                         	0x00000001010622f7 QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) + 487
10  QtGui                         	0x00000001010684f8 QWidgetPrivate::show_helper() + 40
11  QtGui                         	0x000000010106899f QWidget::setVisible(bool) + 511
12  QtGui                         	0x0000000101068481 QWidgetPrivate::showChildren(bool) + 289
13  QtGui                         	0x0000000101068514 QWidgetPrivate::show_helper() + 68
14  QtGui                         	0x000000010106899f QWidget::setVisible(bool) + 511
15  QtGui                         	0x000000010146f497 QDialog::setVisible(bool) + 103
16  libG4OpenGL.dylib             	0x000000010012a0f7 G4OpenGLQtViewer::CreateMainWindow(QGLWidget*, QString) + 487
17  libG4OpenGL.dylib             	0x000000010011fbc1 G4OpenGLImmediateQtViewer::Initialise() + 65
18  libG4vis_management.dylib     	0x00000001002669b5 G4VisManager::CreateViewer(G4String, G4String) + 149
19  libG4vis_management.dylib     	0x0000000100255187 G4VisCommandViewerCreate::SetNewValue(G4UIcommand*, G4String) + 1863
20  libG4intercoms.dylib          	0x0000000100c44b14 G4UIcommand::DoIt(G4String) + 2260
21  libG4intercoms.dylib          	0x0000000100c4f239 G4UImanager::ApplyCommand(char const*) + 1017
22  libG4vis_management.dylib     	0x00000001002300f1 G4VisCommandOpen::SetNewValue(G4UIcommand*, G4String) + 273
23  libG4intercoms.dylib          	0x0000000100c44b14 G4UIcommand::DoIt(G4String) + 2260
24  libG4intercoms.dylib          	0x0000000100c4f239 G4UImanager::ApplyCommand(char const*) + 1017
25  libG4intercoms.dylib          	0x0000000100c35b4d G4UIbatch::ExecCommand(G4String const&) + 61
26  libG4intercoms.dylib          	0x0000000100c3704f G4UIbatch::SessionStart() + 143
27  libG4intercoms.dylib          	0x0000000100c4e594 G4UImanager::ExecuteMacroFile(char const*) + 68
28  libG4intercoms.dylib          	0x0000000100c4c33c G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) + 268
29  libG4intercoms.dylib          	0x0000000100c44b14 G4UIcommand::DoIt(G4String) + 2260
30  libG4intercoms.dylib          	0x0000000100c4f239 G4UImanager::ApplyCommand(char const*) + 1017
31  exampleN02                    	0x00000001000029b4 main + 612
32  exampleN02                    	0x0000000100002688 start + 52

Thread 1:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib             	0x00007fff880a3bba kevent + 10
1   libSystem.B.dylib             	0x00007fff880a5a85 _dispatch_mgr_invoke + 154
2   libSystem.B.dylib             	0x00007fff880a575c _dispatch_queue_invoke + 185
3   libSystem.B.dylib             	0x00007fff880a5286 _dispatch_worker_thread2 + 244
4   libSystem.B.dylib             	0x00007fff880a4bb8 _pthread_wqthread + 353
5   libSystem.B.dylib             	0x00007fff880a4a55 start_wqthread + 13

Thread 2:
0   libSystem.B.dylib             	0x00007fff880a49da __workq_kernreturn + 10
1   libSystem.B.dylib             	0x00007fff880a4dec _pthread_wqthread + 917
2   libSystem.B.dylib             	0x00007fff880a4a55 start_wqthread + 13

Thread 3:
0   libSystem.B.dylib             	0x00007fff880ce9e2 select$DARWIN_EXTSN + 10
1   QtCore                        	0x0000000100dadc10 QProcessManager::run() + 96
2   QtCore                        	0x0000000100d13f85 QThreadPrivate::start(void*) + 165
3   libSystem.B.dylib             	0x00007fff880c3f8e _pthread_start + 331
4   libSystem.B.dylib             	0x00007fff880c3e41 thread_start + 13

Thread 4:
0   libSystem.B.dylib             	0x00007fff880ce9e2 select$DARWIN_EXTSN + 10
1   com.apple.CoreFoundation      	0x00007fff87c34242 __CFSocketManager + 818
2   libSystem.B.dylib             	0x00007fff880c3f8e _pthread_start + 331
3   libSystem.B.dylib             	0x00007fff880c3e41 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000101d379e0  rbx: 0x00000001030d2760  rcx: 0x0000000102374830  rdx: 0x0000000000000000
  rdi: 0x00000001030d2760  rsi: 0x0000000102374830  rbp: 0x00007fff5fbfca50  rsp: 0x00007fff5fbfca38
   r8: 0x0000000100f12538   r9: 0x00000000102210a3  r10: 0x0000000101d3b006  r11: 0x0000000000000000
  r12: 0x00000001023af980  r13: 0x00007fff5fbfd1e0  r14: 0x0000000102372bf0  r15: 0x00007fff5fbfd1e0
  rip: 0x0000000000000000  rfl: 0x0000000000010202  cr2: 0x0000000000000000

Binary Images:
       0x100000000 -        0x100003ff7 +exampleN02 ??? (???) <4565617D-A477-09FE-B744-751ACF96D9A2> /Users/mojca/geant4/bin/Darwin-g++/exampleN02
       0x100009000 -        0x100019ff7 +libexampleN02.dylib ??? (???) <D3C8AEDB-03EC-370D-D14E-0F4C86545D17> /Users/mojca/geant4/tmp/Darwin-g++/exampleN02/libexampleN02.dylib

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Qt+OpenGL crashes on Snow Leopard   (Mojca Miklavec - 07 Feb, 2010)
(_ More: Re: Qt+OpenGL crashes on Snow Leopard   (garnier - 09 Feb, 2010)
(_ Ok: Re: Qt+OpenGL crashes on Snow Leopard   (Mojca Miklavec - 09 Feb, 2010)
 Add Message Add Message
to: "Qt+OpenGL crashes on Snow Leopard"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]