What's the matter with Calibre?

Hello,
I’m in MATE 1.8.0-2~ppa1~trusty with Ubuntu 14.04

A few days, when I open Calibre there is a bug whith the display. All the windows indicator blink until the software stops.
But when my computer run with Cinnamon, all is right !
Here the error message:

quote: Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion ‘GTK_IS_WIDGET (widget)’ failed

QWidget::setMinimumSize: (MainWindow/Main) The largest allowed size is (16777215,16777215)

QXcbShmImage: shmget() failed (22) for size -524284 (65535x65535)
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setFont: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setPen: Painter not active
QPainter::deviceTransform: Painter not active
QPainter::worldTransform: Painter not active
QPainter::save: Painter not active
QPainter::setClipRect: Painter not active
QPainter::restore: Unbalanced save/restore
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setClipRect: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::pen: Painter not active
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setFont: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setPen: Painter not active
QPainter::deviceTransform: Painter not active
QPainter::worldTransform: Painter not active
QPainter::save: Painter not active
QPainter::setClipRect: Painter not active
QPainter::restore: Unbalanced save/restore
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setClipRect: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::pen: Painter not active
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::end: Painter not active, aborted
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setBrush: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::save: Painter not active
QPainter::setClipRect: Painter not active
QPainter::translate: Painter not active
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
Erreur de segmentation (core dumped)
[/quote]

But I prefer to use MATE for working… Someone can help me ?

It looks as though a dependency on Qt isn’t working properly - I’m currently away from my MATE machine so can’t check this myself :cry:

Calibre is hard to get working because it is a complicated, unwieldy application which depends on a lot of libraries, including Qt. When I used it I found that it was prone to glitches and the best results were obtained by installing it using the instructions on the official Web site, rather than depending on a version in a PPA.

(An advantage of using the official method is that you always get the latest version).

Thank for your answer.
You’r right, I use the version find on http://calibre-ebook.com/download_linux, the 2.20 because with the canonical version I had the 1.25 !
But I don’t understand why Calibre is OK under Cinnamon and not under MATE… Qt is dependent on the window manager ?

I am using Calibre 2.20 with Ubuntu MATE 14.10 and I haven’t observed any issue.
My version of MATE is 1.8.1 though.

Yes Yes Yes!
I just find the soluce in this forum:
http://www.mobileread.com/forums/showthread.php?p=3066037

I was a problem about the theme.
I changed it with Cinnamon (because in ~/.config/calibre/gui.json I dont find ‘ui_style’) and now all is OK.
:grin:

1 Like