Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29476

QtCreator crash after git checkout branch with changes in local repos

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 11.0.1
    • Linux/X11

    Description

      I have a CMake project in a git repository. Branch A is checked out and afterwards I made some changes in the local repository.
      I want to commit these changes in a different branch and tried to do this from within QtCreator.

      QtCreator 11.0.1 was installed via the Qt maintenance tool in de default location (/opt/Qt).

      The following actions result around 50% of the times in a QtCreator crash:

      1. Open the above mentioned CMake project in QtCreator 11.0.1.
      2. Tools menu -> Git -> Local repository -> Branches...
      3. In the branches pane, right click on the branch that you want to checkout and in the context menu select 'Checkout'.
      4. A dialog pops up that asks: "Local changes found. Choose action:"
        From the 3 provided options choose: "Move local changes to branch "feature/blabla".
      5. Choose 'Ok'.
      6. Sometimes the version control output pane will show the following output:

      15:48:17 Running in "/home/wdobbe/crdata/git/bsp_installer": /usr/bin/git stash list --no-color.

      15:48:20 Running in "/home/wdobbe/crdata/git/bsp_installer": /usr/bin/git stash save 'QtCreator Checkout 2023-08-07T15:48:20'.
      error: Entry 'core/include/ubootstates/ubootpingstate.h' not uptodate. Cannot merge.
      Cannot save the current worktree state
      The command "/usr/bin/git stash save 'QtCreator Checkout 2023-08-07T15:48:20'" terminated with exit code 1.
      Cannot run "git stash save QtCreator Checkout 2023-08-07T15:48:20" in "/home/wdobbe/crdata/git/bsp_installer": error: Entry 'core/include/ubootstates/ubootpingstate.h' not uptodate. Cannot merge.
      Cannot save the current worktree state

      1. Other times (around 50%) QtCreator will crash. Even though I installed the QtCreator debug information via the Qt maintenance tool, the core file of the QtCreator doesn't show any stack/backtrace information and reports that the debug information of the main executable is missing.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              orgads Orgad Shaneh
              arthurd Arthur Dobbe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes