Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
6.8.1
Description
When closing a qt desktop (widgets) app the application crashes during the close (after the red window close button is clicked) . This issue started when moving to Qt 6.8.1 from Qt 6.7.2.
The following error text is written to the log (newlines added manually to improve readability).
FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Applications/Xcode15.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__atomic/cxx_atomic_impl.h ERROR: [Errno 2] No such file or directory: '/Applications/Xcode15.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__atomic/cxx_atomic_impl.h'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/corelib/io/qloggingcategory.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/io/qloggingcategory.h'FILE: /Users/qt/work/qt/qtbase/src/corelib/global/qlogging.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/global/qlogging.h'FILE: /Users/qt/work/qt/qtbase/src/corelib/global/qlogging.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/global/qlogging.h'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/corelib/io/qdebug.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/io/qdebug.h'FILE: /Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h'FILE: /Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h'FILE: /Applications/Xcode15.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__atomic/cxx_atomic_impl.h ERROR: [Errno 2] No such file or directory: '/Applications/Xcode15.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__atomic/cxx_atomic_impl.h'FILE: /Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h'FILE: /Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h'FILE: /Users/qt/work/qt/qtbase/src/corelib/io/qdebug.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/io/qdebug.h'FILE: /Users/qt/work/qt/qtbase/src/corelib/io/qdebug.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/io/qdebug.h'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h'FILE: /Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h'FILE: /Applications/Xcode15.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__atomic/cxx_atomic_impl.h ERROR: [Errno 2] No such file or directory: '/Applications/Xcode15.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__atomic/cxx_atomic_impl.h'FILE: /Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h'FILE: /Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h'FILE: /Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/corelib/tools/qarraydatapointer.h'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm'FILE: /Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm ERROR: [Errno 2] No such file or directory: '/Users/qt/work/qt/qtbase/src/plugins/platforms/cocoa/qnsview.mm' UNKNOWN TYPE KEY: SEL: 4
Using Qt 6.8.1 installed from Qt binary installer on MacOs Sequoia Version 15.2 (24C101) on Apple M1 with Xcode 16.2 (16C5032a). Qt source code is not installed.
Building, running and exiting sample Qt applications does not encounter the same issue.
App is built using qmake with the following:
QT += core QT += widgets QT += gui QT += network QT += charts QT += datavisualization QT += help
Setting QT_DEBUG_PLUGINS to 1 gives the following at startup (nothing additional on close):
20:36:44: Debugging /Users/.../build/Qt_6_8_1_for_macOS-Debug/xxx.app/Contents/MacOS/xxx ... qt.core.plugin.factoryloader: checking directory path "/Users/xxx/Qt/6.8.1/macos/plugins/platforms" ... qt.core.plugin.factoryloader: looking at "libqoffscreen.dylib" qt.core.plugin.loader: Found metadata in lib /Users/xxx/Qt/6.8.1/macos/plugins/platforms/libqoffscreen.dylib, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "offscreen" ] }, "archlevel": 0, "className": "QOffscreenIntegrationPlugin", "debug": false, "version": 395264 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen") qt.core.plugin.factoryloader: looking at "libqminimal.dylib" qt.core.plugin.loader: Found metadata in lib /Users/xxx/Qt/6.8.1/macos/plugins/platforms/libqminimal.dylib, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimal" ] }, "archlevel": 0, "className": "QMinimalIntegrationPlugin", "debug": false, "version": 395264 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal") qt.core.plugin.factoryloader: looking at "libqcocoa.dylib" qt.core.plugin.loader: Found metadata in lib /Users/xxx/Qt/6.8.1/macos/plugins/platforms/libqcocoa.dylib, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "cocoa" ] }, "archlevel": 0, "className": "QCocoaIntegrationPlugin", "debug": false, "version": 395264 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("cocoa") qt.core.plugin.factoryloader: checking directory path "/Users/xxx/xxx/src/Front-End/build/Qt_6_8_1_for_macOS-Debug/xxx.app/Contents/MacOS/platforms" ... qt.core.library: "/Users/xxx/Qt/6.8.1/macos/plugins/platforms/libqcocoa.dylib" loaded library qt.core.plugin.factoryloader: checking directory path "/Users/xxx/Qt/6.8.1/macos/plugins/platformthemes" ... qt.core.plugin.factoryloader: checking directory path "/Users/xxx/xxx/src/Front-End/build/Qt_6_8_1_for_macOS-Debug/xxx.app/Contents/MacOS/platformthemes" ... qt.core.plugin.factoryloader: checking directory path "/Users/xxx/Qt/6.8.1/macos/plugins/styles" ... qt.core.plugin.factoryloader: looking at "libqmacstyle.dylib" qt.core.plugin.loader: Found metadata in lib /Users/xxx/Qt/6.8.1/macos/plugins/styles/libqmacstyle.dylib, metadata= { "IID": "org.qt-project.Qt.QStyleFactoryInterface", "MetaData": { "Keys": [ "macOS" ] }, "archlevel": 0, "className": "QMacStylePlugin", "debug": false, "version": 395264 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("macos") qt.core.plugin.factoryloader: checking directory path "/Users/xxx/xxx/src/Front-End/build/Qt_6_8_1_for_macOS-Debug/xxx.app/Contents/MacOS/styles" ... qt.core.library: "/Users/xxx/Qt/6.8.1/macos/plugins/styles/libqmacstyle.dylib" loaded library qt.core.plugin.factoryloader: checking directory path "/Users/xxx/Qt/6.8.1/macos/plugins/tls" ... qt.core.plugin.factoryloader: looking at "libqsecuretransportbackend.dylib" qt.core.plugin.loader: Found metadata in lib /Users/xxx/Qt/6.8.1/macos/plugins/tls/libqsecuretransportbackend.dylib, metadata= { "IID": "org.qt-project.Qt.QTlsBackend", "archlevel": 0, "className": "QSecureTransportBackend", "debug": false, "version": 395264 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList() qt.core.plugin.factoryloader: looking at "libqopensslbackend.dylib" qt.core.plugin.loader: Found metadata in lib /Users/xxx/Qt/6.8.1/macos/plugins/tls/libqopensslbackend.dylib, metadata= { "IID": "org.qt-project.Qt.QTlsBackend", "archlevel": 0, "className": "QTlsBackendOpenSSL", "debug": false, "version": 395264 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList() qt.core.plugin.factoryloader: looking at "libqcertonlybackend.dylib" qt.core.plugin.loader: Found metadata in lib /Users/xxx/Qt/6.8.1/macos/plugins/tls/libqcertonlybackend.dylib, metadata= { "IID": "org.qt-project.Qt.QTlsBackend", "archlevel": 0, "className": "QTlsBackendCertOnly", "debug": false, "version": 395264 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList() qt.core.plugin.factoryloader: checking directory path "/Users/xxx/xxx/src/Front-End/build/Qt_6_8_1_for_macOS-Debug/xxx.app/Contents/MacOS/tls" ... qt.core.library: "/Users/xxx/Qt/6.8.1/macos/plugins/tls/libqsecuretransportbackend.dylib" loaded library qt.core.library: "/Users/xxx/Qt/6.8.1/macos/plugins/tls/libqopensslbackend.dylib" loaded library qt.core.library: "/Users/xxx/Qt/6.8.1/macos/plugins/tls/libqcertonlybackend.dylib" loaded library qt.core.library: "crypto" cannot load: Cannot load library crypto: dlopen(crypto, 0x0005): tried: '/Users/xxx/Qt/6.8.1/macos/lib/crypto' (no such file), 'crypto' (no such file), '/System/Volumes/Preboot/Cryptexes/OScrypto' (no such file), '/Users/xxx/Qt/6.8.1/macos/lib/QtCore.framework/Versions/A/../../../crypto' (no such file), '/Users/xxx/xxx/src/Front-End/build/Qt_6_8_1_for_macOS-Debug/xxx.app/Contents/Frameworks/crypto' (no such file), '/Users/xxx/Qt/6.8.1/macos/lib/crypto' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/xxx/Qt/6.8.1/macos/lib/crypto' (no such file), '/usr/lib/crypto' (no such file, not in dyld cache), 'crypto' (no such file) Adding CA certificate from: "app.xxx.com" qt.core.plugin.factoryloader: checking directory path "/Users/xxx/Qt/6.8.1/macos/plugins/networkaccess" ... qt.core.plugin.factoryloader: checking directory path "/Users/xxx/xxx/src/Front-End/build/Qt_6_8_1_for_macOS-Debug/xxx.app/Contents/MacOS/networkaccess" ... qt.core.plugin.factoryloader: checking directory path "/Users/xxx/Qt/6.8.1/macos/plugins/iconengines" ... qt.core.plugin.factoryloader: looking at "libqsvgicon.dylib" qt.core.plugin.loader: Found metadata in lib /Users/xxx/Qt/6.8.1/macos/plugins/iconengines/libqsvgicon.dylib, metadata= { "IID": "org.qt-project.Qt.QIconEngineFactoryInterface", "MetaData": { "Keys": [ "svg", "svgz", "svg.gz" ] }, "archlevel": 0, "className": "QSvgIconPlugin", "debug": false, "version": 395264 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("svg", "svgz", "svg.gz") qt.core.plugin.factoryloader: checking directory path "/Users/xxx/xxx/src/Front-End/build/Qt_6_8_1_for_macOS-Debug/xxx.app/Contents/MacOS/iconengines" ... qt.core.plugin.factoryloader: checking directory path "/Users/xxx/Qt/6.8.1/macos/plugins/imageformats" ... qt.core.plugin.factoryloader: looking at "libqgif.dylib" qt.core.plugin.loader: Found metadata in lib /Users/xxx/Qt/6.8.1/macos/plugins/imageformats/libqgif.dylib, metadata= { "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface", "MetaData": { "Keys": [ "gif" ], "MimeTypes": [ "image/gif" ] }, "archlevel": 0, "className": "QGifPlugin", "debug": false, "version": 395264 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("gif") qt.core.plugin.factoryloader: looking at "libqico.dylib" qt.core.plugin.loader: Found metadata in lib /Users/xxx/Qt/6.8.1/macos/plugins/imageformats/libqico.dylib, metadata= { "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface", "MetaData": { "Keys": [ "ico", "cur" ], "MimeTypes": [ "image/vnd.microsoft.icon", "image/vnd.microsoft.icon" ] }, "archlevel": 0, "className": "QICOPlugin", "debug": false, "version": 395264 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("ico", "cur") qt.core.plugin.factoryloader: looking at "libqjpeg.dylib" qt.core.plugin.loader: Found metadata in lib /Users/xxx/Qt/6.8.1/macos/plugins/imageformats/libqjpeg.dylib, metadata= { "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface", "MetaData": { "Keys": [ "jpg", "jpeg", "jfif" ], "MimeTypes": [ "image/jpeg", "image/jpeg", "image/jpeg" ] }, "archlevel": 0, "className": "QJpegPlugin", "debug": false, "version": 395264 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("jpg", "jpeg", "jfif") qt.core.plugin.factoryloader: looking at "libqsvg.dylib" qt.core.plugin.loader: Found metadata in lib /Users/xxx/Qt/6.8.1/macos/plugins/imageformats/libqsvg.dylib, metadata= { "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface", "MetaData": { "Keys": [ "svg", "svgz" ], "MimeTypes": [ "image/svg+xml", "image/svg+xml-compressed" ] }, "archlevel": 0, "className": "QSvgPlugin", "debug": false, "version": 395264 }