Comment 11 for bug 1604266

Revision history for this message
Klaus Thoeni (klaus.thoeni) wrote :

Hi all,

here a follow up on this from my side and a "work-around". I know what's causing the problem and it can be avoided

First of all, this is definitely not a Kubuntu specific problem. I could not identify a specific pattern but I tried various distros on various computers and the problem seems to be related to certain computers (maybe graphic card/driver?).

Anyway, I could figure out what is causing the problem. It is related to QT and not loading yade.qt.Controller() at start-up is solving the problem. In order to deactivate this you have to manually modify your yade executable script after install (e.g., /home/user/path-to-your-local-yade-install/install/bin/yade... or /usr/bin/yade or /usr/bin/yadedaily). Look for this line:

if (gui<>'none'): yade.qt.Controller()

It should be around line 174. Comment this line and safe the script. Launch yade and it should work. In the ipython terminal you can now press F12 to load the Controller and it will be fine.

Note that this means that you should not load the qt.Controller() in your scripts either but rather do it once you are in the ipython terminal.

I even thought about committing this fix, it just involves commenting/deleting the same line in core/main/main.py.in but wasn't sure if is in all our interests as some are not having this problem and it would mean that the qt.Controller() is not loaded by default.

Let me know what you think or if anyone has deeper understanding on what's going on. At least we know what is causing the problem and that there is a workaround.

HTH
Klaus