Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Qt application freezes after run

    General and Desktop
    2
    2
    103
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Dannylove1026 last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Start your application with the debugger.

        By the way, what does your main function contain ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post