KGameRenderer: handle requests for images with too large or invalid sizes
Turns output with kmines e.g. into
kdegames: Could not create QImage. Key: "mainWidget" Frame: -1 Size: QSize(1941359222, 1217526246)
kdegames: Could not create QImage. Key: "cell_up" Frame: -1 Size: QSize(110684204, 110684204)
kdegames: Could not create QImage. Key: "border.outsideCorner.nw" Frame: -1 Size: QSize(110684204, 110684204)
kdegames: Could not create QImage. Key: "border.outsideCorner.ne" Frame: -1 Size: QSize(110684204, 110684204)
kdegames: Could not create QImage. Key: "border.edge.north" Frame: -1 Size: QSize(110684204, 110684204)
kdegames: Could not create QImage. Key: "border.edge.east" Frame: -1 Size: QSize(110684204, 110684204)
kdegames: Could not create QImage. Key: "border.edge.west" Frame: -1 Size: QSize(110684204, 110684204)
kdegames: Could not create QImage. Key: "border.edge.south" Frame: -1 Size: QSize(110684204, 110684204)
kdegames: Could not create QImage. Key: "border.outsideCorner.sw" Frame: -1 Size: QSize(110684204, 110684204)
kdegames: Could not create QImage. Key: "border.outsideCorner.se" Frame: -1 Size: QSize(110684204, 110684204)
which should give more initial clue than otherwise contextless
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::save: Painter not active
QPainter::worldTransform: Painter not active
QPainter::translate: Painter not active
QPainter::scale: Painter not active
QPainter::worldTransform: Painter not active
QPainter::worldTransform: 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::worldTransform: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::worldTransform: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::brush: Painter not active
QPainter::setBrush: Painter not active
QPainter::pen: Painter not active
[...]
Based on that clue, follow-up for kmines prepared right now :)