Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. program stops at "QAüülication a(argc, *argv[])
Forum Updated to NodeBB v4.3 + New Features

program stops at "QAüülication a(argc, *argv[])

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 5 Posters 514 Views 2 Watching
  • 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.
  • R Offline
    R Offline
    rhnulm
    wrote on last edited by
    #1

    Rebooted PC (Debian)
    Updated Qt
    Created program skeleton by "Create project"
    Started compilation: no errors
    Started Project & Debug -> program stops at "QApplication a(argc, *argv[])
    Older programs which ran properly, before, also stop there.
    I am perplexed and clueless???

    SGaistS Pl45m4P JonBJ 3 Replies Last reply
    0
    • R rhnulm

      Rebooted PC (Debian)
      Updated Qt
      Created program skeleton by "Create project"
      Started compilation: no errors
      Started Project & Debug -> program stops at "QApplication a(argc, *argv[])
      Older programs which ran properly, before, also stop there.
      I am perplexed and clueless???

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should start your application using the debugger to see what happens.

      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
      1
      • R rhnulm

        Rebooted PC (Debian)
        Updated Qt
        Created program skeleton by "Create project"
        Started compilation: no errors
        Started Project & Debug -> program stops at "QApplication a(argc, *argv[])
        Older programs which ran properly, before, also stop there.
        I am perplexed and clueless???

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by
        #3

        @rhnulm said in program stops at "QAüülication a(argc, *argv[]):

        Started Project & Debug -> program stops at "QApplication a(argc, *argv[])

        If it really stops there, do you pass any args to your program?
        Is Qt installed/updated properly?


        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        1 Reply Last reply
        0
        • R rhnulm

          Rebooted PC (Debian)
          Updated Qt
          Created program skeleton by "Create project"
          Started compilation: no errors
          Started Project & Debug -> program stops at "QApplication a(argc, *argv[])
          Older programs which ran properly, before, also stop there.
          I am perplexed and clueless???

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @rhnulm said in program stops at "QAüülication a(argc, *argv[]):

          Started Project & Debug -> program stops at "QApplication a(argc, *argv[])

          What exactly does "stops at" mean, what do you see?

          Does this also happen if run directly in gdb without Creator?

          And how does it behave if run directly, no debugger/IDE?

          Also reboot after updating Qt :)

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rhnulm
            wrote on last edited by
            #5

            I have

            • a brandnew installation of debian 11
            • a brandnew installation of qt creator (qt 6.5), nothing else installed, so far, exept the Qt preconditions
            • a brandnew widget project (using "create project")
            • I do not pass any cmdline arguments (exept the command itself arg[0])
            • I start the program using the debugger
            • still it stops at the "QApplication a(argc, *argv[]) with the abort signal SIGABRT
            1 Reply Last reply
            0
            • R Offline
              R Offline
              rhnulm
              wrote on last edited by
              #6

              New behavior:
              after re-booting

              • started QtCreator
              • clicked create project
              • selected Qt Widget Application
              • clicked 'continue' 5 times
                -selected 'Desktop Qt 6.5.0 GCC 64bit'
              • clicked 'finish' => Skeleton was created
              • clicked 'Start Project & Debug'
                Program stopped 'SIGABRT' but now in "qglobal.cpp" here (see end of function):
                void qAbort()
                {
                #ifdef Q_OS_WIN
                // std::abort() in the MSVC runtime will call _exit(3) if the abort
                // behavior is _WRITE_ABORT_MSG - see also _set_abort_behavior(). This is
                // the default for a debug-mode build of the runtime. Worse, MinGW's
                // std::abort() implementation (in msvcrt.dll) is basically a call to
                // _exit(3) too. Unfortunately, _exit() and _Exit() do run the static
                // destructors of objects in DLLs, a violation of the C++ standard (see
                // [support.start.term]). So we bypass std::abort() and directly
                // terminate the application.

              if defined(Q_CC_MSVC)

              if (IsProcessorFeaturePresent(PF_FASTFAIL_AVAILABLE))
                  __fastfail(FAST_FAIL_FATAL_APP_EXIT);
              

              else

              RaiseFailFastException(nullptr, nullptr, 0);
              

              endif

              // Fallback
              TerminateProcess(GetCurrentProcess(), STATUS_FATAL_APP_EXIT);
              
              // Tell the compiler the application has stopped.
              Q_UNREACHABLE_IMPL();
              

              #else // !Q_OS_WIN
              ==> std::abort(); <==
              #endif
              }

              jsulmJ 1 Reply Last reply
              0
              • R rhnulm

                New behavior:
                after re-booting

                • started QtCreator
                • clicked create project
                • selected Qt Widget Application
                • clicked 'continue' 5 times
                  -selected 'Desktop Qt 6.5.0 GCC 64bit'
                • clicked 'finish' => Skeleton was created
                • clicked 'Start Project & Debug'
                  Program stopped 'SIGABRT' but now in "qglobal.cpp" here (see end of function):
                  void qAbort()
                  {
                  #ifdef Q_OS_WIN
                  // std::abort() in the MSVC runtime will call _exit(3) if the abort
                  // behavior is _WRITE_ABORT_MSG - see also _set_abort_behavior(). This is
                  // the default for a debug-mode build of the runtime. Worse, MinGW's
                  // std::abort() implementation (in msvcrt.dll) is basically a call to
                  // _exit(3) too. Unfortunately, _exit() and _Exit() do run the static
                  // destructors of objects in DLLs, a violation of the C++ standard (see
                  // [support.start.term]). So we bypass std::abort() and directly
                  // terminate the application.

                if defined(Q_CC_MSVC)

                if (IsProcessorFeaturePresent(PF_FASTFAIL_AVAILABLE))
                    __fastfail(FAST_FAIL_FATAL_APP_EXIT);
                

                else

                RaiseFailFastException(nullptr, nullptr, 0);
                

                endif

                // Fallback
                TerminateProcess(GetCurrentProcess(), STATUS_FATAL_APP_EXIT);
                
                // Tell the compiler the application has stopped.
                Q_UNREACHABLE_IMPL();
                

                #else // !Q_OS_WIN
                ==> std::abort(); <==
                #endif
                }

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @rhnulm Can you post stack trace after crash?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  rhnulm
                  wrote on last edited by
                  #8

                  Hi all and thanks a lot!
                  After, again, installing from scratch Debian and the QtCreator it seems to run :-) No idea why but, at least, the pure widget program skeleton (Create Project) runs and shows the empty window :-)
                  Thanks again!

                  1 Reply Last reply
                  1

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved