qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.52k stars 2.99k forks source link

QGIS doesn't load up after "Setting up the GUI" #48566

Closed wandererdmnc closed 10 months ago

wandererdmnc commented 2 years ago

What is the bug or the crash?

After the flash image loads "Setting up the GUI", it disappears and QGIS doesn't continue to run.

Setting up the GUI

It runs sometimes when I try to open QGIS through

C:\Program Files\QGIS 3.22.6\bin\qgis-ltr-bin.exe; or C:\Program Files\QGIS 3.16\bin\qgis-ltr-bin.exe

but most often, it does not run. I first encountered this in QGIS 3.16 then I installed 3.22 hoping that it would be resolved. But it still persisted.

When it happened to run, I found the following message log and stack trace. It points to SagaAlgorithmProvider.

These are the message log and stack trace that I copied:

Log Messages -> Plugins 2022-05-12T15:17:08 INFO Loaded Group Stats (package: GroupStats) 2022-05-12T15:17:16 INFO Loaded Semi-Automatic Classification Plugin (package: SemiAutomaticClassificationPlugin) 2022-05-12T15:17:17 INFO Loaded SLYR (Community Edition) (package: slyr_community) 2022-05-12T15:17:17 INFO Loaded Multipart Split (package: splitmultipart) 2022-05-12T15:17:17 INFO Loaded DB Manager (package: db_manager) 2022-05-12T15:17:18 INFO Loaded GRASS GIS provider (package: grassprovider) 2022-05-12T15:17:18 INFO Loaded MetaSearch Catalog Client (package: MetaSearch) 2022-05-12T15:17:20 INFO Loaded Processing (package: processing) 2022-05-12T15:17:20 INFO Loaded SAGA GIS provider (package: sagaprovider)

-> Python 2022-05-12T15:17:20 CRITICAL Traceback (most recent call last): File "C:\PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./python\qgis\utils.py", line 423, in startPlugin plugins[packageName] = package.classFactory(iface) File "C:\PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./python/plugins\sagaprovider_init.py", line 26, in classFactory from sagaprovider.SagaProviderPlugin import SagaProviderPlugin File "C:\PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./python/plugins\sagaprovider\SagaProviderPlugin.py", line 28, in from sagaprovider.SagaAlgorithmProvider import SagaAlgorithmProvider File "C:\PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'sagaprovider.SagaAlgorithmProvider'

-> Messages 2022-05-12T15:17:20 WARNING Python error : Couldn't load plugin 'sagaprovider' due to an error when calling its classFactory() method See message log (Python Error) for more details.

-> General 2022-05-12T15:17:21 INFO Application state: QGIS_PREFIX_PATH env var: C:/PROGRA~1/QGIS 3.22.6/apps/qgis-ltr Prefix: C:/PROGRA~1/QGIS 3.22.6/apps/qgis-ltr Plugin Path: C:/PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/plugins Package Data Path: C:/PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/. Active Theme Name: default Active Theme Path: C:/PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./resources/themes\default\icons/ Default Theme Path: :/images/themes/default/ SVG Search Paths: C:/PROGRA~1/QGIS 3.16/apps/qgis-ltr/./svg/ C:/Users/OCPDC/AppData/Roaming/QGIS/QGIS3\profiles\default/svg/ C:/PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./svg/ User DB Path: C:/PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./resources/qgis.db Auth DB Path: C:/Users/OCPDC/AppData/Roaming/QGIS/QGIS3\profiles\default/qgis-auth.db

Stack Trace Couldn't load plugin 'sagaprovider' due to an error when calling its classFactory() method

ModuleNotFoundError: No module named 'sagaprovider.SagaAlgorithmProvider' Traceback (most recent call last): File "C:\PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./python\qgis\utils.py", line 423, in startPlugin plugins[packageName] = package.classFactory(iface) File "C:\PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./python/plugins\sagaprovider_init.py", line 26, in classFactory from sagaprovider.SagaProviderPlugin import SagaProviderPlugin File "C:\PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./python/plugins\sagaprovider\SagaProviderPlugin.py", line 28, in from sagaprovider.SagaAlgorithmProvider import SagaAlgorithmProvider File "C:\PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'sagaprovider.SagaAlgorithmProvider'

Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] QGIS version: 3.22.6-Białowieża Białowieża, b6f33b1a

Python Path: C:/PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./python C:/Users/OCPDC/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:/Users/OCPDC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins C:/PROGRA~1/QGIS 3.22.6/apps/qgis-ltr/./python/plugins C:\Program Files\QGIS 3.22.6\bin\python39.zip C:\PROGRA~1\QGIS 3.22.6\apps\Python39\DLLs C:\PROGRA~1\QGIS 3.22.6\apps\Python39\lib C:\Program Files\QGIS 3.22.6\bin C:\PROGRA~1\QGIS 3.22.6\apps\Python39 C:\PROGRA~1\QGIS 3.22.6\apps\Python39\lib\site-packages C:\PROGRA~1\QGIS 3.22.6\apps\Python39\lib\site-packages\GDAL-3.4.2-py3.9-win-amd64.egg C:\PROGRA~1\QGIS 3.22.6\apps\Python39\lib\site-packages\win32 C:\PROGRA~1\QGIS 3.22.6\apps\Python39\lib\site-packages\win32\lib C:\PROGRA~1\QGIS 3.22.6\apps\Python39\lib\site-packages\Pythonwin C:/Users/OCPDC/AppData/Roaming/QGIS/QGIS3\profiles\default/python

Does anyone know what should be done so QGIS would run normally again?

Steps to reproduce the issue

I just run the desktop shortcut or go to OSGeo4W Shell, and run C:/%/QGIS 3.22.6/bin/start qgis-ltr-bin.exe

after "Setting up the GUI", the flash image disappears and the QGIS doesn't continue to run. Sometimes it does. But most often it doesn't run.

sometimes i enter C:/%/QGIS 3.22.6/bin/start qgis-ltr-bin.exe --noplugin (to intentionally get the error for --noplugin) then QGIS runs, with the error log. Then I will be able to copy the same error logs, stack traces. But sometimes QGIS doesn't run.

Versions

3.16.16 3.22.6

Supported QGIS version

New profile

Additional context

No response

wandererdmnc commented 2 years ago

please excuse the strikethrough format, i just copy-pasted these from my notepad.

nicogodet commented 2 years ago

Could you try with a new profile ? (as requested in github issue form...) https://docs.qgis.org/3.22/en/docs/user_manual/introduction/qgis_configuration.html#working-with-user-profiles

wandererdmnc commented 2 years ago

It still randomly runs even after I created a new profile. I tried to uninstall and reinstall QGIS to no avail. I tried to install in a different partition.

what I observed When it happens to run was that the plugin error was no longer appearing. But QGIS still randomly runs, but it still most often doesn't run. I'm really wondering why this happened...

These are the specs of the laptop that I use which I believe won't cause any issue with QGIS:

Operating System: Windows 10 Home Single Language 64-bit (10.0, Build 19044) (19041.vb_release.191206-1406) Language: English (Regional Setting: English) System Manufacturer: Dell Inc. System Model: Vostro 3400 BIOS: 1.13.0 (type: UEFI) Processor: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 CPUs), ~2.8GHz Memory: 16384MB RAM Available OS Memory: 16110MB RAM Page File: 12282MB used, 8692MB available

alexbruy commented 1 year ago

Is this still an issue? Have you tried clean installation (e.g. on a VM) and clean profile? Looks like a local issue to me.

github-actions[bot] commented 11 months ago

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue. In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue. If there is no further activity on this issue, it will be closed in a week.

github-actions[bot] commented 10 months ago

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue. Or, if you have any further questions, there are also further support channels that can help you.