Slow start because of extensive file scanning

Forums

Since I began compiling Qtractor with qt6 I noticed longer start times of Qtractor. Especially on an old Core i5 it takes now 6 seconds until Qtractor is usable. Strace showed that Qtractor (or qt6) scans a lot of dirs, not only in the home directory but also in /usr and /var. It even opens dot-files like .vimrc, makes 1176 stat-calls to /etc/localtime and searches e.g. 2105 times for each icon in many directories including /var/lib/snapd. Having network mounts or links to them in the home dir slows down the process even more.

Opening View -> Options -> Display -> Icons theme to select a directory for icons is affected, too.

Custom\IconsTheme is set but scanned after all other dirs are scanned.

Is it possible to avoid the scanning of other directories if Custom\IconsTheme is set?

Permalink

that, is, quite, strange... can't figure out what's causing that behavior, as I never seen such a trouble...

backup and try with a blank slate configuration file, and if it doesn't behave like so right from the start, try one step a time, changing options to your former preferences, one by one, and find what's causing trouble...

good luck :)
byee

Permalink

It happened with a deleted Qtractor.conf, too. I did some research and found out that QT6 uses $XDG_DATA_DIRS as the default search path for icons. On my machine it was set to /usr/share/xubuntu:/usr/share/xfce4:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/usr/share

Setting it to $HOME/qtractor/themes where I have my icon set for Qtractor makes Qtractor start fast again.

EDIT: have to set it to /usr/share else CALF plugins will crash Qtractor when opening their GUI.

Add new comment

The content of this field is kept private and will not be shown publicly.

Markdown

  • Parses markdown and converts it to HTML.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id> <img src alt height width> <strike> <pre> <p> <br>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <b> <i> <pre> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
File attachments
Unlimited number of files can be uploaded to this field.
2 MB limit.
Allowed types: jpg jpeg gif png txt doc docx xls xlsx pdf ppt pps odt ods odp zip gz bz2 xz patch diff wav ogg flac ogv mp4 qtz.