Closed jim-easterbrook closed 5 years ago
A workaround is to use QtWebKit, if it's available on your operating system. Edit the Photini config file and set using_qtwebengine = False
.
Even after that I'm still getting occasional crashes on exit if I have any map tabs enabled. Probably something to do with object destruction, but with WebKit, JavaScript, Qt, and GObject in the mix it's hard to track down. Especially as it happens about once in a dozen times.
Aaaarrrrgh! The PyQt documentation shows how to avoid this problem. Previously I'd set sip.setdestroyonexit
to solve it, now it seems to be a cause! I think commit 38b9f49 finally nails the crash on exit problem. Until next time.
https://www.riverbankcomputing.com/static/Docs/PyQt5/gotchas.html#crashes-on-exit
The misreporting of GLib errors when using QtWebEngine remains unsolved.
I've found a nasty interaction between QtWebEngineWidgets and GExiv2, both of which are essential to Photini (if you want any map tabs). Here's my test script:
The file
invalid_Canon.jpg
causes problems to Exiv2, so running the script gives this:If I uncomment the
page =
line I get this:The error now appears to be from
browser_main_loop.cc
, which is part of the Chromium browser used in QtWebEngineWidgets. I expect Chromium also uses GObject, so maybe I have a clash of different library versions. Or something.