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 blocks/is unresponsive for a minute when opening a file in the nix store
Forum Updated to NodeBB v4.3 + New Features

QtCreator blocks/is unresponsive for a minute when opening a file in the nix store

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 1 Posters 96 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.
  • G Offline
    G Offline
    Gregor Burger
    wrote last edited by
    #1

    Hi,

    I am on NixOS and whenever I open a file in /nix/store, like a header, QtCreator is unresponsive for a whole minute. It seems that QtCreator wants to crawl parts of the nix store, which is huge.
    I profiled QtCreator, and it seems the top-level call is QFileSystemModelPrivate::fileSystemChanged(QString const&, QList<…> const&)
    I attached a flamegraph with the problem.

    I tried it with the QtCreator version in my current nix store:
    Qt Creator 17.0.1 based on Qt 6.9.3

    plus I tried it with the QtCreator built by Qt:
    Qt Creator 18.0.0 based on Qt 6.10.0

    Both show the same symptoms.

    Has anybody experienced the same?

    Thanks

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Gregor Burger
      wrote last edited by
      #2

      The culprit seems to be the "File system" view in the left panel. It wants to display the whole tree where the file is located which happens to be the nix store. Mine contains 34046 directories at the moment. This all happens on the UI thread, blocking the whole UI. The workaround is to close the "File System" view.

      1 Reply Last reply
      2

      • Login

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