Program has unexpectedly finished.



  • 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.


  • Qt Champions 2016

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



  • 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.



  • 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();
      }


  • Qt Champions 2016

    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?


  • Qt Champions 2016

    @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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.