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

Erreur python au chargement d'un territoire #1

Open
ClemDut opened this issue Feb 16, 2024 · 1 comment
Open

Erreur python au chargement d'un territoire #1

ClemDut opened this issue Feb 16, 2024 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ClemDut
Copy link

ClemDut commented Feb 16, 2024

Bonjour,

J'ai ce bugg qui arrive fréquemment lors de l'ouverture d'un territoire et qui fait planter Qgis. A noter que cela arrive avec différents territoire mais ce n'est pas systématique.
Le bugg se produit aussi avec Qgis 3.32.3

Report Details

Python Stack Trace

Windows fatal exception: access violation

Current thread 0x00008958 (most recent call first):
  File "C:\Users/clement.dutremble/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\AgiRisk-master\agirisk.py", line 198 in run
    result = self.dlg.exec_()

Stack Trace


QgsLayoutGuide::layout :
QgsLayerTreeMapCanvasBridge::setCanvasLayers :
QObject::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
qt_plugin_query_metadata :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QDialog::exec :
PyInit_QtWidgets :
PyArg_ParseTuple_SizeT :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyFloat_FromDouble :
PyVectorcall_Call :
PyObject_Call :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
QObject::qt_static_metacall :
QAction::activate :
QAbstractButton::click :
QAbstractButton::mouseReleaseEvent :
QToolButton::mouseReleaseEvent :
QWidget::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.28.13-Firenze
QGIS code revision: 3b4db4f561
Compiled against Qt: 5.15.3
Running against Qt: 5.15.3
Compiled against GDAL: 3.8.0
Running against GDAL: 3.8.0

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

@ManuMarsu ManuMarsu self-assigned this Apr 15, 2024
@ManuMarsu
Copy link
Collaborator

Ce bug nous est également arrivé plusieurs fois, de manière récurrente mais pas systématique. De l'analyse que nous en avons, il s'agit d'un problème lié à l'ouverture par un plugin Qgis d'une base de données PostGreSQL avant que Qgis (core) n'aie ouvert une couche base de données.
Aussi, une solution de contournement (en attendant de trouver une solution plus propre) consiste à charger une couche de la base AgiRisk (par exemple c_general.territoires, mais cela marche aussi avec n'importe quelle couche postgreSQL) dans le canevas avant d'ouvrir le plugin.

@ManuMarsu ManuMarsu added bug Something isn't working help wanted Extra attention is needed labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants