Bug 362712 - Crash when switching OpenGL on/off
Summary: Crash when switching OpenGL on/off
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: OpenGL Canvas (show other bugs)
Version: 3.0 Beta
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2016-05-05 17:13 UTC by elkmug
Modified: 2016-10-07 18:42 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Krita debug output for changing opengl crash (3.36 KB, text/plain)
2016-05-06 11:09 UTC, elkmug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description elkmug 2016-05-05 17:13:28 UTC
Happens on Win 7 64-bit SP1 and Linux Mint 17 LTS 64-bit

Krita 3.00-Beta-Master, two most recent builds
windows: 962bfe1 and f989682 
linux: 37389d5-x86_64 and e413f10-x86_64

Win krita-opengl.txt:  NVIDIA Corporation, GeForce GTX 750 Ti/PCIe/SSE2, 4.5.0 NVIDIA 364.72

Reproducible: Always

Steps to Reproduce:
1.Have an image open in Krita. The crash does NOT occur if there are no images open.
2.Go to Settings>Configure Krita>Display 
3.Change OpenGL from on to off or from off to on.
4.Click OK to exit preferences

Actual Results:  
Krita crashes

Expected Results:  
Close preferences without crashing
Comment 1 Tyson Tan 2016-05-06 07:54:35 UTC
This happened to me on Ubuntu 16.04 Gnome Edition.
Comment 2 elkmug 2016-05-06 11:09:47 UTC
Created attachment 98805 [details]
Krita debug output for changing opengl crash

Added linux debug output for crash
Comment 3 Scott Petrovic 2016-05-07 14:42:55 UTC
this also happens on my windows 10 build
Comment 4 Silvio Grosso 2016-05-19 19:50:09 UTC
Just downloaded today the new version (3.0 RC 1) and I confirm the crash on my system too.
This is a big regression on my system because now Krita always crashes whenever I check-uncheck the OpenGL option.
Previously, on my system, OpenGL has never worked fine but now it is even worse because of this crash.

Windows 7 - 64 bit
CPU: Intul I7
GPU: Nvidia (driver installed is: 353.89)

