Bug 391098

Summary: Canvas unresponsive when guides are positioned on image bounds, the first time. (Krita 4 beta appimage)
Product: [Applications] krita Reporter: mvowada <freebox64>
Component: GeneralAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version: 4.0.0-beta.1   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: (Video)
(New Video example)

Description mvowada 2018-02-26 12:52:36 UTC
Created attachment 111008 [details]
(Video)

(Ubuntu 14.04 Unity - Krita 4 beta appimage)
(See video) Steps:

    1) CTRL+N (create a new document)
    2) INS key twice (create 2 Paint layers)
    3) paint something on the 2 created layers
    4) "View > Show Rulers" enabled
    5) "View > Snap To > Snap To Guides" enabled
    6) click+drag a guide from ruler and position it over an image edge

Actual Results: can't do nothing on canvas
Expected Results: responsive canvas
Comment 1 Halla Rempt 2018-02-27 09:44:14 UTC
Looks like you attached the video for the move tool bug? In any case, I cannot reproduce this at the moment. The beta appimage does contain a bug where the rulers make the canvas really slow, though. Note that you might have to lock the guides before you can paint instead of moving guides -- is that perhaps the problem?
Comment 2 mvowada 2018-02-27 14:30:51 UTC
Created attachment 111048 [details]
(New Video example)

(In reply to Boudewijn Rempt from comment #1)
> Note that you might
> have to lock the guides before you can paint instead of moving guides -- is
> that perhaps the problem?

Hi Boudewijn. I've checked, and the "Locked guides" option helps in case 1) but it's not needed in case 2) (for clarity I've attached a new video):

    1) anchoring the "new" guide to the canvas edge > freezes the canvas
    2) not snapping the "new" guide to the canvas edge > does not freeze the canvas.
Comment 3 Halla Rempt 2018-02-27 14:35:47 UTC
Hi!

Okay, now I can reproduce the issue.
Comment 4 Halla Rempt 2018-02-27 14:36:40 UTC
This is not a regression, I can also reproduce it with 3.3.3
Comment 5 Dmitry Kazakov 2018-04-06 10:27:41 UTC
Git commit 30136e54e7cb476ed07f078be3d8baf4861eaef0 by Dmitry Kazakov.
Committed on 06/04/2018 at 10:24.
Pushed by dkazakov into branch 'master'.

Fix canvas lockup when using Guides at the top of the image

1) We should never eat Enter/Leave events in priority event filters,
   it makes input manager crazy

2) Enter event also has a cursor position that should be handled
   gracefully.

M  +17   -6    libs/ui/canvas/kis_guides_manager.cpp

https://commits.kde.org/krita/30136e54e7cb476ed07f078be3d8baf4861eaef0
Comment 6 Dmitry Kazakov 2018-04-07 13:45:52 UTC
Git commit 3561594ed8631614459dd58b50c77d2c21a0f795 by Dmitry Kazakov.
Committed on 07/04/2018 at 13:28.
Pushed by dkazakov into branch 'krita/4.0'.

Fix canvas lockup when using Guides at the top of the image

1) We should never eat Enter/Leave events in priority event filters,
   it makes input manager crazy

2) Enter event also has a cursor position that should be handled
   gracefully.

M  +17   -6    libs/ui/canvas/kis_guides_manager.cpp

https://commits.kde.org/krita/3561594ed8631614459dd58b50c77d2c21a0f795