QGIS icon indicating copy to clipboard operation
QGIS copied to clipboard

Changing settings on a PC with different versions of QGIS with Qt5 and Qt6 generates a large QGIS3.ini file

Open pigreco opened this issue 11 months ago • 0 comments

What is the bug or the crash?

I use OSGeo4w Installer and I have installed various versions of QGIS including the version with Qt6 dev. After changing the color setting of the gui (on QGIS with Qt 6.8) it is no longer possible to use QGIS with Qt5 or Qt6, everything is slowed down, starting QGIS (any version) takes a long time.

I looked at the folder 'C:\Users[username]\AppData\Roaming\QGIS\QGIS3\profiles\default\QGIS' and inside there were strange files and the QGIS3.ini file weighed over 160 MB, I analyzed the file and I noticed that dozens of lines had incredible lengths, the longest exceeded 123 million characters.

I managed to fix the QGIS3.ini file by eliminating all the lines with over 5000 characters, and now everything works again also recovering all the default profile settings.

I opened an issue because it might be useful to someone else.

Steps to reproduce the issue

read above

Versions

Versione di QGIS3.40.6-Bratislava
Revisione codice QGIS5d7f6a3e26
 
Librerie
Versione Qt5.15.13
Versione Python3.12.10
GDAL version3.10.3
Versione PROJ9.6.0
Versione database del Registro EPSGv12.004 (2025-03-02)
Versione GEOS3.13.1-CAPI-1.19.2
Versione SQLite3.46.1
Versione PDAL2.8.3
Versione client PostgreSQLunknown
Versione SpatiaLite5.1.0
Versione QWT6.3.0
Versione QScintilla22.14.1
Versione SOWindows 11 Version 2009
 
Plugins Python attivi
plugin_reloader0.17
qduckdb2.1.2
qgis_plugin_gpq_downloader0.8.0
quick_map_services0.21.2
db_manager0.1.20
processing2.12.99

Supported QGIS version

  • [ ] I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

pigreco avatar Apr 26 '25 13:04 pigreco