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. QtCreator after start opens main window and after second it crashes

QtCreator after start opens main window and after second it crashes

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 3 Posters 195 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.
  • P Offline
    P Offline
    PetQter
    wrote on 28 Mar 2025, 10:10 last edited by
    #1

    Hello,
    I have qtcreator 5.0.3., XFCE4, NetBSD 10.1
    It was running properly several weeks and after hard rebooting machine I have this problem. It starts, opens main window, windows is opened maybe 1 second and after it qtcreator crashes.
    It leaves some files and directories in /tmp. Deleting of them and rebooting does not help.

    I tried to start it under gdb and result is:

    (gdb) r
    Starting program: /usr/pkg/bin/qtcreator 
    [New LWP 798 of process 797]
    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-programmer'
    [New LWP 2335 of process 797]
    [New LWP 1824 of process 797]
    [New LWP 1825 of process 797]
    [LWP 1825 of process 797 exited]
    [New LWP 1827 of process 797]
    [New process 797]
    [New LWP 2086 of process 797]
    [New process 797]
    QProcess: Destroyed while process ("/usr/bin/gcc") is still running.
    QProcess: Destroyed while process ("/usr/bin/g++") is still running.
    QProcess: Destroyed while process ("/usr/bin/g++") is still running.
    SOFT ASSERT: "false && "__cplusplus is not predefined, assuming latest C++ we support."" in file toolchain.cpp, line 443
    
    Thread 9 received signal SIGPIPE, Broken pipe.
    [Switching to process 797]
    0x00007dfce224745a in poll () from /usr/lib/libc.so.12
    
    

    and ps output:

    programmer 1259  0.0  0.0   20568   2140 pts/0 Is   10:44AM 0:00.01 |       | |-- sh 
    programmer  792  0.0  2.2  352960 276204 pts/0 Sl   10:45AM 0:07.35 |       | | `-- gdb qtcreator 
    programmer  797  0.0  0.9  666536 113656 pts/0 SXl+ 10:45AM 0:03.78 |       | |   `-- /usr/pkg/bin/qtcreator 
    programmer  881  0.0  0.0       0      0 pts/0 Z+         - 0:00.00 |       | |     |-- (g++)
    programmer 1280  0.0  0.0       0      0 pts/0 Z+         - 0:00.00 |       | |     |-- (g++)
    programmer 1826  0.0  0.4  411344  49808 pts/0 S+   10:45AM 0:00.49 |       | |     `-- /usr/pkg/libexec/qtcreator/clangbackend /tmp/QtCreator-dMcqEI/ClangBack
    programmer 2091  0.0  0.0   20556   2132 pts/1 Ss   10:44AM 0:00.01 |       | `-- sh 
    
    

    I have two questions:

    1. What to try to correct it ?
    2. Can you please explain what is this feature when qtcreator tries to build automatically something immediately after start ? In previous crashes I saw git process there, so qtcreator tries to download something from git and build it on background. What is this feature for ?

    Peter

    J 1 Reply Last reply 28 Mar 2025, 10:14
    0
    • P PetQter
      28 Mar 2025, 10:10

      Hello,
      I have qtcreator 5.0.3., XFCE4, NetBSD 10.1
      It was running properly several weeks and after hard rebooting machine I have this problem. It starts, opens main window, windows is opened maybe 1 second and after it qtcreator crashes.
      It leaves some files and directories in /tmp. Deleting of them and rebooting does not help.

      I tried to start it under gdb and result is:

      (gdb) r
      Starting program: /usr/pkg/bin/qtcreator 
      [New LWP 798 of process 797]
      QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-programmer'
      [New LWP 2335 of process 797]
      [New LWP 1824 of process 797]
      [New LWP 1825 of process 797]
      [LWP 1825 of process 797 exited]
      [New LWP 1827 of process 797]
      [New process 797]
      [New LWP 2086 of process 797]
      [New process 797]
      QProcess: Destroyed while process ("/usr/bin/gcc") is still running.
      QProcess: Destroyed while process ("/usr/bin/g++") is still running.
      QProcess: Destroyed while process ("/usr/bin/g++") is still running.
      SOFT ASSERT: "false && "__cplusplus is not predefined, assuming latest C++ we support."" in file toolchain.cpp, line 443
      
      Thread 9 received signal SIGPIPE, Broken pipe.
      [Switching to process 797]
      0x00007dfce224745a in poll () from /usr/lib/libc.so.12
      
      

      and ps output:

      programmer 1259  0.0  0.0   20568   2140 pts/0 Is   10:44AM 0:00.01 |       | |-- sh 
      programmer  792  0.0  2.2  352960 276204 pts/0 Sl   10:45AM 0:07.35 |       | | `-- gdb qtcreator 
      programmer  797  0.0  0.9  666536 113656 pts/0 SXl+ 10:45AM 0:03.78 |       | |   `-- /usr/pkg/bin/qtcreator 
      programmer  881  0.0  0.0       0      0 pts/0 Z+         - 0:00.00 |       | |     |-- (g++)
      programmer 1280  0.0  0.0       0      0 pts/0 Z+         - 0:00.00 |       | |     |-- (g++)
      programmer 1826  0.0  0.4  411344  49808 pts/0 S+   10:45AM 0:00.49 |       | |     `-- /usr/pkg/libexec/qtcreator/clangbackend /tmp/QtCreator-dMcqEI/ClangBack
      programmer 2091  0.0  0.0   20556   2132 pts/1 Ss   10:44AM 0:00.01 |       | `-- sh 
      
      

      I have two questions:

      1. What to try to correct it ?
      2. Can you please explain what is this feature when qtcreator tries to build automatically something immediately after start ? In previous crashes I saw git process there, so qtcreator tries to download something from git and build it on background. What is this feature for ?

      Peter

      J Online
      J Online
      jsulm
      Lifetime Qt Champion
      wrote on 28 Mar 2025, 10:14 last edited by
      #2

      @PetQter You could try to delete or rename QtCtreator config folder. Not sure where it is on NetBSD, on Linux it is: ~/.config/QtProject

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

      P 1 Reply Last reply 28 Mar 2025, 10:51
      0
      • J jsulm
        28 Mar 2025, 10:14

        @PetQter You could try to delete or rename QtCtreator config folder. Not sure where it is on NetBSD, on Linux it is: ~/.config/QtProject

        P Offline
        P Offline
        PetQter
        wrote on 28 Mar 2025, 10:51 last edited by
        #3

        @jsulm Thanks, it helped and I found that exactly QtProject.db was only problem.

        Still I have second question, what is feature for when qtcreator compiles something after start on background ? Is is activity of some plugin ?

        Peter

        J 1 Reply Last reply 28 Mar 2025, 12:23
        0
        • P PetQter
          28 Mar 2025, 10:51

          @jsulm Thanks, it helped and I found that exactly QtProject.db was only problem.

          Still I have second question, what is feature for when qtcreator compiles something after start on background ? Is is activity of some plugin ?

          Peter

          J Online
          J Online
          jsulm
          Lifetime Qt Champion
          wrote on 28 Mar 2025, 12:23 last edited by
          #4

          @PetQter I don't know. Maybe QtCreator just checks the compilers configured in the selected Kit.
          One question: does QtCreator automatically load last project if you start it?

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

          1 Reply Last reply
          1
          • A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 29 Mar 2025, 20:33 last edited by
            #5

            @PetQter

            Can you please explain what is this feature when qtcreator tries to build automatically something immediately after start ? In previous crashes I saw git process there, so qtcreator tries to download something from git and build it on background. What is this feature for ?

            This is most likely not the case. As @jsulm already said, Creator needs to check the tools it is using, and the compiler and git are tools it is using.

            Regards

            Qt has to stay free or it will die.

            1 Reply Last reply
            0

            2/5

            28 Mar 2025, 10:14

            • Login

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