Bug 418942

Summary: The selection area from the Rectangular Selection Tool will not move after a selection is made and the Image re-sized.
Product: [Applications] krita Reporter: Wes Lange <wes.techie>
Component: Tools/SelectionAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ghevan, griffinvalley, halla
Priority: NOR    
Version First Reported In: 4.2.9   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Wes Lange 2020-03-16 20:43:26 UTC
SUMMARY
The selection area from the Rectangular Selection Tool will not move after a selection is made and the Image re-sized.

STEPS TO REPRODUCE
1. Re-sized the Image to a smaller size.
2. Did an Undo on the operation.
3. The Image returned to its original size.  The texture data had to re-align itself properly.
4. The selection area only will nudge by one pixel at a time.  It must be repeatedly selected and moved to even make a small change.

OBSERVED RESULT
The selection area from the Rectangular Selection tool will only move by one pixel at a time per move attempt.


EXPECTED RESULT
The selection area from the Rectangular Selection Tool should have moved more freely.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
Not using.
KDE Plasma Version: 
Not using.
KDE Frameworks Version:
Not using.
Qt Version:
5.9.5

ADDITIONAL INFORMATION
I'm using the Snap package for Krita from March 16, 2020.
Comment 1 Wes Lange 2020-03-16 20:44:53 UTC
Linux Mint 19.3
Comment 2 Wes Lange 2020-03-16 20:45:52 UTC
And Cinnamon.  Not Cumin.  (Bad joke.)
Comment 3 Halla Rempt 2020-03-17 08:43:18 UTC
Hi Wes,

I'm sorry, but I'm not able to reproduce this issue -- maybe I just misunderstand your description. I do see that when I scale down an image with a selection that the selection becomes misaligned, is that what you mean?

Are you trying to move the selection rectangle, or the selected pixels? It might be easiest to provide a screen recording showing the problem.
Comment 4 Bug Janitor Service 2020-04-01 04:33:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Wes Lange 2020-04-01 15:25:37 UTC
The issue still continues after the Beta.  The steps I use to reproduce:

1) Open an image.  I have used both JPG / JPEG and PNG.  It doesn't seem to matter in this case as the texture data acts the same in either regard.
2) I used the Rectangular Selection Tool to select an area over the image.
3) I went to the Image Menu -> Scale Image to New Size from the Menu.
4) I reduced the image to 50% in both width and height.  The image properly reduces in size and so does the Rectangular Selection.
5) I go to the Edit Menu -> Undo Scale Image from the Menu.  Both the image and the Rectangular Selection return to normal size after the matter.
6) Moving the Rectangular Selection only moves it by 1 pixel at a time afterwards.  This is reliably reproduced each separate attempt to create the issue.

Thank you.
Comment 6 Wes Lange 2020-04-01 15:27:08 UTC
Tested again.  The issue still occurs.
Comment 7 Wes Lange 2020-04-01 15:28:59 UTC
This initially happened after a clean install of Linux Mint 19.3.  This issue has existed for at least a year now.
Comment 8 Wes Lange 2020-04-01 15:30:34 UTC
Software Rendering or changing video firmware does not affect the issue.
Comment 9 Wes Lange 2020-04-01 16:15:06 UTC
I recently swapped hardware on my Desktop computer hardware.  Only the CPU and graphics card stayed the same.  I'm not sure if the issue is with either the first device or the second.

I tried reproducing the issue again on an older MacBook laptop computer, and the issue does not exist there.  It once again seems localized to my hardware.  At least, I have a better idea of which hardware.

Thank you.
Comment 10 Wes Lange 2020-04-01 16:18:38 UTC
Also, the Macbook has almost the same exact software load as the Desktop machine.
Comment 11 Halla Rempt 2020-04-02 09:31:02 UTC
Hm... And on the system that shows the bug, if you rename the kritarc config file to kritarc.bak, does the issue still happen?
Comment 12 Wes Lange 2020-04-02 14:04:41 UTC
Yes.  The issue happens again after I rename kritarc to kritarc.bak instead.
Comment 13 Wes Lange 2020-04-02 14:06:16 UTC
I renamed the file while not in the software of course.  This was also done after a system reboot.
Comment 14 Wes Lange 2020-04-02 14:18:16 UTC
If I move the mouse cursor far enough to move the image around while inside the software, then the Rectangular Selection will move with the mouse cursor.  I do not see the Rectangular Selection move as this happens.  It just jumps from one area of the screen to the next as it follows the mouse cursor to its resting position.  I see the software take about a second to update the positions for both the image and the Rectangular Selection.  This is the only time I see the existing Rectangular Selection produced from the issue move further than one pixel per my attempt at moving it.
Comment 15 Wes Lange 2020-04-02 14:19:52 UTC
On the good side, the data seems not to corrupt.
Comment 16 vanyossi 2020-04-02 22:09:18 UTC
I am unnable to reproduce this issue. Im not sure im doing the steps correctly or if this is a system specific problem. Using tablet or touchpad to drag/move the selection after following the steps above on macOS or Linux under plasma.
Comment 17 wolthera 2020-04-24 12:17:49 UTC
This sounds like the canvas is unable to update fast enough. I recommend looking at the graphics acceleration options. I too am unable to reproduce it.
Comment 18 Bug Janitor Service 2020-05-09 04:33:15 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 19 Bug Janitor Service 2020-05-24 04:33:14 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!