Bug 355179

Summary: MS Surface Pro 3 n-trig pen does only work after installing Photoshop CC
Product: [Applications] krita Reporter: Tobias <tobias.jakobs>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: major CC: geoffrey.megardon, halla
Priority: NOR    
Version First Reported In: 2.9.7   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Krita 3.0.0.1 Error Message

Description Tobias 2015-11-11 09:50:12 UTC
I have a MS Surface Pro 3 with the n-trig pen, Windows 10 and Krita 2.9.7.  The pen started to work after installing the demo version from Photoshop CC.



Reproducible: Didn't try

Steps to Reproduce:
I've first installed Krita, the pen didn't work.
Then I installed the WinTab driver, the pen still didn't work.
Then I installed the demo version from Photoshop CC. Now the pen works fine in Krita too.

Actual Results:  
I need to install Photoshop to get Krita working.

Expected Results:  
Krita woks out of the box.
Comment 1 Halla Rempt 2015-11-11 19:29:50 UTC
Yeah, but is this a Krita bug? If Adobe pushes a system library (I'm not sure which one, I tried to make a before/after snapshot for installing Photoshop CC, but Microsoft's tool crashed on it) that fixes a bug in Microsoft/N-Trig's wintab driver, isn't that a bug in their driver? I'd love to know what Adobe does here, but I doubt we'll be able to replicate it!
Comment 2 Tobias 2015-11-12 09:00:29 UTC
> Yeah, but is this a Krita bug?
I don't know. 
But is it a problem for Krita users? Definitely yes. 
Is the solution to first install the wintab driver and then install Photoshop something we can expect a normal user to do? Definitely not.

The Problem here is, that other programs work and Krita not. Photoshop does a bad trick, yes. 
But the preinstalled Apps works out of the box. Perhaps the best solution is to switch to the new DirectInk API on Windows:
http://wmpoweruser.com/pen-and-inking-support-confirmed-for-windows-10-on-phones/
https://channel9.msdn.com/Events/Build/2015/2-681
https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/SimpleInk
Comment 3 Halla Rempt 2015-11-12 10:35:39 UTC
Yeah, and it's impossible to report bugs to Microsoft, which is where this 
issue belongs.  Implementing eInk support is a month or two of work, which
is time we don't have, of course. Anyway, the next version of Krita is
currently using Qt's tablet support again, and you could try whether that
works on your SP3: https://dl.dropboxusercontent.com/u/16058153/Krita/krita_3.0.0.1.msi

You need to reset to factory, of course, and I cannot test that since 
apparently that broke on my SP3. And just uninstalling photoshop doesn't remove
the system component it added that fixed wintab support. I've had one report
that the actual issue was simply a missing msvc dll in the n-trig driver download,
but I haven't been able to confirm that.
Comment 4 Tobias 2015-11-12 14:12:56 UTC
Created attachment 95464 [details]
Krita 3.0.0.1 Error Message

The translation of the error message is:
The program can't be started because VCRUNTIME140.dll is missing on the computer. Please reinstall the program.
Comment 5 Tobias 2015-11-12 14:15:48 UTC
I've just installed Krita 3.0.0.1 on a friends SP3. On this system Krita or PS wasn't installed before. Here I get this error if I try to start Krita.
Comment 6 Halla Rempt 2015-11-12 15:11:19 UTC
Well, sure, it's a really experimental package, that's one of the msvc runtime
dll's. I'm sure there's a download somewhere, like:

http://www.dll-files.com/dllindex/dll-files.shtml?vcruntime140
Comment 7 Halla Rempt 2016-03-25 11:42:09 UTC
Microsoft should fix their wintab driver installer, we cannot do that for them. We also do not have the manpower to also implement support for the Ink api. And we do put the msvc 2015 runtime installer in the zip file and mention it in every release.
Comment 8 Halla Rempt 2016-05-30 06:56:58 UTC
*** Bug 363657 has been marked as a duplicate of this bug. ***