Bug 364646

Summary: new kmahjongg won't start if an too old rc file is there
Product: [Applications] kmahjongg Reporter: Toralf Förster <toralf.foerster>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde-games-bugs, wbauer1
Priority: NOR    
Version: 0.9   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Toralf Förster 2016-06-22 19:49:27 UTC
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
Comment 1 Wolfgang Bauer 2016-06-23 16:59:12 UTC
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 ***