jim-easterbrook / Photini

An easy to use digital photograph metadata (Exif, IPTC, XMP) editing application.
https://photini.readthedocs.io/
GNU General Public License v3.0
163 stars 24 forks source link

Crashing if metadata uses non UTF-8 characters #33

Closed jim-easterbrook closed 6 years ago

jim-easterbrook commented 6 years ago

If an image file has metadata using non ASCII characters (e.g. accented letters) that are not UTF-8 encoded than Photini may crash when reading the metadata. The crash typically says something like "Error in `python3': munmap_chunk(): invalid pointer:" and prints a long backtrace.

As far as I can tell, this only happens when using Python3 and when using PyGobject rather than pgi. The quick fix is to install pgi: sudo pip3 install pgi.

jim-easterbrook commented 6 years ago

Commit a1e770e attempts to prevent any triggering of this crash. I still prefer to use pgi though.