Bug 411573 - Opening and closing a file layer makes canvas area unresponsive in original document
Summary: Opening and closing a file layer makes canvas area unresponsive in original d...
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: 4.4.5
Platform: macOS (DMG) macOS
: NOR minor
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-03 23:23 UTC by magolorsoulddd
Modified: 2021-07-12 06:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description magolorsoulddd 2019-09-03 23:23:00 UTC
STEPS TO REPRODUCE
1. Create a new blank document in Krita.
2. Open an image file as a file layer.
3. Click the folder icon of the file layer in the layer docker to open the file layer in a new tab/subwindow.
4. Close the file layer tab/subwindow.

OBSERVED RESULT
All tools have no effect in the original document. Freehand brush tool outline fails to follow mouse movements. Rotating, zooming, panning with the trackpad does not affect the canvas.

EXPECTED RESULT
Canvas responds to tools and trackpad.

SOFTWARE/OS VERSIONS
macOS: 10.14.6

ADDITIONAL INFORMATION
Canvas-only view mode does not fix the problem. Switching to a different application fixes the problem. Opening any dialog box (e.g. unsaved changes in file layer doc, preferences, new doc) in Krita that moves focus away from the document fixes the problem.
Comment 1 Halla Rempt 2019-09-04 08:51:24 UTC
Hi,

I'm sorry, I haven't been able to reproduce this issue on Linux. Maybe it's macOS specific...
Comment 2 vanyossi 2019-09-04 14:58:00 UTC
Tried it on macOS 10.14.6 with krita 4.2.5 and krita master to no avail using the new layer menu (the plus sign in the docker). After the steps described I could paint as normal. However dragging and dropping the layer leads to the lock up.

WORKAROUND: select another window (your browser, finder, etc) and go back to Krita. Painting should be restored
Comment 3 Tiar 2021-03-28 00:33:59 UTC
So this is again the focus losing issue. Hasn't it been resolved by now? I cannot reproduce on my Linux (Qt 5.12, hash 9195bbf), in any case.

> After the steps described I could paint as normal. However dragging and dropping the layer leads to the lock up.

Maybe that's the reason for not reproducing. But I did try dragging and dropping an image into Krita and choosing "As File Layer", then I go to the new document, I close it, and I'm back in the old one, and the top layer (which is selected) is the file layer (on which I of course can't paint) so I need to switch to another layer first, but then everything works correctly.
Comment 4 magolorsoulddd 2021-07-09 00:54:38 UTC
It's still happening with Krita 4.4.5. I'm on macOS 10.15.7. It mostly likely only affects macOS. Since vanyossi found out that this only happens for dragging-and-dropping, I've revised the steps to reproduce:

STEPS TO REPRODUCE
1. Arrange Krita's (non-fullscreen) window so that the right side of the window is accessible and an image is visible on the computer desktop.
2. Go to File > New. Click Create.
3. Click and drag an image from the desktop onto the canvas in Krita. Release the mouse button and choose Insert as New File Layer.
4. Click the folder icon of the file layer in the layer docker to open the file layer in a new tab/subwindow.
5. Click the X button of the file layer tab/subwindow.

OBSERVED RESULT
In the original document, the canvas isn't focused; the mouse disappears when it is on the canvas. Tools have no effect.

EXPECTED RESULT
The canvas has focus and responds to tools.

SOFTWARE/OS VERSIONS
macOS: 10.15.7

ADDITIONAL INFORMATION
To resolve the issue, click on the computer desktop or switch to a different app window, then switch back to Krita.
Comment 5 vanyossi 2021-07-12 01:07:43 UTC
I cannot reproduce this bug at all now. As stated by tiar, after closing the document the focus is on the last active layer, which probably is the file layer, and no tool can act on it.

Before clicking the folder make a new layer and make it the active layer, then click the folder icon, close the opened image subwindow/tab and painting is possible with no window change.

However the brush outline does dissapear which can be a bit misleading to think the tools are not usable.
Comment 6 magolorsoulddd 2021-07-12 06:20:33 UTC
Painting doesn't work even when I add and switch to paint layers. When I switch to a shape tool or selection tool, the mouse cursor appears on the canvas and changes accordingly, but clicking and dragging don't do anything.
If I click on the folder icon again after step 5, the brush outline still appears and functions in the new tab.