Log error:
00000003	4.17895174	[8008] QCoreApplication::arguments: Please instantiate the QApplication object first	
00000004	4.18042994	[8008] QCoreApplication::applicationDirPath: Please instantiate the QApplication object first	
00000005	4.18047047	[8008] QCoreApplication::applicationDirPath: Please instantiate the QApplication object first	
00000006	4.18064547	[8008] QCoreApplication::applicationDirPath: Please instantiate the QApplication object first	
00000007	4.18069839	[8008] QCoreApplication::applicationDirPath: Please instantiate the QApplication object first	
00000008	4.18086863	[8008] QCoreApplication::applicationDirPath: Please instantiate the QApplication object first	
00000009	4.18090153	[8008] QCoreApplication::applicationDirPath: Please instantiate the QApplication object first	
00000010	4.18120384	[8008] krita.lib.pigment: Compiled for arch: ::Vc::AVXImpl	
00000011	4.18123913	[8008] krita.lib.pigment: Features supported:	
00000012	4.18126774	[8008] krita.lib.pigment:   "SSE2"  ---  yes	
00000013	4.18130016	[8008] krita.lib.pigment:   "SSSE3"  ---  yes	
00000014	4.18131208	[8008] krita.lib.pigment:   "SSE4.1"  ---  yes	
00000015	4.18135309	[8008] krita.lib.pigment:   "AVX "  ---  yes	
00000016	4.25713301	[8008] Set style "Fusion"	
00000017	4.27973890	[8008] OpenGL Info	
00000018	4.27976465	[8008]   Vendor:  Intel	
00000019	4.27978516	[8008]   Renderer:  Intel(R) HD Graphics 3000	
00000020	4.27980280	[8008]   Version:  3.1.0 - Build 9.17.10.3347	
00000021	4.27982092	[8008]   Shading language:  1.40 - Intel Build 9.17.10.3347	
00000022	4.27985811	[8008]   Requested format:  QSurfaceFormat(version 3.2, options QFlags(0x4), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 0, profile  2)	
00000023	4.27988482	[8008]   Current format:    QSurfaceFormat(version 3.1, options QFlags(0x4), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior 2, swapInterval 1, profile  0)	
00000024	4.28264904	[8008] GL Version: 302 0 2	
00000025	4.28266764	[8008] krita has opengl true	
00000026	4.28274202	[8008] Setting XDG_DATA_DIRS "C:/Downloads/krita-3.0-RC-1-master-6f75b0f-x64/bin/../share"	
00000027	4.28619480	[8008] availableCatalogLanguages() localDirPaths ("C:/Downloads/krita-3.0-RC-1-master-6f75b0f-x64/bin/data/locale") languages QSet("eo", "da", "sl", "hne", "tg", "et", "ms", "nn", "pt_BR", "es", "zh_CN", "eu", "xh", "bg", "uz", "mr", "el", "cs", "ta", "pt", "ja", "br", "cy", "it", "uz@cyrillic", "se", "sk", "ne", "lt", "pa", "en_GB", "ar", "pl", "ug", "ga", "fr", "vi", "ro", "de", "tr", "ko", "nds", "fa", "ast", "lv", "ca", "uk", "fy", "hu", "zh_TW", "km", "is", "kk", "ru", "fi", "he", "th", "sq", "ia", "sv", "hr", "hi", "wa", "ca@valencia", "be", "mk", "gl", "oc", "bs", "nb", "af", "nl", "mai")	
00000028	4.28624535	[8008] Available translations QSet("eo", "da", "sl", "hne", "tg", "et", "ms", "nn", "pt_BR", "es", "zh_CN", "eu", "xh", "bg", "uz", "mr", "el", "cs", "ta", "pt", "ja", "br", "cy", "it", "uz@cyrillic", "se", "sk", "ne", "lt", "pa", "en_GB", "ar", "pl", "ug", "ga", "fr", "en_US", "vi", "ro", "de", "tr", "ko", "nds", "fa", "ast", "lv", "ca", "uk", "fy", "hu", "zh_TW", "km", "is", "kk", "ru", "fi", "he", "th", "sq", "ia", "sv", "hr", "hi", "wa", "ca@valencia", "be", "mk", "gl", "oc", "bs", "nb", "af", "nl", "mai")	
00000029	4.28917313	[8008] availableCatalogLanguages() localDirPaths ("C:/Downloads/krita-3.0-RC-1-master-6f75b0f-x64/bin/data/locale") languages QSet("eo", "da", "sl", "hne", "tg", "et", "ms", "nn", "pt_BR", "es", "zh_CN", "eu", "xh", "bg", "uz", "mr", "el", "cs", "ta", "pt", "ja", "br", "cy", "it", "uz@cyrillic", "se", "sk", "ne", "lt", "pa", "en_GB", "ar", "pl", "ug", "ga", "fr", "vi", "ro", "de", "tr", "ko", "nds", "fa", "ast", "lv", "ca", "uk", "fy", "hu", "zh_TW", "km", "is", "kk", "ru", "fi", "he", "th", "sq", "ia", "sv", "hr", "hi", "wa", "ca@valencia", "be", "mk", "gl", "oc", "bs", "nb", "af", "nl", "mai")	
00000030	4.28924417	[8008] Available domain translations QSet("eo", "da", "sl", "hne", "tg", "et", "ms", "nn", "pt_BR", "es", "zh_CN", "eu", "xh", "bg", "uz", "mr", "el", "cs", "ta", "pt", "ja", "br", "cy", "it", "uz@cyrillic", "se", "sk", "ne", "lt", "pa", "en_GB", "ar", "pl", "ug", "ga", "fr", "en_US", "vi", "ro", "de", "tr", "ko", "nds", "fa", "ast", "lv", "ca", "uk", "fy", "hu", "zh_TW", "km", "is", "kk", "ru", "fi", "he", "th", "sq", "ia", "sv", "hr", "hi", "wa", "ca@valencia", "be", "mk", "gl", "oc", "bs", "nb", "af", "nl", "mai")	
00000031	4.28941059	[8008] PATH "C:/Downloads/krita-3.0-RC-1-master-6f75b0f-x64/bin;C:/Downloads/krita-3.0-RC-1-master-6f75b0f-x64/lib;C:/Downloads/krita-3.0-RC-1-master-6f75b0f-x64/lib/kde4;C:/Downloads/krita-3.0-RC-1-master-6f75b0f-x64/Frameworks;C:/Downloads/krita-3.0-RC-1-master-6f75b0f-x64"	
00000032	4.28967476	[8008] catalogLocaleDir domain "krita" language "it" relpath "it/LC_MESSAGES/krita.mo" file "C:/Downloads/krita-3.0-RC-1-master-6f75b0f-x64/bin/data/locale/it/LC_MESSAGES/krita.mo" localeDir "C:/Downloads/krita-3.0-RC-1-master-6f75b0f-x64/bin/data/locale"	
00000033	4.29045630	[8008] QCommandLineParser: option not defined: "profile-filename"	
00000034	4.34753609	[8008] krita.tabletlog: Opened tablet context  0x808  on window  0x9f035e changed packet queue size  50 -> 128	
00000035	4.76263666	[8008] KoJsonTrader will load its plugins from "C:/Downloads/krita-3.0-RC-1-master-6f75b0f-x64/lib/kritaplugins"	
00000036	8.06288719	[8008]  falling back on QIcon::FromTheme: "document-properties"	
00000037	8.18931007	[8008] libpng warning: iCCP: too many profiles	
00000038	8.19040012	[8008] libpng warning: iCCP: too many profiles	
00000039	8.19269657	[8008] libpng warning: iCCP: too many profiles	
00000040	8.19386101	[8008] libpng warning: iCCP: too many profiles	
00000041	9.01777077	[5296] [PopCon]WiFiSearchComplete()	
00000042	19.52904892	[8008] krita.core: Missing name attribute for tag  "date"	
00000043	19.56110001	[8008] GL Version: 302 0 2	
00000044	19.65512466	[8008] libpng warning: iCCP: too many profiles	
00000045	19.93068695	[8008] krita.lib.flake: "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]"	
00000046	19.93087959	[8008] krita.lib.flake: "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+["	
00000047	19.94906235	[8008] krita.lib.flake: "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]"	
00000048	19.94929123	[8008] krita.lib.flake: "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+["	
00000049	20.00855827	[5296] [PopCon]DeviceManager::RefreshMonitor, 51	
00000050	20.00862503	[5296] [PopCon]WiFiMonitor::Refresh	
00000051	20.05098343	[8008] glVersion	
00000052	24.52788353	[8008] QLayout: Attempting to add QLayout "" to KisShortcutsDialog "", which already has a layout	
00000053	24.55513763	[8008] krita.general: Action without text! "composite_actions"	
00000054	24.55684471	[8008] krita.general: Action without text! "edit_paste_text"	
00000055	24.55720139	[8008] krita.general: Action without text! "format_backgroundcolor"	
00000056	24.55808258	[8008] krita.general: Action without text! "format_textcolor"	
00000057	24.58125877	[8008] GL Version: 302 0 2
Comment 5 Halla Rempt 2016-05-20 06:07:49 UTC
I fixed this the day after the rc1 was made.
Comment 6 Tyson Tan 2016-05-20 08:51:54 UTC
Thank you, Boud! :D
Comment 7 andyvandalsem 2016-10-07 00:36:54 UTC
This is crashing for me in 3.0.1.1

Windows 7

Here's the Dr. Mingw printout:

krita.exe caused an Access Violation at location 0000000069AE0D4F in module libkritaui.dll Reading from location 0000000000000069.

AddrPC           Params
0000000069AE0D4F 0000000068B592F0 0000000013F92570 000000002621C290  libkritaui.dll!KisPopupPalette::showPopupPalette
0000000069AE0D9F 000000000022B220 0000000069BE6A0F 000000000022B238  libkritaui.dll!KisPopupPalette::showPopupPalette
0000000069BF0858 000000000022B238 0000000069BF2BCA 0000000068B59200  libkritaui.dll!KisShowPaletteAction::begin
0000000069BF22AC 00000000017F02A8 00000000773ADB18 0039D00E0000000D  libkritaui.dll!KisShortcutMatcher::tryRunReadyShortcut
0000000069BF374A 0000000000000000 0000000000000002 000000001A983FC0  libkritaui.dll!KisShortcutMatcher::buttonPressed
0000000069BE2193 000000000022B450 000000000022B9B0 000000000022B450  libkritaui.dll!KisInputManager::eventFilterImpl
0000000068A0E7BD 000000000022FDA0 000000000022B610 000000000022B610  Qt5Core.dll!QCoreApplicationPrivate::sendThroughObjectEventFilters
0000000061DCA315 000000001400CC10 0000000007012148 00000258000003DE  Qt5Widgets.dll!QApplicationPrivate::notify_helper
0000000061DD043D 000000000022B810 000000002612C7B0 0000000000000000  Qt5Widgets.dll!QApplication::notify
0000000069C31746 0000000000868020 0000000061DFC876 0000000000868020  libkritaui.dll!KisApplication::notify
0000000068A0E9F2 000000002612C7B0 000000002612C7B0 000000002612C7B0  Qt5Core.dll!QCoreApplication::notifyInternal2
0000000061DCEB90 0180000900000000 0000000000000001 0000001500000015  Qt5Widgets.dll!QApplicationPrivate::sendMouseEvent
0000000061E235E7 0000000003A42F80 000000000022BFD0 00000000154434B0  Qt5Widgets.dll!QDesktopWidget::qt_metacall
0000000061E25EAB 000000000022FDA0 000000000000002E 0000000000000001  Qt5Widgets.dll!QDesktopWidget::qt_metacall
0000000061DCA33C 0000202E00000000 00000000000000FC 0000000000000000  Qt5Widgets.dll!QApplicationPrivate::notify_helper
0000000061DCF6A0 0000000000000000 00000000154434B0 0000000000000000  Qt5Widgets.dll!QApplication::notify
0000000069C31746 40908C0000000000 00000000008764F4 0000000000000000  libkritaui.dll!KisApplication::notify
0000000068A0E9F2 0000000000061138 000000000022C0F8 0000000003B2BCE8  Qt5Core.dll!QCoreApplication::notifyInternal2
0000000000865C07 0000000000000002 0000000000000000 0000000000000204  Qt5Gui.dll!QGuiApplicationPrivate::processMouseEvent
0000000000867635 0000000000000000 00000000000310AE 0000000000000000  Qt5Gui.dll!QGuiApplicationPrivate::processWindowSystemEvent
000000000084CD4C 0000000000000401 0000000000000000 0000000000000000  Qt5Gui.dll!QWindowSystemInterface::sendWindowSystemEvents
0000000068A5577A 000000000022C418 0000000000000000 0000000000000000  Qt5Core.dll!QEventDispatcherWin32Private::sendTimerEvent
0000000077279C11 000000000022C500 0000000068A55450 000000000022C500  USER32.dll!UserCallWinProcCheckWow
000000007727992A 0000000003B077B0 0000000000000000 0000000000000001  USER32.dll!DispatchMessageWorker
0000000068A54EB3 0000000003B1C200 0000000000000024 000000000022FDA0  Qt5Core.dll!QEventDispatcherWin32::processEvents
0000000003FBAB05 0000000000000080 0000000000000014 000000001A9232C0  qwindows.dll!qt_plugin_instance
0000000068A0DCCA 0000000068A34830 000000000022FCB0 0000000068A2E670  Qt5Core.dll!QEventLoop::exec
0000000068A14927 000000000022FAB0 000000000022FCB0 0000000000000097  Qt5Core.dll!QCoreApplication::exec
000000000041B115 0000000000000001 000000000000002B 0000000000825B38  krita.exe!0x1b115
00000000004013E8 0000000000000000 0000000000000000 0000000000000000  krita.exe!0x13e8
00000000004014EB 0000000000000000 0000000000000000 0000000000000000  krita.exe!0x14eb
00000000771559BD 0000000000000000 0000000000000000 0000000000000000  kernel32.dll!BaseThreadInitThunk
000000007738A2E1 0000000000000000 0000000000000000 0000000000000000  ntdll.dll!RtlUserThreadStart
Comment 8 Halla Rempt 2016-10-07 08:38:51 UTC
Hi Andy,

This issue is fixed in 3.0.1.90 -- the first beta release for what will become Krita 3.1. You can download it here: http://download.kde.org/unstable/krita/3.0.1.90/
Comment 9 andyvandalsem 2016-10-07 17:25:51 UTC
(In reply to Boudewijn Rempt from comment #8)
> Hi Andy,
> 
> This issue is fixed in 3.0.1.90 -- the first beta release for what will
> become Krita 3.1. You can download it here:
> http://download.kde.org/unstable/krita/3.0.1.90/

Sorry, didn't realize there was a version to test past 3.0.1.1 yet. Thanks for the fix!
Comment 10 Halla Rempt 2016-10-07 18:42:18 UTC
It's only a beta :-)