cinelli wrote:I have made some progress on this problem. If you remember I was getting a delay of about 27 seconds when plotting a trivial graph in gnuplot. But to some extent gnuplot is a red herring. I get a similar delay, but not consistently, in vlc from the command line. The common feature is the line “qt5ct: using qt5ct plugin”. This occurs just as a display window is created. Qt has a controlling configuration file at ~/.config/qt5ct/qt5ct.conf and by renaming or deleting this file, the delay to gnuplot vanishes. Without the config file I can see no change in the gnuplot window but you do notice a different font in vlc. So that is the workaround but that doesn’t explain why there is a delay. Running gnuplot with strace in place (thank you hiriskpaul for this tip) displays the line “clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=200000000}, NULL) = 0” at the point of the delay. But I find the manual page for clock_nanosleep difficult. Also I can find little information on the contents of the config file qt5ct.conf.
An alternative workaround for gnuplot is not to accept the default window type, qt, for the plot. “Set term x11” works without the need to delete or rename qt5ct.conf.
Unexplained are the following points:
I get no delay in linux Mint 19 cinnamon even though the qt config file is identical.
I get no delay in linux Mint 20 live even though this temporary account too has the identical config file.
Cinelli
OK so it sounds like something up with the qt config
- possibly a dangling reference that it eventually gives up on (or possibly permissions)
you could try running
qtconfig to see if there are any indications of things amiss
- or a remove and reinstall of qt5-default via apt-get will take a few seconds
- sd