Bug 394292

Summary: Erro on close application
Product: [Applications] kolourpaint Reporter: Ricardo Gavira <ricgavira>
Component: generalAssignee: kolourpaint-support
Status: CONFIRMED ---    
Severity: normal CC: martin
Priority: NOR    
Version First Reported In: 17.08.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: kolourpaint report

Description Ricardo Gavira 2018-05-15 20:35:54 UTC
Created attachment 112675 [details]
kolourpaint report

Error on close application. See attachment report
Comment 1 Martin Koller 2018-05-21 16:57:59 UTC
I somehow understand what happens here:

kolourpaint has an image content in the X-clipboard.
When kolourpaint quits, Qt (in the destructor of QXcbClipboard) tries to pass the clipboard to a clipboard manager.
In this case it seems the image in the clipboard has an EPS mimeType, therefore it tries to QImage::save() the image in EPS format and therefore it needs the KDE EPS imageformat plugin, which in EPSHandler::write() creates a QPrinter which fails since there no longer is a QApplication instance, since all this happens in the destructor.

What I have no idea about is: how can I put an image into the X-clipboard in the EPS format ?

Ricardo, any idea what you did when the crash happened ?
I'd like a way to reproduce this.