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 has unexpectedly finished.
Forum Updated to NodeBB v4.3 + New Features

Program has unexpectedly finished.

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 1.4k Views 3 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.
  • M Offline
    M Offline
    Manmeet Bamrah
    wrote on last edited by
    #1

    I am trying to run a project file and it is building it without any error, but it is not running it and the following is being shown in Application Output.
    %%The program has unexpectedly finished.
    /home/deeksha/Desktop/compiled setup/BillOOH_With_Google_Map_20_12_2013/debug/chatterbox exited with code 0%%

    And even i try to debug it, it shows the SIGABRT pop up.
    Please help. Thanks in advance.

    kshegunovK 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Its nearly impossible to guess about with any code.
      It could be anything.
      Like adding global widget to main.cpp or loose pointer.

      M 1 Reply Last reply
      0
      • M Offline
        M Offline
        mjsurette
        wrote on last edited by
        #3

        The SIGABRT means that abort() has been called.

        Stepping through your program with the debugger is probably your best bet until you have more information.

        1 Reply Last reply
        0
        • mrjjM mrjj

          Hi
          Its nearly impossible to guess about with any code.
          It could be anything.
          Like adding global widget to main.cpp or loose pointer.

          M Offline
          M Offline
          Manmeet Bamrah
          wrote on last edited by
          #4

          This is my main.cpp. Could you help me?

          #include "MainWindow.h"
          #include <QApplication>
          #include <QProcess>
          #include "authenticationdetails.h"
          /*

          • This is your main() function. Very simple.
            */
            int main(int argc, char **argv)
            {
            // Every Qt GUI needs a QApplication.

            QApplication app(argc, argv);
            // Every Qt GUI needs a QApplication.
            /* AuthenticationDetails AuthDetails;
            bool execute=false;
            execute=AuthDetails.authenticateApplication();

            if (execute==true)*/
            {
            MainWindow *mainWindow=new MainWindow;
            mainWindow->setWindowTitle("BiLLOOH ©Proof of Performance Data Services Pvt. Ltd.");
            mainWindow->show();
            }

            return app.exec();
            }

          1 Reply Last reply
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            your main works fine here.

            What do you have in MainWindow.c and .h?

            For test, if you press File-> New ->Qt->Qt widget application
            and make a default new Qt project and press run.
            it works?

            1 Reply Last reply
            0
            • M Manmeet Bamrah

              I am trying to run a project file and it is building it without any error, but it is not running it and the following is being shown in Application Output.
              %%The program has unexpectedly finished.
              /home/deeksha/Desktop/compiled setup/BillOOH_With_Google_Map_20_12_2013/debug/chatterbox exited with code 0%%

              And even i try to debug it, it shows the SIGABRT pop up.
              Please help. Thanks in advance.

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by
              #6

              @Manmeet-Bamrah
              Hello,
              Some linux distributions disallow the debugger to attach to processes (for security reasons), are you using Mint by any chance? Also any failed assertion might look like the SIGABRT signal, so make sure to stop your program in main() with the debugger exactly after you've entered the function. If you can do that and can use the debugger to step over/into then probably you have an error somewhere in the program, if not note the first line of this post.

              Kind regards.

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              0

              • Login

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