Krita, LLVM, OpenGTL and Mesa

Cyrille Berger cberger at cberger.net
Tue Sep 25 08:56:12 UTC 2012


Hi,

Bugs are popping around about crashes when starting Krita that points in
OpenGTL:

https://bugs.kde.org/show_bug.cgi?id=304903
https://bugs.kde.org/show_bug.cgi?id=307173

This basically happen for people using some of the open source 3D drivers.
As some of you knows, this is caused by having llvm statically linked
twice, once in OpenGTL and once in Mesa. There is one and only one fix,
which is to have OpenGTL and Mesa dynamically link to the LLVM library. In
other words, the burden of the fix is left to the distributions. Not much
we can do about it, and it is already done by, at least, Fedora and Ubuntu.
Notable distribution with the problem is OpenSuSE.

However, that leave us to the problem of crash at startup. We have several
solutions:

1) ignore it and let the user put pressure on their respective
distributions
2) do like for opengl, detect the start crash and disable the GTL plugins
3) detect (somehow) that the user is using mesa with a statically linked
llvm and then disable the GTL plugins

The "cleanest" for the user would be 3), but I think it would be tricky to
implement, so I guess we should go with 2) road.

-- 
Cyrille Berger


More information about the kimageshop mailing list