maoschanz / maoschanz/drawing

Fails to save changes to image

Open
#679 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
869
Forks
106
PR merge metrics
No merged PRs in 30d

Description

## Description

When editing an image and attempting to save changes back to the image, an error is raised:

```
Failed to reload /run/user//doc//
```

Image

The original file is cleared and written back with zero bytes. However, another file with the saved edits is created next to it, named `.xdp- (deleted)-

Here are screenshots of Flatseal, showing no changes to recognized paths has been made:

Image

Image

### Steps to reproduce the bug

1. Open an image from the file explorer, or using the app's built-in Open dialog (tested with PNGs in both `~/Pictures/Screenshots` and `~/Downloads`).
2. Draw a rectangle on the image.
3. Click Save in the top-right corner.
4. Error in first screenshot appears, and the files are modified as seen in the second image.

## System

- Device (desktop computer/tablet/phone/...): HP Spectre x360 Convertible 13-aw0xxx
- OS: Fedora Linux 42 (Workstation Edition) (kernel Linux 6.17.7-200.fc42.x86_64)
- Desktop environment: GNOME 48.6 + Mutter (Wayland)
- Package format: Flatpak (Flathub)
- App version: 1.0.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by opening a PNG from the file explorer or the app's built-in Open dialog, drawing a rectangle, and using Save in the top-right corner on the reported Flatpak environment. Trace the save path from that entry point and verify that saving preserves the original image with the edits instead of raising the reload error or creating zero-byte and deleted-file artifacts.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.