Tablet Pressure not working in New Window #93323

Open
opened 2021-11-23 10:04:48 +01:00 by Adam Cantrell · 19 comments

System Information
Operating system: Windows 10 20H1
Graphics card: Nvidia 2070 8G
Drawing Tablet: Huion Kamvas 16 Pro 2019
system-info.txt

Blender Version
Broken: 2.92.0 and 2.93.6

Short description of error
Pen pressure not working on newly created window. Very repeatable.

The steps outlined bellow as well as the attached video evidence prove that the Tablet Pen is working In blender just not on the newly created window.

Exact steps for others to reproduce the error

  • Open Blender
  • Open Project
  • Create new Window from Main View
  • Move New window to Kamvas 16 Tablet
  • Use tablet pen to paint the mask.
  • Pressure does not work.
  • Verify by toggling Pen pressure button in radius and strength fields.
  • Use tablet pen again to verify
  • Pressure still not working.
  • Close The window on the Kamvas Tablet.
  • Move Main Window to Kamvas Tablet.
  • Use tablet pen to paint the mask.

Pressure is working.

Expected behavior would be that the pressure works in the newly created window.

**System Information** Operating system: Windows 10 20H1 Graphics card: Nvidia 2070 8G Drawing Tablet: Huion Kamvas 16 Pro 2019 [system-info.txt](https://archive.blender.org/developer/F11917178/system-info.txt) **Blender Version** Broken: 2.92.0 and 2.93.6 **Short description of error** Pen pressure not working on newly created window. Very repeatable. The steps outlined bellow as well as the attached video evidence prove that the Tablet Pen is working In blender just not on the newly created window. <video src="https://archive.blender.org/developer/F11882738/2021-11-23_03-52-41.mkv" title="2021-11-23 03-52-41.mkv" controls></video> **Exact steps for others to reproduce the error** - Open Blender - Open Project - Create new Window from Main View - Move New window to Kamvas 16 Tablet - Use tablet pen to paint the mask. - **Pressure does not work.** - Verify by toggling Pen pressure button in radius and strength fields. - Use tablet pen again to verify - **Pressure still not working.** - Close The window on the Kamvas Tablet. - Move Main Window to Kamvas Tablet. - Use tablet pen to paint the mask. # Pressure is working. Expected behavior would be that the pressure works in the newly created window.
Author

Added subscriber: @adamc1228

Added subscriber: @adamc1228
Author

With a fresh restart of my computer and fresh eyes, I can confirm that the default scene exhibits this behavior and that it does not appear project specific.

Results of additional Testing:

  • Fresh PC Boot
  • Fresh Launch of Blender
  • Shift Drag to create new window from main view-port.
  • Move the new window to the Kamvas Tablet.
  • Do not Load Existing Project and Use default scene
  • Switch Main view port to Texture Paint
  • Press N to open right pane
  • Click Tool
  • Click + to add texture slot of type "Basic Color"
  • Proceed with Defaults
  • Enable Pressure for Radius and Strength
  • Select a color in the color picker
  • Use Tablet Pen to Draw mask.
  • Pressure not working.

If you repeat the process and omit step 3 and drag the main window to the Kamvas tablet instead, then the pressure works. This testing was done with the default scene and cube. During this additional testing I think I can make out what is the inner ring that indicates the pressure but it appears to instantly snap to maximum radius of the brush. The best I can relate this behavior to is that it is treating the tablet input on the new window as a mouse click which would use the the max radius we defined.

With a fresh restart of my computer and fresh eyes, I can confirm that the default scene exhibits this behavior and that it does not appear project specific. Results of additional Testing: - Fresh PC Boot - Fresh Launch of Blender - Shift Drag to create new window from main view-port. - Move the new window to the Kamvas Tablet. - Do not Load Existing Project and Use default scene - Switch Main view port to Texture Paint - Press N to open right pane - Click Tool - Click + to add texture slot of type "Basic Color" - Proceed with Defaults - Enable Pressure for Radius and Strength - Select a color in the color picker - Use Tablet Pen to Draw mask. - Pressure not working. If you repeat the process and omit step 3 and drag the main window to the Kamvas tablet instead, then the pressure works. This testing was done with the default scene and cube. During this additional testing I think I can make out what is the inner ring that indicates the pressure but it appears to instantly snap to maximum radius of the brush. The best I can relate this behavior to is that it is treating the tablet input on the new window as a mouse click which would use the the max radius we defined.

Added subscriber: @PrototypeNM1

Added subscriber: @PrototypeNM1

Could you check if the issue is present in Blender 3.0?

Could you check if the issue is present in Blender 3.0?
Author

I can confirm that Blender 3.0.0 beta available for download (Beta November 24, 02:41:54 - v30 - 3844e9dbe7 - zip) exhibits the same issue. Interestingly, the inner ring to indicate pressure, is constantly cycling (visually) from tiny to large as I paint but continues to operate as if 100% pressure is applied all the time as in blender 2.92 and 2.93.6 in the new window.

I can confirm that Blender 3.0.0 beta available for download **(Beta November 24, 02:41:54 - v30 - 3844e9dbe771 - zip)** exhibits the same issue. Interestingly, the inner ring to indicate pressure, is constantly cycling (visually) from tiny to large as I paint but continues to operate as if 100% pressure is applied all the time as in blender 2.92 and 2.93.6 in the new window.
Nicholas Rishel self-assigned this 2021-12-04 04:39:33 +01:00

There's a common driver bug where the tablet sends input to the wrong window. When I get a down moment I'll add some logging to check if that's the case.

There's a common driver bug where the tablet sends input to the wrong window. When I get a down moment I'll add some logging to check if that's the case.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Works fine for me here (but I am on Linux, single monitor with a Wacom Intuos 4, so I cant really "move the window to the tablet").

In #93323#1264475, @PrototypeNM1 wrote:
There's a common driver bug where the tablet sends input to the wrong window. When I get a down moment I'll add some logging to check if that's the case.

@PrototypeNM1 : did you get to adding the logging? How can we proceed here?

Works fine for me here (but I am on Linux, single monitor with a Wacom Intuos 4, so I cant really "move the window to the tablet"). > In #93323#1264475, @PrototypeNM1 wrote: > There's a common driver bug where the tablet sends input to the wrong window. When I get a down moment I'll add some logging to check if that's the case. @PrototypeNM1 : did you get to adding the logging? How can we proceed here?

Added subscriber: @Voguart

Added subscriber: @Voguart

Hello friends,
I have a relatively similar problem with my Huion tablet.
Blender version 3.0
Huion kamvas pro 20 tablet with latest huion driver update.
System Windows 10, 64 Pro,
Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz 4.00GHz

The support of the latter and random in sculpt mode, once the stylus is lifted from the screen the test pattern of the stylus disappears, I have to press the screen more times with the stylus so that the pattern remains on the screen . This problem only occurs from Blender version 3.0.

Hello friends, I have a relatively similar problem with my Huion tablet. Blender version 3.0 Huion kamvas pro 20 tablet with latest huion driver update. System Windows 10, 64 Pro, Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz 4.00GHz The support of the latter and random in sculpt mode, once the stylus is lifted from the screen the test pattern of the stylus disappears, I have to press the screen more times with the stylus so that the pattern remains on the screen . This problem only occurs from Blender version 3.0.

This comment was removed by @Voguart

*This comment was removed by @Voguart*

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'

@adamc1228 could you repeat the bug by running blender.exe --debug-wintab with this build, copy the system console to this link, and link the paste in a reply to this report?

@adamc1228 could you repeat the bug by running `blender.exe --debug-wintab` with [this build](https:*builder.blender.org/download/experimental/blender-3.3.0-alpha+wintab.6abc638a8b90-windows.amd64-release.zip), copy the system console [to this link](https:*developer.blender.org/paste/edit/form/default/), and link the paste in a reply to this report?
Author

Thanks, I will download that and hopefully give it a try before the end of the weekend.

Thanks, I will download that and hopefully give it a try before the end of the weekend.

@adamc1228 Quick reminder for followup. :)

@adamc1228 Quick reminder for followup. :)
Author

Hi Nicholas,

Sorry for the delay. I have attached the link with the Console data as requested. Additionally, I recorded a short video of the test if that assists you. I would like to point out that my system specs have changed slightly since this was opened in December.

Changes;
Fresh Install Windows 11
GPU is now 3080.

2022-05-23 21-15-10.mkv

Console Paste

Hi Nicholas, Sorry for the delay. I have attached the link with the Console data as requested. Additionally, I recorded a short video of the test if that assists you. I would like to point out that my system specs have changed slightly since this was opened in December. Changes; Fresh Install Windows 11 GPU is now 3080. [2022-05-23 21-15-10.mkv](https://archive.blender.org/developer/F13101827/2022-05-23_21-15-10.mkv) [Console Paste](https://developer.blender.org/P2971)

Looking at the logs, it appears that the Wintab context recognizes that the window has changed, then keeps delivering events to the first window (paired with the Wintab context for the latter window). This is unambiguously a driver bug, but one we might be able to work around.

Given we've seen this same broken behavior for other drivers, I think I'll at least test an approach that would fix it. Just a heads up that If the "fix" breaks other devices we might have to write this off as a driver issue that we can't fix and we'll have to redirect to reporting the bug to the manufacturer.

Looking at the logs, it appears that the Wintab context recognizes that the window has changed, then keeps delivering events to the first window (paired with the Wintab context for the latter window). This is unambiguously a driver bug, but one we might be able to work around. Given we've seen this same broken behavior for other drivers, I think I'll at least test an approach that would fix it. Just a heads up that If the "fix" breaks other devices we might have to write this off as a driver issue that we can't fix and we'll have to redirect to reporting the bug to the manufacturer.

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Philipp Oeser removed the
Interest
Platforms, Builds & Tests
label 2023-02-10 08:58:23 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#93323
No description provided.