letmaik / lensfunpy

📷 Lens distortion correction for Python, a wrapper for lensfun
https://pypi.python.org/pypi/lensfunpy
MIT License
145 stars 18 forks source link

String memory corruption with xml strings #6

Closed letmaik closed 7 years ago

letmaik commented 9 years ago

On Travis, the Mac builds fail randomly for Python 3.3 and 3.4 (2.7 not observed yet) with:

tests.testDatabaseXMLLoading ... 
** (process:89054): WARNING **: [lensfun] XML:25:72: Error on line 25 char 72: Odd character 'l', expected a '=' after attribute name 'c' of element 'distortion'

or

tests.testDatabaseXMLLoading ... 
** (process:89032): WARNING **: [lensfun] XML:1:1: Error on line 1 char 1: Document must begin with an element (e.g. <book>)

Why is this not happening on Linux or Windows? Could it be a problem with the gettext install?

This happened only recently and may be due to Travis updating the Mac workers.

letmaik commented 8 years ago

Not observed anymore, closing.

letmaik commented 8 years ago

Happened again. Python 3.4, lensfunpy 1.4.0, Mac OS X on Travis. Error was Error on line 1 char 1

[2017-04-22] Still happening, again on Python 3.4, macOS on Travis: https://travis-ci.org/letmaik/lensfunpy/jobs/224702634

Also observed on Windows with Python 3.4 now: https://ci.appveyor.com/project/letmaik/lensfunpy/build/1.0.177/job/uegjex5yfyljrmhj

tests.testDatabaseXMLLoading ... (python.exe:1668): WARNING : [Lensfun] XML:28:2: Error on line 28 char 2: Invalid UTF-8 encoded text in name - not valid '\x80'

And on Linux: https://travis-ci.org/letmaik/lensfunpy/jobs/265723841

Seems to be random XML string corruption.