Bug 328627

Summary: Crash when i try to open a file (File->Recent Documents)
Product: [Applications] krita Reporter: Paul Geraskin <paulgeraskin>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: dimula73
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Paul Geraskin 2013-12-10 14:16:34 UTC
Hi guys.

When i try to open KRA file the krita crashes. 
It happens only in default dialog File->Recent Documents.

The KRA file should not be on the top of the dialog:
http://i.imgur.com/roCSKnB.png So, it should be like on the screenshot.

The crash: http://i.imgur.com/hnHwCxM.png

The file: https://dl.dropboxusercontent.com/u/26887202/Krita/snow_castle.kra

LOG: http://pastebin.com/D1N0geQa

IMPORTANT: The crash happens only with KRA files. PSD, PNG, ORA open ok.

OS: Linux Kubuntu 64, 13.04

Thanks.
Comment 1 Paul Geraskin 2013-12-10 16:46:37 UTC
It happens not only with KRA files. It happens with any file.
The crash happens when the file is not on the top: http://i.imgur.com/roCSKnB.png
Secon, third, fourth... in the list will crash..
Comment 2 Dmitry Kazakov 2013-12-12 13:35:21 UTC
Git commit 5638428294c7b8f3f1db7c86bee60a8ba21825ff by Dmitry Kazakov.
Committed on 12/12/2013 at 13:34.
Pushed by dkazakov into branch 'master'.

Fix crash when switching QPainter->openGL canvases

The openGL context should be initialized at least once in the beginning.

This surely fixes:
Related: bug 328649, bug 327684

Please check whether these bugs are fixed now:

M  +1    -0    krita/ui/canvas/kis_canvas2.cpp
M  +5    -0    krita/ui/opengl/kis_opengl.cpp
M  +2    -0    krita/ui/opengl/kis_opengl.h

http://commits.kde.org/calligra/5638428294c7b8f3f1db7c86bee60a8ba21825ff
Comment 3 Dmitry Kazakov 2013-12-12 13:35:52 UTC
Git commit 00b41abdb63fec901ebadbb356240158a24c0e36 by Dmitry Kazakov.
Committed on 12/12/2013 at 13:34.
Pushed by dkazakov into branch 'calligra/2.8'.

Fix crash when switching QPainter->openGL canvases

The openGL context should be initialized at least once in the beginning.

This surely fixes:
Related: bug 328649, bug 327684

Please check whether these bugs are fixed now:

M  +1    -0    krita/ui/canvas/kis_canvas2.cpp
M  +5    -0    krita/ui/opengl/kis_opengl.cpp
M  +2    -0    krita/ui/opengl/kis_opengl.h

http://commits.kde.org/calligra/00b41abdb63fec901ebadbb356240158a24c0e36