Bug 396929

Summary: Tools stop working after using Color Picker with "Sample Current Layer" on a hidden layer
Product: [Applications] krita Reporter: michoss9
Component: ToolsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: freebox64, halla, kwadraatnope, vitamorus.art
Priority: NOR    
Version First Reported In: 4.1.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: IRC logs
Video
Video2

Description michoss9 2018-07-28 14:29:36 UTC
Created attachment 114176 [details]
IRC logs

Scenario:
-Select "Color Picker" tool
-Select "Sample Current Layer" setting
-Switch to a layer which is hidden
-Click anywhere on canvas
 -Pop-up window saying "Cannot pick a color as the active layer is not visible."  appears
-Click "OK" or close the window with "X"
 -Canvas becomes uninteractible.
No tool is able to work on canvas any longer. For tools such as color picker, move tool, Selections the cursor appears, but is unable to do anything. When selecting a brush, colorize mask or smart patch, the cursor either does not appear or appears somewhere in the corner of the screen. It's no longer possible to zoom in or pan. All toolbars and dockers work properly.
Restarting the application fixes the problem, no other solution seems to.

Appears to be exclusive to windows, happens both when using a mouse and tablet.
Comment 1 Bollebib 2018-07-28 14:54:03 UTC
i shall confirm this as it happened for me too
Comment 2 Halla Rempt 2018-09-06 13:36:06 UTC
I cannot reproduce this issue, I'm afraid.
Comment 3 mvowada 2018-09-06 13:53:18 UTC
Created attachment 114810 [details]
Video

In my case, I'm able to reproduce this with 4.2.0-pre-alpha (git bb79c0e) Appimage on Ubuntu 14.04, Unity (see video):

    1. activate a layer and hide it
    2. hit "P"
    3. Tool Options > Color Picker: Sample from current layer
    4. try to pick a color

Actual Results: impossible to close the alert box (many instances of it will open)
Comment 4 Halla Rempt 2018-09-06 13:57:59 UTC
Curious... I really cannot reproduce this. And I only get one message box.
Comment 5 mvowada 2018-09-06 14:40:15 UTC
Created attachment 114812 [details]
Video2

(In reply to Boudewijn Rempt from comment #4)
> Curious... I really cannot reproduce this. And I only get one message box.
Hm, it opens up several alert boxes, only when using a pen tablet? (video2) No problems using the mouse.

(Wacom Intuos 4 grip pen)
Comment 6 Vitamorus 2024-12-10 21:23:59 UTC
Appears to no longer be present in 5.2.6. The message box no longer appears, instead the color picker simply doesn't pick up any color.