Bug 465874

Summary: Invalid tablet's input handling
Product: [Applications] krita Reporter: stereopolex
Component: Tablets (tablet issues are only very rarely bugs in Krita!)Assignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: code, halla, stereopolex, yavn.work
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Archive containing screenshot and tablet tester logs

Description stereopolex 2023-02-16 21:54:11 UTC
Created attachment 156329 [details]
Archive containing screenshot and tablet tester logs

SUMMARY

Krita connects strokes on canvas. The bug doesn't occur on official release 5.1.5


STEPS TO REPRODUCE
1.  Open Krita's tablet tester / Krita document
2.  Draw first line using Freehand Brush Tool
3.  Draw second line using Freehand Brush Tool

OBSERVED RESULT

Krita ignores "Stylus release event" between step 2 and 3 but somehow handles the event after step 3. Lines are connected

EXPECTED RESULT

Lines should be separate

SOFTWARE/OS VERSIONS
Krita

 Version: 5.2.0-prealpha (git fd0396e)
 Installation type: installer / portable package
 Hidpi: true

Qt

  Version (compiled): 5.15.7
  Version (loaded): 5.15.7

OS Information

  Build ABI: x86_64-little_endian-llp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: winnt
  Kernel Version: 10.0.19045
  Pretty Productname: Windows 10 Version 2009
  Product Type: windows
  Product Version: 10

ADDITIONAL INFORMATION

Tablet: Huion, NEW 1060PLUS(8192) 
Driver Version Number: v14.8.166.1482
Pen supports: pressure; doesn't support: tilt, rotation
Comment 1 Stephen Wilson 2023-03-14 00:32:13 UTC
Can also confirm this is an issue for me as well

Krita

 Version: 5.2.0-prealpha (git fc87a54)
 Installation type: installer / portable package
 Hidpi: true

Qt

  Version (compiled): 5.15.7
  Version (loaded): 5.15.7

OS Information

  Build ABI: x86_64-little_endian-llp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: winnt
  Kernel Version: 10.0.22621
  Pretty Productname: Windows 10 Version 2009
  Product Type: windows
  Product Version: 10
Comment 2 YRH 2023-06-24 17:50:06 UTC
Confirmed on Windows with local build 69fc837fdc7ce23271844c08c8a80de0c553ad91. Used Huion Giano tablet.

NOTE: This only happens in Windows Ink mode. WinTab mode is working correctly. Does not happen in Krita 5.1.5 release (WinTab and Windows Ink work correctly). Looks like mouse release event is not registered when pen tip is taken away. The release only registers after the next mouse press event.