Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to idetify the error source when "The program has unexpectedly finished." ?
Forum Update on Monday, May 27th 2025

How to idetify the error source when "The program has unexpectedly finished." ?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 185 Views
  • 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on 16 Jul 2021, 14:27 last edited by
    #1

    This has probably been asked before.
    The attached app output does not tell much. Actually the "time stamp " seems pretty superficial "bells and whistles".
    Most of the output is due to extensive usage of "debug".

    I have a nasty bug in my system and it periodically adds stuff at random, so I really cannot go to "lass changes made ".
    ( I just added tool tip in QDesiger and copy of it ended up in source code ! Found it!)

    I am simply "stepping thru " break points, but that is pretty tedious.

    Can compiler / linker be optioned to provide more info , at least getting into a ball-park of the error ?

    TRACE TASK     :   
    DISABLE_DEBUG 
    CONSTRUCTOR (?) 
     
    File     :  /media/qe/RAID_CAT_MD0/QT_PROGRAMS/JULY 16  WORKCOPY 1/CAT/mdi/tabwidget_chat.cpp 
    Function :  on_scan_clicked 
    @line    :  270 
    step     :  1
    category_chat_debug: Q_FUNC_INFO Chat::Chat(QWidget*) TEST debug message @ line  97
    category_chat_debug: Q_FUNC_INFO Chat::Chat(QWidget*) Setup for upstream communication  @ line  104
    category_chat_debug: Q_FUNC_INFO Chat::Chat(QWidget*) Upstream OK do connncet  @ line  108
    Chat::Chat(QWidget*) @ line   126
    09:08:23: The program has unexpectedly finished.
    09:08:23: The process was ended forcefully.
    09:08:23: /media/qe/TSET_QT_LABEL/QT_PROGRAMS/JUNE  6 WORKCOPY 1/CAT/build-mdi-Desktop_Qt_6_2_0_GCC_64bit-Debug/mdi crashed.
    
    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 16 Jul 2021, 14:43 last edited by
      #2

      Hi

      -Can compiler / linker be optioned to provide more info , at least getting into a ball-park of the error ?

      The call stack panel in Creator shows all the last stuff it was doing. That often gives a hint
      on what it did before the crash.

      https://doc.qt.io/qtcreator/creator-debug-mode.html

      alt text

      • I am simply "stepping thru " break points, but that is pretty tedious.
        Yes its boring. but sometimes needed to find the exact spot for the crash.
      1 Reply Last reply
      0

      1/2

      16 Jul 2021, 14:27

      • Login

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