Qt application freezes after run
Unsolved
General and Desktop
-
My Qt version is 5.12.12 and I start on a default project created by Qt, when I click the run, the application freezes and the mainwindow didn't show up, on the Application Output it stucks on
22:07:53: Starting /Users/lee/Desktop/QtProject/build-untitled3-Desktop_Qt_5_12_12_clang_64bit-Debug/untitled3.app/Contents/MacOS/untitled3 ...
When I rebuild the project, the problem emerges, below is the result of the Compile Output
22:08:37: Running steps for project untitled3... 22:08:37: Starting: "/usr/bin/make" clean -j8 rm -f moc_predefs.h rm -f moc_mainwindow.cpp rm -f ui_mainwindow.h rm -f main.o mainwindow.o moc_mainwindow.o rm -f *~ core *.core 22:08:37: The process "/usr/bin/make" exited normally. 22:08:37: Starting: "/Users/lee/Qt5.12.12/5.12.12/clang_64/bin/qmake" /Users/lee/Desktop/QtProject/untitled3/untitled3.pro -spec macx-clang CONFIG+=debug CONFIG+=qml_debug 22:08:38: The process "/Users/lee/Qt5.12.12/5.12.12/clang_64/bin/qmake" exited normally. 22:08:38: Starting: "/usr/bin/make" -f /Users/lee/Desktop/QtProject/build-untitled3-Desktop_Qt_5_12_12_clang_64bit-Debug/Makefile qmake_all make: Nothing to be done for `qmake_all'. 22:08:38: The process "/usr/bin/make" exited normally. 22:08:38: Starting: "/usr/bin/make" -j8 /Users/lee/Qt5.12.12/5.12.12/clang_64/bin/uic ../untitled3/mainwindow.ui -o ui_mainwindow.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -mmacosx-version-min=10.12 -Wall -W -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../untitled3 -I. -I../../../Qt5.12.12/5.12.12/clang_64/lib/QtWidgets.framework/Headers -I../../../Qt5.12.12/5.12.12/clang_64/lib/QtGui.framework/Headers -I../../../Qt5.12.12/5.12.12/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I../../../Qt5.12.12/5.12.12/clang_64/mkspecs/macx-clang -F/Users/lee/Qt5.12.12/5.12.12/clang_64/lib -o main.o ../untitled3/main.cpp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -pipe -stdlib=libc++ -g -std=gnu++11 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -mmacosx-version-min=10.12 -Wall -W -dM -E -o moc_predefs.h ../../../Qt5.12.12/5.12.12/clang_64/mkspecs/features/data/dummy.cpp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -mmacosx-version-min=10.12 -Wall -W -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../untitled3 -I. -I../../../Qt5.12.12/5.12.12/clang_64/lib/QtWidgets.framework/Headers -I../../../Qt5.12.12/5.12.12/clang_64/lib/QtGui.framework/Headers -I../../../Qt5.12.12/5.12.12/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I../../../Qt5.12.12/5.12.12/clang_64/mkspecs/macx-clang -F/Users/lee/Qt5.12.12/5.12.12/clang_64/lib -o mainwindow.o ../untitled3/mainwindow.cpp /Users/lee/Qt5.12.12/5.12.12/clang_64/bin/moc -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include /Users/lee/Desktop/QtProject/build-untitled3-Desktop_Qt_5_12_12_clang_64bit-Debug/moc_predefs.h -I/Users/lee/Qt5.12.12/5.12.12/clang_64/mkspecs/macx-clang -I/Users/lee/Desktop/QtProject/untitled3 -I/Users/lee/Qt5.12.12/5.12.12/clang_64/lib/QtWidgets.framework/Headers -I/Users/lee/Qt5.12.12/5.12.12/clang_64/lib/QtGui.framework/Headers -I/Users/lee/Qt5.12.12/5.12.12/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -F/Users/lee/Qt5.12.12/5.12.12/clang_64/lib ../untitled3/mainwindow.h -o moc_mainwindow.cpp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -mmacosx-version-min=10.12 -Wall -W -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../untitled3 -I. -I../../../Qt5.12.12/5.12.12/clang_64/lib/QtWidgets.framework/Headers -I../../../Qt5.12.12/5.12.12/clang_64/lib/QtGui.framework/Headers -I../../../Qt5.12.12/5.12.12/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I../../../Qt5.12.12/5.12.12/clang_64/mkspecs/macx-clang -F/Users/lee/Qt5.12.12/5.12.12/clang_64/lib -o moc_mainwindow.o moc_mainwindow.cpp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -mmacosx-version-min=10.12 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/Users/lee/Qt5.12.12/5.12.12/clang_64/lib -o untitled3.app/Contents/MacOS/untitled3 main.o mainwindow.o moc_mainwindow.o -F/Users/lee/Qt5.12.12/5.12.12/clang_64/lib -framework QtWidgets -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL 22:08:40: The process "/usr/bin/make" exited normally. 22:08:40: Elapsed time: 00:02.
Can somebody help with this? I'm really appreciated.
-
Hi,
Start your application with the debugger.
By the way, what does your main function contain ?