STCC-219 fixed svg-to-png conversion error with xml register_namespace #154
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This error occured when multiple svg conversions where running at the same time and were modifying the global dictionary matching namespace uri and their prefixes. Locking the call to register_namespace seems to have fixed the problem.
Testing is difficult as this error appeared randomly and cannot be reproduced on command. It appeared most often when converting projects with a large number of images.
How I did test: converting about 200 projects where I knew those errors occured multiple times in the past (from testing and using run_statistics) and this error did not appear again.