envirosolutionspl / pobieracz_danych_gugik

Wtyczka QGIS do pobierania danych przestrzennych z zasobów GUGiK
GNU General Public License v3.0
5 stars 1 forks source link

Pobieranie danych EGIB #74

Closed wojtek19022 closed 1 month ago

wojtek19022 commented 5 months ago

QGIS 3.28.14 został zatrzymany i wyskoczył poniższy komunikat przy pobieraniu danych EGIB dla województwa łódzkiego, powiat bełchatowski

## Report Details

**Python Stack Trace**

Windows fatal exception: access violation

Current thread 0x00002428 (most recent call first):
  File "C:\Users/wojta/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pobieracz_danych_gugik\wfs\wfs_egib.py", line 46 in work_on_xml
    ns = etree.parse(folder + 'egib_wfs.xml')
  File "C:\Users/wojta/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pobieracz_danych_gugik\wfs\wfs_egib.py", line 85 in save_gml
    name_error, name_layers, prefix = self.work_on_xml(folder, url, teryt)
  File "C:\Users/wojta/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pobieracz_danych_gugik\wfs\wfs_egib.py", line 157 in egib_wfs
    name_error = self.save_gml(path, wfs, teryt)
  File "C:\Users/wojta/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pobieracz_danych_gugik\tasks\downloadWfsEgibTask.py", line 421 in run
    self.name_error = self.wfsEgib.egib_wfs(self.teryt, self.wfs, self.folder)

Thread 0x000066c0 (most recent call first):
<no Python frame>

**Stack Trace**

RtlpWaitOnCriticalSection :
RtlpEnterCriticalSectionContended :
RtlEnterCriticalSection :
xmlGetGlobalState :
_xmlDefaultSAXHandler :
xmlDefaultSAXHandlerInit :
xmlInitParserCtxt :
xmlNewParserCtxt :
PyInit_etree :
PyInit_etree :
PyInit_etree :
PyInit_etree :
PyInit_etree :
PyInit_etree :
PyInit_etree :
PyEval_EvalFrameDefault :
PyEval_EvalFrameDefault :
PyEval_EvalFrameDefault :
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.14-Firenze
QGIS code revision: b09131c512
Compiled against Qt: 5.15.3
Running against Qt: 5.15.3
Compiled against GDAL: 3.8.2
Running against GDAL: 3.8.1

**System Info**
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.19045
wojtek19022 commented 2 months ago

Chyba jest to związane ze zbyt dużą ilością danych do przetworzenia: powiat krosieński tak samo (a nic innego w projekcie nie miałem):

Report Details

Python Stack Trace

Windows fatal exception: access violation

Current thread 0x00004674 (most recent call first):
  File "C:\Users/Wojtek/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pobieracz_danych_gugik\wfs\wfs_egib.py", line 47 in work_on_xml
    ns = etree.parse(folder + 'egib_wfs.xml')
  File "C:\Users/Wojtek/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pobieracz_danych_gugik\wfs\wfs_egib.py", line 87 in save_gml
    name_error, name_layers, prefix = self.work_on_xml(folder, url, teryt)
  File "C:\Users/Wojtek/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pobieracz_danych_gugik\wfs\wfs_egib.py", line 161 in egib_wfs
    name_error = self.save_gml(path, wfs, teryt)
  File "C:\Users/Wojtek/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pobieracz_danych_gugik\tasks\downloadWfsEgibTask.py", line 421 in run
    self.name_error = self.wfsEgib.egib_wfs(self.teryt, self.wfs, self.folder)

Thread 0x00000f0c (most recent call first):
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\ssl.py", line 1133 in read
    return self._sslobj.read(len, buffer)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\ssl.py", line 1275 in recv_into
    return self.read(nbytes, buffer)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\socket.py", line 704 in readinto
    return self._sock.recv_into(b)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\http\client.py", line 281 in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\http\client.py", line 320 in begin
    version, status, reason = self._read_status()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\http\client.py", line 1377 in getresponse
    response.begin()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\site-packages\urllib3\connectionpool.py", line 421 in _make_request
    httplib_response = conn.getresponse()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\site-packages\urllib3\connectionpool.py", line 670 in urlopen
    httplib_response = self._make_request(
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\site-packages\requests\adapters.py", line 439 in send
    resp = conn.urlopen(
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\site-packages\requests\sessions.py", line 643 in send
    r = adapter.send(request, **kwargs)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\site-packages\requests\sessions.py", line 530 in request
    resp = self.send(prep, **send_kwargs)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\site-packages\requests\api.py", line 61 in request
    return session.request(method=method, url=url, **kwargs)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\site-packages\requests\api.py", line 76 in get
    return request('get', url, params=params, **kwargs)
  File "C:\Users/Wojtek/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pobieracz_danych_gugik\wfs\wfs_egib.py", line 16 in save_xml
    r = requests.get(url, verify=False)
  File "C:\Users/Wojtek/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pobieracz_danych_gugik\wfs\wfs_egib.py", line 41 in work_on_xml
    name_error = self.save_xml(folder, url, teryt)
  File "C:\Users/Wojtek/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pobieracz_danych_gugik\wfs\wfs_egib.py", line 87 in save_gml
    name_error, name_layers, prefix = self.work_on_xml(folder, url, teryt)
  File "C:\Users/Wojtek/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pobieracz_danych_gugik\wfs\wfs_egib.py", line 161 in egib_wfs
    name_error = self.save_gml(path, wfs, teryt)
  File "C:\Users/Wojtek/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pobieracz_danych_gugik\tasks\downloadWfsEgibTask.py", line 421 in run
    self.name_error = self.wfsEgib.egib_wfs(self.teryt, self.wfs, self.folder)

Thread 0x00001cc0 (most recent call first):
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\selectors.py", line 315 in _select
    r, w, x = select.select(r, w, w, timeout)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\selectors.py", line 324 in select
    r, w, _ = self._select(self._readers, self._writers, [], timeout)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\socketserver.py", line 232 in serve_forever
    ready = selector.select(poll_interval)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 917 in run
    self._target(*self._args, **self._kwargs)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 980 in _bootstrap_inner
    self.run()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 937 in _bootstrap
    self._bootstrap_inner()

Thread 0x00003014 (most recent call first):
<no Python frame>

Stack Trace


RtlpWaitOnCriticalSection :
RtlpEnterCriticalSectionContended :
RtlEnterCriticalSection :
xmlGetGlobalState :
_xmlDefaultSAXHandler :
xmlDefaultSAXHandlerInit :
xmlInitParserCtxt :
xmlNewParserCtxt :
PyInit_etree :
PyInit_etree :
PyInit_etree :
PyInit_etree :
PyInit_etree :
PyInit_etree :
PyInit_etree :
PyEval_EvalFrameDefault :
PyEval_EvalFrameDefault :
PyEval_EvalFrameDefault :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyObject_GC_Del :
PyVectorcall_Call :
PyObject_Call :
pdal::PointContainer::freeTemp :
QgsPresetSchemeColorRamp::clone :
QgsTask::start :
QThreadPoolPrivate::reset :
QThread::start :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info QGIS Version: 3.34.5-Prizren QGIS code revision: 4b308492 Compiled against Qt: 5.15.3 Running against Qt: 5.15.3 Compiled against GDAL: 3.8.4 Running against GDAL: 3.8.4

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

wojtek19022 commented 2 months ago

Błąd też zawiera się w #90