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

Dispersion step crash with UnicodeDecodeError #7

Open
MathieuChailloux opened this issue Feb 19, 2020 · 3 comments
Open

Dispersion step crash with UnicodeDecodeError #7

MathieuChailloux opened this issue Feb 19, 2020 · 3 comments

Comments

@MathieuChailloux
Copy link
Owner

Log example

[2020-02-19 12:06:29.562189] [info] Calling processing algorithm 'gdal:rastercalculator'
[2020-02-19 12:06:29.576152] [info] GDAL command:
[2020-02-19 12:06:29.577149] [info] GDAL command output:
[2020-02-19 12:06:29.627016] [warn] Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~1.10/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithm.py", line 137, in processAlgorithm GdalUtils.runGdal(commands, feedback) File "C:/PROGRA~1/QGIS3~1.10/apps/qgis/./python/plugins\processing\algs\gdal\GdalUtils.py", line 106, in runGdal for line in proc.stdout: File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 87: invalid start byte 
[2020-02-19 12:06:29.628013] [warn] Il y a eu des erreurs lors de l’exécution de l’algorithme.
[2020-02-19 12:06:29.628013] [warn] Failed to call rastercalculator : Il y a eu des erreurs lors de l’exécution de l’algorithme.
[2020-02-19 12:06:29.630008] [Unexpected error] : Il y a eu des erreurs lors de l’exécution de l’algorithme.

Issue happens when calling gdal:rastercalculator on Windows.

If possible, try to launch QGIS with GDAL version 2.X (and not 3.X).

Follow QGIS issue 31023
qgis/QGIS#31023

@jeremybachmann
Copy link

Hi,
I have quite the same issue. Everything's fine for steps 1-5 but steps 6 or 7 return this error :
[info] GDAL command:
[info] GDAL command output:
[internal error] Traceback (most recent call last): File "C:/Program Files/QGIS 3.4/apps/qgis-ltr/./python/plugins\processing\algs\gdal\GdalAlgorithm.py", line 133, in processAlgorithm GdalUtils.runGdal(commands, feedback) File "C:/Program Files/QGIS 3.4/apps/qgis-ltr/./python/plugins\processing\algs\gdal\GdalUtils.py", line 110, in runGdal for line in proc.stdout: File "C:\Program Files\QGIS 3.4\apps\Python37\lib\codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 1793: invalid continuation byte
[internal error] Il y a eu des erreurs lors de l’exécution de l’algorithme.
[warn] Failed to call rastercalculator : Il y a eu des erreurs lors de l’exécution de l’algorithme.
[2021-03-04 11:06:12.095323]
I use QGIS 3.4.5 and GRASS 7.6.0, GDAL 3.1.9
It is an error in GDAL rastercalculator. I tried it separately and get the same issue. I hope a Gdal update will solve this

@MathieuChailloux
Copy link
Owner Author

Hi Jeremy,

The only solution for this issue has been to re-install QGIS (LTR version), is it an option for you ?

Regards,
Mathieu

@jeremybachmann
Copy link

I installed QGIS 3.10.6 with GDAL 3.0.4 and it works. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants