Bug 421708 - Some combination of copying, pasting, and saving a new file creates phantom pixels that remain in a .kra file no matter what you do
Summary: Some combination of copying, pasting, and saving a new file creates phantom p...
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: 4.2.9
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-18 03:39 UTC by alphaLimaTango
Modified: 2020-05-31 00:31 UTC (History)
2 users (show)

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


Attachments
A .kra file where I see the phantom pixels (1.13 MB, application/x-krita)
2020-05-18 03:39 UTC, alphaLimaTango
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alphaLimaTango 2020-05-18 03:39:09 UTC
Created attachment 128561 [details]
A .kra file where I see the phantom pixels

SUMMARY
I have a workflow that somewhat frequently creates images with "phantom pixels." These are parts of a drawing that were in my clipboard and which appear on the canvas, but which can't be deleted. They don't appear as part of any layer and they can't be removed from the file. I have to make a new file to get rid of them. The pixels can't be selected or made invisible, but the eyedropper tool is aware of them. The move tool can't move them, the pixels appear outside the image when cropping, and they appear in front of every other layer.

I don't know the exact steps to reproduce this, but I have a file that's in this corrupted state.

My workflow is generally:

1. Draw in a .kra file over many sessions, filling it with doodles
2. When the file is filled up, go to Save As -> new file, delete all the layers except the background layer, make a new layer, and keep drawing.

Sometimes I'll select parts of the drawing and cut or copy the pixels and paste them into the new version of the file, after saving. This is definitely when the bug happens, but I can't reliably reproduce it. I'm missing some kind of step.



SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Devuan 
$ cat /etc/os-release 
PRETTY_NAME="Devuan GNU/Linux 3 (beowulf)"
NAME="Devuan GNU/Linux"
VERSION_ID="3"
VERSION="3 (beowulf)"
VERSION_CODENAME=beowulf
ID=debian
ID_LIKE=debian
HOME_URL="https://www.devuan.org/"
SUPPORT_URL="https://devuan.org/os/community"
BUG_REPORT_URL="https://bugs.devuan.org/"

$ krita --version
krita 4.2.9

$ dpkg -l | grep plasma-framework
ii  plasma-framework                                   5.54.0-1                            amd64        Plasma Runtime components


$ dpkg -l | grep libqt5core
ii  libqt5core5a:amd64                                 5.11.3+dfsg1-1                      amd64        Qt 5 core module


This has happened on Debian as Ubuntu as well, at least as far back as Krita 4.1.5

The attachment demonstrates two separate instances of this happening in one file. I had pixel data in my clipboard that shows text that says "3/24/20 09:32 PM" (for an unrelated reason), and then last night a doodle. Whatever I try I can't get these drawings out of the image, including deleting layers, adding them, etc.
Comment 1 Lynx3d 2020-05-18 04:39:05 UTC
Well I'm afraid that's a user error, you apparently pasted those things as reference images, because that's what they are.
Select the Reference Images Tool, select and delete them if you don't want those anymore.

If you keep doing this by accident, you may disable the keyboard shortcut for "Paste as Reference Image".

I hope this solves your problem.
Comment 2 alphaLimaTango 2020-05-31 00:31:18 UTC
Thanks. I was totally unaware of that tool, despite using Krita for years now.

Is there a way it could be made clearer?