Bug 363873 - krita stops working after any use of the "Adesso Cybertablet M14"
Summary: krita stops working after any use of the "Adesso Cybertablet M14"
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tablets (tablet issues are only very rarely bugs in Krita!) (show other bugs)
Version: 3.0
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-03 02:52 UTC by thestbisnot
Modified: 2016-06-03 12:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
This is a file containing a log of what happens when I use the tablet (10.62 KB, text/plain)
2016-06-03 02:57 UTC, thestbisnot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thestbisnot 2016-06-03 02:52:56 UTC
As soon as I start up Krita, the program will instantly say that it has stopped working everytime I use my "Adesso Cybertablet M14" without fail. I do not even need to click on anything, I just move the cursor with the tablet and it does not work. I am quite unhappy with this as I just wanted to animate but I have no other tablet. Fix this ASAP

Reproducible: Always

Steps to Reproduce:
1.plug in the "Adesso Cybertablet M14"
2.Start up Krita
3.Use the tablet (even if you move the cursor or click anything on it, it will crash)

Actual Results:  
The program says it stopped working and I am forced to shut down the program. This causes me to not be able to get any work done.

Expected Results:  
Let me use the program with the tablet so I can draw with it. Y'know, instead of crashing?!

00000001	0.00000000	[4364] shell\twinui\nowplayingsessionmanager\localprovider\baseprovider\lib\baseprovider.cpp(516)\NPSMDesktopProvider.dll!00007FFE5C88E7E8: (caller: 00007FFE5C884A09) ReturnHr[PreRelease](236) tid(444) 80070490 Element not found. 	
00000002	1.15085208	[4364] shell\twinui\nowplayingsessionmanager\localprovider\baseprovider\lib\baseprovider.cpp(516)\NPSMDesktopProvider.dll!00007FFE5C88E7E8: (caller: 00007FFE5C884A09) ReturnHr[PreRelease](237) tid(444) 80070490 Element not found. 	
00000003	1.27558255	[4364] shell\twinui\nowplayingsessionmanager\localprovider\baseprovider\lib\baseprovider.cpp(516)\NPSMDesktopProvider.dll!00007FFE5C88E7E8: (caller: 00007FFE5C884A09) ReturnHr[PreRelease](238) tid(444) 80070490 Element not found. 	
00000004	2.81242776	[4364] shell\twinui\nowplayingsessionmanager\localprovider\baseprovider\lib\baseprovider.cpp(516)\NPSMDesktopProvider.dll!00007FFE5C88E7E8: (caller: 00007FFE5C884A09) ReturnHr[PreRelease](239) tid(444) 80070490 Element not found. 	
00000005	2.94054389	[4364] shell\twinui\nowplayingsessionmanager\localprovider\baseprovider\lib\baseprovider.cpp(516)\NPSMDesktopProvider.dll!00007FFE5C88E7E8: (caller: 00007FFE5C884A09) ReturnHr[PreRelease](240) tid(444) 80070490 Element not found. 	
00000006	5.83272076	[4128] QCoreApplication::arguments: Please instantiate the QApplication object first	
00000007	5.83513165	[4128] QCoreApplication::applicationDirPath: Please instantiate the QApplication object first	
00000008	5.83516598	[4128] QCoreApplication::applicationDirPath: Please instantiate the QApplication object first	
00000009	5.83542633	[4128] QCoreApplication::applicationDirPath: Please instantiate the QApplication object first	
00000010	5.83546591	[4128] QCoreApplication::applicationDirPath: Please instantiate the QApplication object first	
00000011	5.83565664	[4128] QCoreApplication::applicationDirPath: Please instantiate the QApplication object first	
00000012	5.83569479	[4128] QCoreApplication::applicationDirPath: Please instantiate the QApplication object first	
00000013	5.83612490	[4128] krita.lib.pigment: Compiled for arch: ::Vc::SSE41Impl	
00000014	5.83617353	[4128] krita.lib.pigment: Features supported:	
00000015	5.83621788	[4128] krita.lib.pigment:   "SSE2"  ---  yes	
00000016	5.83625746	[4128] krita.lib.pigment:   "SSSE3"  ---  yes	
00000017	5.83630562	[4128] krita.lib.pigment:   "SSE4.1"  ---  yes	
00000018	5.83633709	[4128] krita.lib.pigment:   "AVX "  ---  no	
00000019	5.91322184	[4128] Set style "fusion"	
00000020	5.93985271	[4128] OpenGL Info	
00000021	5.93990707	[4128]   Vendor:  Intel	
00000022	5.93994761	[4128]   Renderer:  Intel(R) HD Graphics	
00000023	5.94002914	[4128]   Version:  3.0.0 - Build 9.17.10.4229	
00000024	5.94007015	[4128]   Shading language:  1.30 - Intel Build 9.17.10.4229	
00000025	5.94014406	[4128]   Requested format:  QSurfaceFormat(version 3.0, options QFlags(0x4), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 0, profile  2)	
00000026	5.94019842	[4128]   Current format:    QSurfaceFormat(version 3.0, options QFlags(0x4), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior 2, swapInterval 1, profile  0)	
00000027	5.94578552	[4128] krita has opengl true	
00000028	5.94590569	[4128] Setting XDG_DATA_DIRS "C:/Program Files/Krita (x64)/bin/../share"	
00000029	5.95375443	[4128] availableCatalogLanguages() localDirPaths ("C:/Program Files/Krita (x64)/bin/data/locale") languages QSet("ar", "sl", "de", "en_GB", "ja", "zh_TW", "sv", "el", "nl", "ne", "bs", "ia", "gl", "ga", "et", "mk", "hu", "nb", "fy", "zh_CN", "oc", "km", "tr", "da", "ast", "br", "uz", "ro", "th", "sk", "pt_BR", "fa", "be", "pt", "mr", "tg", "kk", "ca@valencia", "he", "hi", "af", "eo", "is", "wa", "eu", "hr", "lv", "ko", "nn", "ta", "cy", "sq", "pl", "it", "se", "es", "cs", "fr", "ru", "vi", "mai", "uk", "lt", "ug", "nds", "ms", "hne", "uz@cyrillic", "bg", "pa", "ca", "fi", "xh")	
00000030	5.95385122	[4128] Available translations QSet("ar", "sl", "de", "en_GB", "ja", "zh_TW", "sv", "el", "en_US", "nl", "ne", "bs", "ia", "gl", "ga", "et", "mk", "hu", "nb", "fy", "zh_CN", "oc", "km", "tr", "da", "ast", "br", "uz", "ro", "th", "sk", "pt_BR", "fa", "be", "pt", "mr", "tg", "kk", "ca@valencia", "he", "hi", "af", "eo", "is", "wa", "eu", "hr", "lv", "ko", "nn", "ta", "cy", "sq", "pl", "it", "se", "es", "cs", "fr", "ru", "vi", "mai", "uk", "lt", "ug", "nds", "ms", "hne", "uz@cyrillic", "bg", "pa", "ca", "fi", "xh")	
00000031	5.95895624	[4128] availableCatalogLanguages() localDirPaths ("C:/Program Files/Krita (x64)/bin/data/locale") languages QSet("ar", "sl", "de", "en_GB", "ja", "zh_TW", "sv", "el", "nl", "ne", "bs", "ia", "gl", "ga", "et", "mk", "hu", "nb", "fy", "zh_CN", "oc", "km", "tr", "da", "ast", "br", "uz", "ro", "th", "sk", "pt_BR", "fa", "be", "pt", "mr", "tg", "kk", "ca@valencia", "he", "hi", "af", "eo", "is", "wa", "eu", "hr", "lv", "ko", "nn", "ta", "cy", "sq", "pl", "it", "se", "es", "cs", "fr", "ru", "vi", "mai", "uk", "lt", "ug", "nds", "ms", "hne", "uz@cyrillic", "bg", "pa", "ca", "fi", "xh")	
00000032	5.95904779	[4128] Available domain translations QSet("ar", "sl", "de", "en_GB", "ja", "zh_TW", "sv", "el", "en_US", "nl", "ne", "bs", "ia", "gl", "ga", "et", "mk", "hu", "nb", "fy", "zh_CN", "oc", "km", "tr", "da", "ast", "br", "uz", "ro", "th", "sk", "pt_BR", "fa", "be", "pt", "mr", "tg", "kk", "ca@valencia", "he", "hi", "af", "eo", "is", "wa", "eu", "hr", "lv", "ko", "nn", "ta", "cy", "sq", "pl", "it", "se", "es", "cs", "fr", "ru", "vi", "mai", "uk", "lt", "ug", "nds", "ms", "hne", "uz@cyrillic", "bg", "pa", "ca", "fi", "xh")	
00000033	5.95931196	[4128] Override language: ""	
00000034	5.95941401	[4128] PATH "C:/Program Files/Krita (x64)/bin;C:/Program Files/Krita (x64)/lib;C:/Program Files/Krita (x64)/lib/kde4;C:/Program Files/Krita (x64)/Frameworks;C:/Program Files/Krita (x64)"	
00000035	6.02851439	[4128] krita.tabletlog: Opened tablet context  0x3ea07b0  on window  0x130742 changed packet queue size  127 -> 128	
00000036	6.65249729	[4128] KoJsonTrader will load its plugins from "C:/Program Files/Krita (x64)/lib/kritaplugins"	
00000037	7.53406143	[4364] shell\twinui\nowplayingsessionmanager\localprovider\baseprovider\lib\baseprovider.cpp(516)\NPSMDesktopProvider.dll!00007FFE5C88E7E8: (caller: 00007FFE5C884A09) ReturnHr[PreRelease](241) tid(444) 80070490 Element not found. 	
00000038	11.66950512	[4128]  falling back on QIcon::FromTheme: "document-properties"	
00000039	11.86666393	[4128] libpng warning: iCCP: too many profiles	
00000040	11.86985016	[4128] libpng warning: iCCP: too many profiles	
00000041	11.87234116	[4128] libpng warning: iCCP: too many profiles	
00000042	11.87419510	[4128] libpng warning: iCCP: too many profiles	
00000043	13.60332775	[4128] setGeometry: Unable to set geometry 462x560+452+84 on QWidgetWindow/'WdgSplashWindow'. Resulting geometry:  478x593+452+84 (frame: 0, 0, 0, 0, custom margin: 0, 0, 0, 0, minimum size: 462x554, maximum size: 16777215x16777215).	
00000044	13.60657215	[4128] setGeometry: Unable to set geometry 462x581+452+84 on QWidgetWindow/'WdgSplashWindow'. Resulting geometry:  478x620+452+84 (frame: 0, 0, 0, 0, custom margin: 0, 0, 0, 0, minimum size: 462x581, maximum size: 16777215x16777215).	
00000045	13.82192326	[892] windows\dwm\udwm\toplevelwindow3d.cpp(335)\udwm.dll!00007FFE668A2D8C: (caller: 00007FFE66857669) LogHr(6) tid(3b4) 80070057 The parameter is incorrect. 	
00000046	20.75996590	[4364] shell\twinui\nowplayingsessionmanager\localprovider\baseprovider\lib\baseprovider.cpp(516)\NPSMDesktopProvider.dll!00007FFE5C88E7E8: (caller: 00007FFE5C884A09) ReturnHr[PreRelease](242) tid(444) 80070490 Element not found. 	
00000047	22.98577118	[4364] shell\twinui\nowplayingsessionmanager\localprovider\baseprovider\lib\baseprovider.cpp(516)\NPSMDesktopProvider.dll!00007FFE5C88E7E8: (caller: 00007FFE5C884A09) ReturnHr[PreRelease](243) tid(444) 80070490 Element not found. 	
00000048	25.12584877	[4128] krita.tabletlog: vvvvvvvvvvvvvvvvvvvvvvv START TABLET EVENT LOG vvvvvvvvvvvvvvvvvvvvvvv	
00000049	25.13285255	[4364] shell\twinui\nowplayingsessionmanager\localprovider\baseprovider\lib\baseprovider.cpp(516)\NPSMDesktopProvider.dll!00007FFE5C88E7E8: (caller: 00007FFE5C884A09) ReturnHr[PreRelease](244) tid(444) 80070490 Element not found. 	
00000050	28.88214302	[4128] krita.tabletlog: "[       ] TabletLeaveProximity"	
00000051	28.88245201	[4128] krita.tabletlog: # Getting current context data:	
00000052	28.88275909	[4128] krita.tabletlog: lc.lcName = 0xa2be50	
00000053	28.88291931	[4128] krita.tabletlog: lc.lcDevice = 0	
00000054	28.88301849	[4128] krita.tabletlog: lc.lcInOrgX = 0	
00000055	28.88317299	[4128] krita.tabletlog: lc.lcInOrgY = 0	
00000056	28.88319016	[4128] krita.tabletlog: lc.lcInExtX = 65535	
00000057	28.88324165	[4128] krita.tabletlog: lc.lcInExtY = 65535	
00000058	28.88327789	[4128] krita.tabletlog: lc.lcOutOrgX = 0	
00000059	28.88331413	[4128] krita.tabletlog: lc.lcOutOrgY = 0	
00000060	28.88334846	[4128] krita.tabletlog: lc.lcOutExtX = 65535	
00000061	28.88338470	[4128] krita.tabletlog: lc.lcOutExtY = -65535	
00000062	28.88341904	[4128] krita.tabletlog: lc.lcSysOrgX = 0	
00000063	28.88345337	[4128] krita.tabletlog: lc.lcSysOrgY = 0	
00000064	28.88348770	[4128] krita.tabletlog: lc.lcSysExtX = 1366	
00000065	28.88352203	[4128] krita.tabletlog: lc.lcSysExtY = 768	
00000066	28.88356018	[4128] krita.tabletlog: Qt Desktop Geometry QRect(0,0 1366x768)	
00000067	28.88360977	[4128] qtDesktopRect = QRect(0,0 1366x768)	
00000068	28.88364601	[4128] wintabDesktopRect = QRect(0,0 1366x768)	
00000069	29.56729889	[4364] shell\twinui\nowplayingsessionmanager\localprovider\baseprovider\lib\baseprovider.cpp(516)\NPSMDesktopProvider.dll!00007FFE5C88E7E8: (caller: 00007FFE5C884A09) ReturnHr[PreRelease](245) tid(444) 80070490 Element not found. 	
00000070	34.07190323	[4364] shell\twinui\nowplayingsessionmanager\localprovider\baseprovider\lib\baseprovider.cpp(516)\NPSMDesktopProvider.dll!00007FFE5C88E7E8: (caller: 00007FFE5C884A09) ReturnHr[PreRelease](246) tid(444) 80070490 Element not found. 	
00000071	34.16235733	[4364] shell\twinui\nowplayingsessionmanager\localprovider\baseprovider\lib\baseprovider.cpp(516)\NPSMDesktopProvider.dll!00007FFE5C88E7E8: (caller: 00007FFE5C884A09) ReturnHr[PreRelease](247) tid(444) 80070490 Element not found. 	
00000072	39.17883301	[3896] shell\comdlg32\fileopensave.cpp(9456)\COMDLG32.dll!75F00750: (caller: 75EF3458) ReturnHr[PreRelease](1) tid(2258) 80070490 Element not found. 	
00000073	39.17883301	[3896]     CallContext:[\PickerModalLoop\InitDialog\FileDialogInitEnterpriseData]
Comment 1 thestbisnot 2016-06-03 02:57:08 UTC
Created attachment 99336 [details]
This is a file containing a log of what happens when I use the tablet
Comment 2 Halla Rempt 2016-06-03 06:37:33 UTC
Yes, this is actually  the same problem as with Peritab, Trust, Genius and other cheap tablets with really the same really bad driver. I wonder how many times that hardware has been rebranded now!

The awful thing is that we did buy a Trust tablet in order to reproduce, but that one just works fine., so we still cannot figure out what is broken. 

There must be someone in the world who has one of these tablets, can reproduce the crash, and knows how to use a debugger so we at least can get a backtrace...

*** This bug has been marked as a duplicate of bug 362948 ***
Comment 3 Dmitry Kazakov 2016-06-03 12:47:07 UTC
Git commit 942cb4b614246ad08485eaa2264154de2d07ce17 by Dmitry Kazakov.
Committed on 03/06/2016 at 12:46.
Pushed by dkazakov into branch 'master'.

Add a workaround for weird tablets

Instead of the returning the size of the needed buffer these
"nice" tablet drivers start writing its name straight into
the buffer pointed by a null pointer.

See a comment in the code for more details
Related: bug 359298, bug 362868, bug 363684, bug 351059, bug 354979, bug 362948

M  +35   -2    libs/ui/input/wintab/kis_tablet_support_win.cpp

http://commits.kde.org/krita/942cb4b614246ad08485eaa2264154de2d07ce17
Comment 4 Dmitry Kazakov 2016-06-03 12:48:16 UTC
Git commit 22c3c0d5d49ef164e4def4d545faee7f37797a5f by Dmitry Kazakov.
Committed on 03/06/2016 at 12:48.
Pushed by dkazakov into branch 'krita/3.0'.

Add a workaround for weird tablets

Instead of the returning the size of the needed buffer these
"nice" tablet drivers start writing its name straight into
the buffer pointed by a null pointer.

See a comment in the code for more details
Related: bug 359298, bug 362868, bug 363684, bug 351059, bug 354979, bug 362948

M  +35   -2    libs/ui/input/wintab/kis_tablet_support_win.cpp

http://commits.kde.org/krita/22c3c0d5d49ef164e4def4d545faee7f37797a5f