Re: [osg-users] Crash on exit, Mac Os X

2007-12-19 Thread Jim Brooks
My program crashed on exit every time, on Mac OS X only (OSG 2.2 DMG),
but works reliably on Mac without multi-threading.

export OSG_THREADING=SingleThreaded
mViewer-setThreadingModel( osgViewer::Viewer::SingleThreaded );
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Crash on exit, Mac Os X

2007-12-18 Thread Antoine Hue
Hi,

Before stating the issue we have, please let us thank you very much for 
OSG 2.2. Quality is continuously improving in OSG.

We have moved our app to this version, 2.2.0. We are now using 
osgViewer::Viewer wrapped into a QT 4 Widget as in osgviewerQT.
We currently have a crash on application exit under Mac OS X.

Everything goes OK until the osgViewer:Viewer is destroyed. System stack 
trace is pasted below.

Are there any other report of such thing ?
Could it be that destructor is not called at the right time during the 
update cycle ?

Thanks in advance for your answers,

Antoine



---

Date/Time:  2007-12-10 23:43:26.285 +0100
OS Version: 10.4.11 (Build 8S2167)
Report Version: 4

Command: LePetitPoucet
Path:   
/Users/bruno/tmp/pti_bin/LePetitPoucet/LePetitPoucet.app/Contents/MacOS/LePetitPoucet
Parent:  WindowServer [60]

Version: ??? (???)

PID:26946
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:  KERN_INVALID_ADDRESS (0x0001) at
0x0e2570a8

Thread 0 Crashed:
0   GLEngine0x0f3c9db1
glDeleteTextures_Exec + 11
1   libGL.dylib 0x92b2698e
glDeleteTextures + 90
2   libosg.2.2.0.dylib  0x00460019
TextureObjectManager::flushAllTextureObjects(unsigned)
+ 83
3   libosg.2.2.0.dylib  0x00460079
osg::Texture::flushAllDeletedTextureObjects(unsigned)
+ 37
4   libosg.2.2.0.dylib  0x003fab7e
osg::GraphicsContext::close(bool) + 1002
5   libosgViewer.2.2.0.dylib0x00233268
osgViewer::Viewer::~Viewer [not-in-charge]() + 306
6   LePetitPoucet   0x000276d9
ptiApp::QOsgWidget::~QOsgWidget [in-charge deleting]()
+ 145
7   LePetitPoucet   0xd2e6
ptiApp::PtiMainWindow::~PtiMainWindow [in-charge
deleting]() + 68
8   LePetitPoucet   0x00013526
ptiApp::Application::cleanUpAndExit() + 36
9   LePetitPoucet   0x00018002
ptiApp::Application::qt_metacall(QMetaObject::Call,
int, void**) + 328
10  libQtCore.4.dylib   0x0213aa5e
QMetaObject::activate(QObject*, int, int, void**) +
1228
11  libQtCore.4.dylib   0x0214e5e1
QCoreApplication::aboutToQuit() + 49
12  libQtCore.4.dylib   0x0212f3ab
QCoreApplication::exec() + 217
13  LePetitPoucet   0x0001708a main +
502
14  LePetitPoucet   0x83a6 _start
+ 216
15  LePetitPoucet   0x82cd start +
41

Thread 1:
0   libSystem.B.dylib   0x90026d5c kevent
+ 12
1   ...ple.CoreServices.CarbonCore  0x90cb8c68
PrivateMPEntryPoint + 51
2   libSystem.B.dylib   0x90024227
_pthread_body + 84

Thread 2:
0   libSystem.B.dylib   0x900248c7
semaphore_wait_signal_trap + 7
1   ...ple.CoreServices.CarbonCore  0x90cb8e0d
MPWaitOnQueue + 198
2   com.apple.DesktopServices   0x9271e953
TNodeSyncTask::SyncTaskProc(void*) + 143
3   ...ple.CoreServices.CarbonCore  0x90cb8c68
PrivateMPEntryPoint + 51
4   libSystem.B.dylib   0x90024227
_pthread_body + 84

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x0e252020  ebx: 0x92b26942  ecx: 0x 
edx: 0x0288fc00
  edi: 0xa2b2400c  esi: 0xb3b0  ebp: 0xb3a8 
esp: 0xb350
   ss: 0x001f  efl: 0x00010286  eip: 0x0f3c9db1  
cs: 0x0017
   ds: 0x001f   es: 0x001f   fs: 0x  
gs: 0x0037


Binary Images Description:
...

-
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org