-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 crash when using the python-lxml package (Windows) #58205
Comments
Had a similar bug, updated lxml from 5.2.1 to 5.2.2 fixed it ! In my case, I was trying to load a workbook using openpyxl and it was crashing at that moment. Doing it in the QGIS Python console or outside qgis worked fine, but it crashed all the time when running it in my custom processing tool. Thanks ! |
Still persists in QGIS 3.34.10 LTR Python Stack Trace
Stack Trace
QGIS Info System Info |
same for me, random crashes with python-docx (internally use lxml), upgrade to lxml-5.3.0 solved crash |
Hi @jef-n , apparently python3-lxml has to be updated in Windows packaging |
Hi, still valid in newest LTR 3.34.15 Report DetailsPython Stack Trace
Stack Trace
QGIS Info System Info |
Hi @jef-n , the python3-lxml package version currently in OSGeo4W build crashes QGIS, how could we update the package version? Previous comment:
Thanks |
@Djedouas, the python3-lxml package version 5.3.0 is now available in the OSGeo4W repository. |
What is the bug or the crash?
Hi,
I ran into an issue with the latest QGIS version when using lxml (e.g. from openpyxl) in a QGIS plugin or from the console.
I can force the crash from the Python console but not every time in my complex plugin setup.
Maybe the issue #55807 is related to this issue.
Steps to reproduce the issue
You find a test plugin here: https://github.com/felixvons/test_qgis_plugin_qgis_crash_with_xml
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Aktive Python-Erweiterungen
test_qgis_plugin_qgis_crash_with_xml
1.0
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
Supported QGIS version
New profile
Additional context
The detailed reason for the crash is unknown to me.
I found two following solutions to fix the problem (for me):
I created a small test plugin to force the crash with lxml/openpyxl: https://github.com/felixvons/test_qgis_plugin_qgis_crash_with_xml
The text was updated successfully, but these errors were encountered: