Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGIS Crashing When Opening File Linked to Non-Existent host for PostgreSQL Tables #59627

Open
2 tasks
toniesomja opened this issue Nov 28, 2024 · 1 comment
Open
2 tasks
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption

Comments

@toniesomja
Copy link

What is the bug or the crash?

I am experiencing an issue where QGIS crashes upon attempting to open a specific project file. This project contains references to tables from a host in PostgreSQL database that no longer exist. Unfortunately, this file includes all of my original templates, and I am unable to access them due to the crash.

Could you please assist me in resolving this issue? I would greatly appreciate any guidance on how to recover or open the project despite the missing database tables.

Thank you for your help!

Steps to reproduce the issue

  1. Open QGIS.
  2. Attempt to open a project.
  3. Ignore for Session (there is no other option)
  4. QGIS crashes immediately
    image
  5. Report details:
    Python Stack Trace
    Windows fatal exception: access violation

Current thread 0x000056b8 (most recent call first):

Stack Trace

providerMetadataFactory :
QgsVectorLayerFeatureSource::QgsVectorLayerFeatureSource :
QgsFeature::setValid :
QgsFeaturePickerModel::createValuesGatherer :
QgsFeaturePickerModelBase::scheduledReload :
QObject::qt_static_metacall :
QTimer::timerEvent :
QObject::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QEventDispatcherWin32Private::sendTimerEvent :
QEventDispatcherWin32::processEvents :
UserCallWinProcCheckWow :
DispatchMessageWorker :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
multipleProviderMetadataFactory :
QgsVectorLayer::setDataProvider :
QgsVectorLayer::readXml :
QgsMapLayer::readLayerXml :
QgsProject::addLayer :
QgsProject::_getMapLayers :
QgsProject::readProjectFile :
QgsProject::unzip :
QgsProject::read :
QgisApp::addProject :
QgisApp::openProject :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.40.0-Bratislava
QGIS code revision: b56115d
Compiled against Qt: 5.15.13
Running against Qt: 5.15.13
Compiled against GDAL: 3.9.3
Running against GDAL: 3.9.3

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.22631

Versions

QGIS Version: 3.40.0-Bratislava an older one.

Supported QGIS version

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

New profile

Additional context

No response

@toniesomja toniesomja added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Nov 28, 2024
@nirvn
Copy link
Contributor

nirvn commented Nov 29, 2024

@toniesomja , we'll need a sample project to replicate this crash, can you attach one here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption
Projects
None yet
Development

No branches or pull requests

3 participants