upgraded from 15.8.3 to 16.04.1 and kmahjongg was in an endless loop until I moved ~/.config/kmahjonggrc away : tfoerste@t44 ~/.config $ cat ~/tmp/kmahjonggrc [General] Background_file=/usr/share/apps/kmahjongglib/backgrounds/default.desktop Layout_file=/usr/share/apps/kmahjongg/layouts/default.desktop Tileset_file=/usr/share/apps/kmahjongglib/tilesets/egypt.desktop With that file I got zillions of lines like : Shortcut for action "view_angleccw" "Rotate View Counterclockwise" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead. Shortcut for action "view_anglecw" "Rotate View Clockwise" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead. log_libkmahjongg: Inside LoadDefault(), located path at "/usr/share/kmahjongglib/tilesets/default.desktop" log_kmahjongg: An error occurred when loading the tileset "/usr/share/apps/kmahjongglib/tilesets/egypt.desktop" KMahjongg will continue with the default tileset. log_kmahjongg: Set a new Background: "/usr/share/apps/kmahjongglib/backgrounds/default.desktop" log_kmahjongg: Loading the background failed. Try to load the default background. log_libkmahjongg: Inside LoadDefault(), located background at "/usr/share/kmahjongglib/backgrounds/egyptian.desktop" log_libkmahjongg: Using background at "/usr/share/kmahjongglib/backgrounds/egyptian.svgz" QPainter::begin: Paint device returned engine == 0, type: 3 QPainter::save: Painter not active QPainter::setPen: Painter not active QPainter::setBrush: Painter not active QPainter::setRenderHint: Painter must be active to set rendering hints QPainter::setRenderHint: Painter must be active to set rendering hints QPainter::restore: Unbalanced save/restore log_kmahjongg: An error occurred when loading the background "/usr/share/apps/kmahjongglib/backgrounds/default.desktop" KMahjongg will continue with the default background. log_kmahjongg: Error loading the layout. Try to load the default layout. log_kmahjongg: Inside LoadDefault(), located layout at "/usr/share/kmahjongg/layouts/default.desktop" log_kmahjongg: Using layout at "/usr/share/kmahjongg/layouts/default.layout" log_libkmahjongg: Inside LoadDefault(), located path at "/usr/share/kmahjongglib/tilesets/default.desktop" log_kmahjongg: An error occurred when loading the tileset "/usr/share/apps/kmahjongglib/tilesets/egypt.desktop" KMahjongg will continue with the default tileset. log_kmahjongg: Set a new Background: "/usr/share/apps/kmahjongglib/backgrounds/default.desktop" log_kmahjongg: Loading the background failed. Try to load the default background. log_libkmahjongg: Inside LoadDefault(), located background at "/usr/share/kmahjongglib/backgrounds/egyptian.desktop" log_libkmahjongg: Using background at "/usr/share/kmahjongglib/backgrounds/egyptian.svgz" QPainter::begin: Paint device returned engine == 0, type: 3 QPainter::save: Painter not active QPainter::setPen: Painter not active Reproducible: Always
The problem is not that the kmahjonggrc file is "too old", but that it specifies a non-existing Layout_file which causes kmahjongg to enter an endless loop apparently. Just removing (or correcting) that one line should fix it too. *** This bug has been marked as a duplicate of bug 361132 ***