https://bugs.kde.org/show_bug.cgi?id=481140

            Bug ID: 481140
           Summary: Gwenview crashes when cropping image
    Classification: Applications
           Product: gwenview
           Version: Other (add details in bug description)
          Platform: Neon
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: gwenview-bugs-n...@kde.org
          Reporter: fi...@tutanota.com
  Target Milestone: ---

SUMMARY
Gwenview crashes when I try to crop a PNG image. There seems to be a
relationship between the image height and the minimum x / y of the crop. Divide
the image height by about 13 for the threshold at which Gwenview will crash. So
for images 10 000 pixels in height, Gwenview crashes when the crop box goes
below 754, for 4000px it's 302, 800px it's 61 etc. For images under 600px
height, Gwenview crashes when the crop box goes below 46. Running Gwenview from
Konsole, I get these details when it crashes:

`ASSERT: "!(max < min)" in file
/usr/include/x86_64-linux-gnu/qt6/QtCore/qminmax.h, line 46
Aborted (core dumped)`

STEPS TO REPRODUCE
1. Open an image with Gwenview. I have seen this happen with PNG files.
2. Select "Show Editing Tools -> Crop -> Advanced Settings" to show the Size:
[x] [y] text boxes.
3. Reduce the x or y crop size number to below about a 13th of the image
height.

OBSERVED RESULT
Gwenview freezes, then crashes and closes. 

EXPECTED RESULT
Crop

SOFTWARE/OS VERSIONS
KDE Neon Unstable, Wayland
Gwenview 24.04.70 (whatever's in the "unstable" Neon repository)
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to