kyosold622 |
2022-05-26 16:48 |
qt应用在MacOS下崩溃问题
qt写好的应用,在MacOS下正常启动,运行后会崩溃,从崩溃的报错信息看不出是哪里,但是如果从命令行启动程序,就不会崩溃,如(/Applications/MyApp.app/Contents/MacOS/MyApp) 这样启动就不会崩溃
崩溃的信息如下:
- Thread 17 Crashed:
0 libsystem_kernel.dylib 0x7ff81dc2e00e __pthread_kill + 10 1 libsystem_pthread.dylib 0x7ff81dc641ff pthread_kill + 263 2 libsystem_c.dylib 0x7ff81dbafd24 abort + 123 3 QtCore 0x10fe91529 qt_message_fatal(QtMsgType, QMessageLogContext const&, QString const&) + 9 (qlogging.cpp:1914) 4 QtCore 0x10fe92c74 QMessageLogger::fatal(char const*, ...) const + 202 (qlogging.cpp:893) 5 QtCore 0x1100d45ae QEventDispatcherUNIXPrivate::QEventDispatcherUNIXPrivate() + 206 (qeventdispatcher_unix.cpp:228) 6 QtCore 0x1100d5065 QEventDispatcherUNIXPrivate::QEventDispatcherUNIXPrivate() + 8 (qeventdispatcher_unix.cpp:226) [inlined] 7 QtCore 0x1100d5065 QEventDispatcherUNIX::QEventDispatcherUNIX(QObject*) + 21 (qeventdispatcher_unix.cpp:312) [inlined] 8 QtCore 0x1100d5065 QEventDispatcherUNIX::QEventDispatcherUNIX(QObject*) + 37 (qeventdispatcher_unix.cpp:313) 9 QtCore 0x10fe9b4aa QThreadPrivate::createEventDispatcher(QThreadData*) + 90 (qthread_unix.cpp:252) 10 QtCore 0x10fe99e0f QThreadData::createEventDispatcher() + 15 (qthread.cpp:126) 11 QtCore 0x10fe9b63f QThreadData::ensureEventDispatcher() + 8 (qthread_p.h:267) [inlined] 12 QtCore 0x10fe9b63f QThreadPrivate::start(void*) + 367 (qthread_unix.cpp:310) 13 libsystem_pthread.dylib 0x7ff81dc644e1 _pthread_start + 125 14 libsystem_pthread.dylib 0x7ff81dc5ff6b thread_start + 15
|
|