envirosolutionspl / wtyczka_qgis_app

Wtyczka QGIS wspomagająca przygotowanie aktów planowania przestrzennego zgodnych z rozporządzeniem Ministra Rozwoju, Pracy i Technologii z dnia 26 października 2020 r. w sprawie zbiorów danych przestrzennych oraz metadanych w zakresie zagospodarowania przestrzennego
GNU General Public License v3.0
1 stars 2 forks source link

Problem podczas uruchamiania #155

Closed zmarekz closed 3 months ago

zmarekz commented 9 months ago

Witam Podczas uruchamiania aplikacji wyskakuje błąd: The plugin wtyczka_qgis_app caused QGIS to crash. Please report this issue to the author of this plugin.

Raport z tego błędu to:

Report Details

Python Stack Trace

Windows fatal exception: access violation

Thread 0x00003c9c (most recent call first):
  File "C:\Users/M_Zalewski/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\wtyczka_qgis_app\modules\validator\validator.py", line 31 in __init__
    self.schema = lxml.etree.XMLSchema(xsd_root)
  File "C:\Users/M_Zalewski/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\wtyczka_qgis_app\wtyczka_app.py", line 107 in createMetadataValidator
    self.metadataValidator = validator.ValidatorLxml(schema_path=os.path.join(os.path.dirname(__file__), 'modules/validator', 'metadane.xsd'))
  File "C:\PROGRA~1/QGIS32~1.13/apps/qgis-ltr/./python\qgis\core\additions\qgstaskwrapper.py", line 37 in run
    self.returned_values = self.function(self, *self.args, **self.kwargs)

Current thread 0x00001634 (most recent call first):
  File "C:\Users/M_Zalewski/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\wtyczka_qgis_app\modules\validator\validator.py", line 31 in __init__
    self.schema = lxml.etree.XMLSchema(xsd_root)
  File "C:\Users/M_Zalewski/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\wtyczka_qgis_app\wtyczka_app.py", line 102 in createValidator
    self.dataValidator = validator.ValidatorLxml()
  File "C:\PROGRA~1/QGIS32~1.13/apps/qgis-ltr/./python\qgis\core\additions\qgstaskwrapper.py", line 37 in run
    self.returned_values = self.function(self, *self.args, **self.kwargs)

Thread 0x00004f74 (most recent call first):
<no Python frame>
Windows fatal exception: access violation

Current thread 0x00003c9c (most recent call first):
  File "C:\Users/M_Zalewski/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\wtyczka_qgis_app\modules\validator\validator.py", line 31 in __init__
    self.schema = lxml.etree.XMLSchema(xsd_root)
  File "C:\Users/M_Zalewski/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\wtyczka_qgis_app\wtyczka_app.py", line 107 in createMetadataValidator
    self.metadataValidator = validator.ValidatorLxml(schema_path=os.path.join(os.path.dirname(__file__), 'modules/validator', 'metadane.xsd'))
  File "C:\PROGRA~1/QGIS32~1.13/apps/qgis-ltr/./python\qgis\core\additions\qgstaskwrapper.py", line 37 in run
    self.returned_values = self.function(self, *self.args, **self.kwargs)

Thread 0x00001634 (most recent call first):
  File "C:\Users/M_Zalewski/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\wtyczka_qgis_app\modules\validator\validator.py"

Stack Trace


RtlpWaitOnCriticalSection :
RtlpEnterCriticalSectionContended :
RtlEnterCriticalSection :
xmlGetGlobalState :
_xmlDefaultBufferSize :
xmlAllocParserInputBuffer :
xlinkSetDefaultHandler :
xmlNewInputFromFile :
xlinkSetDefaultHandler :
PyInit_etree :
xmlLoadExternalEntity :
xmlCtxtReadFile :
xmlSaveTree :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
xmlSchemaParse :
PyInit_etree :
PyInit_etree :
PyType_GenericNew :
PyEval_EvalFrameDefault :
PyObject_GC_Del :
PyFunction_Vectorcall :
PyType_GenericNew :
PyType_GenericNew :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyFloat_FromDouble :
PyVectorcall_Call :
PyObject_Call :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyFloat_FromDouble :
PyVectorcall_Call :
PyObject_Call :
pdal::PointContainer::freeTemp :
QgsPresetSchemeColorRamp::clone :
QgsTask::start :
QThreadPoolPrivate::reset :
QThread::start :
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.22631

Dzieje się tak gdy uruchamiany jest projekt bezpośrednio po kliknięciu w plik projektu lub gdy otwierany jest Qgis i nie wczytają się do końca schematy XSD dla APP oraz dla metadanych. Zmieniłem wersje Qgis na nowszą i nic to nie pomogło. W czym problem ?

KasiaZagrobelna commented 3 months ago

Dzień dobry — w najnowszej wersji 2.0.3 (experimental) zostały wprowadzone poprawki m.in. dot. stabilności Wtyczki na używanej przez Pana wersji QGIS. Najnowsza wersja jest dostępna tutaj: https://github.com/CyfryzacjaAPP/wtyczka_qgis_app_2 - jeśli błąd dalej występuje, proszę o zgłoszenie błędu już w nowym repozytorium github.