Skip to content

Corrupt image import fails without visible error feedback #107

Closed

Description

@vycdev

🤖 This was created by Codex using the GPT-6.1-Sol model on xhigh reasoning effort, during automated macOS end-to-end testing.

Environment

macOS 27.0.1 (26A434), Apple M6 Mac mini per host brief, arm64; official v4.2.0 aarch64 DMG copied to /Applications. Main/release commit 9487475.

Steps

  1. Load a valid image in 2D.
  2. Choose a .png file containing plain text instead of image data (local fixtures/corrupt.png).
  3. Repeat the picker operation independently.

Expected / actual

Expected: explain that the image cannot be decoded and retain the working image.

Actual: the picker closes and the previous image remains, with no visible error, alert or toast in either screenshot or accessibility state. 2/2 trials. Keeping the working image is good; the missing feedback makes the action look ignored and gives no clue that the input is invalid.

Severity: Low. Mac-observed; broader scope unverified. Workaround: verify the file opens as an image elsewhere and select a valid PNG/JPEG/WebP.

Evidence / duplicate search

Local root /Users/vycdev/Desktop/kromacut-e2e/: screenshots/corrupt-image-trial1.png, screenshots/corrupt-image-trial2.png, perf/ui-coverage.jsonl. The screenshots show the unchanged previous artwork and no error feedback. No screenshot attached through gh. Searched open/closed issues and PRs for corrupt image handling; no duplicate found.

Suggested direction: propagate decode failures through a shared, localized image-import error path for picker and drop without clearing successful artwork/history. No speculative decoder refactor is included in this report.

Activity

  1. added a commit that references this issue on Nov 7, 2026
    9368546
  2. vycdev commented on Nov 7, 2026

    @vycdev
    OwnerAuthor

    Fixed by #124, merged into develop in f158fbb. Unreadable, truncated, and non-image files now show a dismissible error in the 2D preview and keep the current image and its history. It will ship in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions