Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Quit qmusicplayer.app with crash message
jryuen last edited by
system:MAC OS X 10.6.3
I can run qmusicplayer.app normally, and it work well. But I quit the qmusicplayer.app the mac os crash report comes up, and show me a detail message below:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000074742e79
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x9938dcb0 CFRelease + 112
1 libphonon_qt7.dylib 0x14442edf Phonon::QT7::QuickTimeVideoPlayer::~QuickTimeVideoPlayer() + 79
2 libphonon_qt7.dylib 0x1445b3cd Phonon::QT7::MediaObject::~MediaObject() + 93
3 phonon 0x00032a3a Phonon::MediaNodePrivate::~MediaNodePrivate() + 106
4 phonon 0x00036855 Phonon::MediaObjectPrivate::~MediaObjectPrivate() + 117
5 phonon 0x00034b1d Phonon::MediaObject::~MediaObject() + 77
6 QtCore 0x00c5526c QObjectPrivate::deleteChildren() + 76
7 QtGui 0x0015cc88 QWidget::~QWidget() + 648
8 com.yourcompany.qmusicplayer 0x00003c73 MainWindow::~MainWindow() + 81
9 com.yourcompany.qmusicplayer 0x000039ed main + 191
10 com.yourcompany.qmusicplayer 0x00003349 _start + 208
11 com.yourcompany.qmusicplayer 0x00003278 start + 40
Please help me to fix it, thx!
lycis last edited by
If your Qt application crashes on exit this is possibly because it tries to delete an object that is already deleted. Qt hast some kind of clean-up mechanism by using the parent-pointers that every QObject has. If you delete a QObject all its children will be destructed first.
If there's some inconsistency in the object tree, because any object has the wrong parent or if you manually destructed an object that is a child of another object you may get a crash on quitting the application. These two happen to me now and then.
I'd check if there's one of these two cases. As I am not familiar with MAC OS X I don't feel like I could be of help with that crash report.