Bug 320382 - Unable to crop due to image corruption into canvas with not X11 based computers (ResizeEvent relevant)
Summary: Unable to crop due to image corruption into canvas with not X11 based compute...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Editor-Crop (show other bugs)
Version: 4.9.0
Platform: Gentoo Packages Linux
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-28 11:06 UTC by Mikołaj Kowalski
Modified: 2016-06-29 19:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.12.0


Attachments
attachment-20329-0.html (1.31 KB, text/html)
2015-06-15 02:15 UTC, abhijin
Details
attachment-20830-0.html (1.30 KB, text/html)
2015-06-21 10:42 UTC, abhijin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikołaj Kowalski 2013-05-28 11:06:05 UTC
In Image Editor mode when Aspect Ratio Crop tool is selected the picture is displayed incorrectly. This concern JPEG2000 and some JPG's, TIF's not affected.
I've made a screenshot http://imgur.com/1aW3X0G
If you resize window the corruption is sometimes different.

Reproducible: Always

Steps to Reproduce:
1. Enter Image Editor Mode
2. Select Aspect Ratio Crop tool
3. See the corruption
Actual Results:  
Image corruption

Expected Results:  
Image displayed properly

$ emerge --info digikam
Portage 2.2.0_alpha177 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.7.5-pf x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.7.5-pf-x86_64-Intel-R-_Core-TM-_i5_CPU_M_430_@_2.27GHz-with-gentoo-2.2
KiB Mem:     3718952 total,    199060 free
KiB Swap:    3145704 total,   1212936 free
Timestamp of tree: Mon, 27 May 2013 19:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo kde qt mpd openrc mva roslin
Installed sets: @kdeartwork, @kdebase, @kdegraphics, @kdemultimedia, @kdenetwork, @kdepim, @kdeutils-4.10
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 AdobeFlash-10.3 skype-eula dlj-1.1 PUEL google-talkplugin skype-4.0.0.7-copyright Google-TOS AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7  -Oz"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7 -Oz"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" http://gentoo.mirror.pw.edu.pl/ http://mirror.csclub.uwaterloo.ca http://mirror2.corbina.ru/gentoo-distfiles/ http://gentoo.po.opole.pl/ http://ftp.vectranet.pl/gentoo/ http://gentoo.prz.rzeszow.pl/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://gentoo.mirror.web4u.cz/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ "
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/qt /var/lib/layman/mpd /var/lib/layman/openrc /var/lib/layman/mva /var/lib/layman/roslin"
SYNC="rsync://rsync7.pl.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 bash-completion berkdb branding bzip2 c++0x cairo cdda cdr clang cli consolekit cracklib crypt cups cxx dbus declarative device-mapper dri dts dvd dvdr emboss encode exif fam fftw firefox flac fortran gdbm gif gpm iconv ipv6 jpeg kde kipi lcms libnotify lm_sensors lzma mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma pmu png policykit ppds qt3support qt4 sdl semantic-desktop session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg symlink tcpd telepathy threads tiff truetype udev udisks unicode upnp upower usb v4l2 vaapi vorbis wxwidgets x264 xcb xcomposite xml xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="lvm" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="synaptics evdev keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" NETBEANS_MODULES="java nb ide php harness websvccommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="hp hp3900" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-gfx/digikam-3.2.0 was built with the following:
USE="addressbook gphoto2 handbook mysql semantic-desktop thumbnails video (-aqua) -debug -doc -themedesigner" LINGUAS="pl -af -ar -az -be -bg -bn -br -bs -ca -cs -csb -cy -da -de -el -en_GB -eo -es -et -eu -fa -fi -fo -fr -fy -ga -gl -ha -he -hi -hr -hsb -hu -id -is -it -ja -ka -kk -km -ko -ku -lb -lo -lt -lv -mi -mk -mn -ms -mt -nb -nds -ne -nl -nn -nso -oc -pa -pt -pt_BR -ro -ru -rw -se -sk -sl -sq -sr -sr@Latn -ss -sv -ta -te -tg -th -tr -tt -uk -uz -uz@cyrillic -ven -vi -wa -xh -zh_CN -zh_HK -zh_TW -zu"
Comment 1 caulier.gilles 2014-08-20 22:14:12 UTC
I confirm this bug only under OSX, not Linux and Windows.

Dysfunction is also visible to FreeRotation tool.

Gilles Caulier
Comment 2 caulier.gilles 2014-08-20 22:15:49 UTC
Wrap around this bug is simple : resize editor windows until preview become usable...

Gilles Caulier
Comment 3 Mikołaj Kowalski 2014-08-25 21:17:28 UTC
I still suffers from this bug in digikam version 4.2.0 under Linux.

FreeRotation is also affected.
Comment 4 caulier.gilles 2015-06-14 20:03:23 UTC
*** Bug 349155 has been marked as a duplicate of this bug. ***
Comment 5 abhijin 2015-06-15 02:15:24 UTC
Created attachment 93180 [details]
attachment-20329-0.html

Thank you very much.

Abhijin

On Sun, Jun 14, 2015 at 4:03 PM, Gilles Caulier <caulier.gilles@gmail.com>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=320382
>
> Gilles Caulier <caulier.gilles@gmail.com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |abhijin@gmail.com
>
> --- Comment #4 from Gilles Caulier <caulier.gilles@gmail.com> ---
> *** Bug 349155 has been marked as a duplicate of this bug. ***
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>
Comment 6 caulier.gilles 2015-06-21 10:13:22 UTC
Maik,

A video demo of the dysfunction with Aspect Ratio Crop tool under OSX 10.9 and digiKam 4.11.0

http://youtu.be/KCXvedGKBJk

Gilles Caulier
Comment 7 abhijin 2015-06-21 10:42:01 UTC
Created attachment 93275 [details]
attachment-20830-0.html

Hi Giles,

I am unable to see the video. It says the video is private.
However, I was able to resize the window and see the image.

Thanks
Abhijin

On Sun, Jun 21, 2015 at 6:13 AM, Gilles Caulier <caulier.gilles@gmail.com>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=320382
>
> --- Comment #6 from Gilles Caulier <caulier.gilles@gmail.com> ---
> Maik,
>
> A video demo of the dysfunction with Aspect Ratio Crop tool under OSX 10.9
> and
> digiKam 4.11.0
>
> http://youtu.be/KCXvedGKBJk
>
> Gilles Caulier
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>
Comment 8 caulier.gilles 2015-06-21 12:31:10 UTC
video must be visible now.

Gilles Caulier
Comment 9 caulier.gilles 2015-06-21 12:38:51 UTC
Maik,

A similar problem exist in FreeRotation tool. The effect is not exactly the same in tool canvas, but resize event overload image rotation computation with bombarding event to recompute target image. Finally it crash.

http://youtu.be/GuraJbaILho

Gilles
Comment 10 caulier.gilles 2015-06-21 12:41:54 UTC
Maik,

Problem is also the same with Perspective Adjustments tool. It's reported to bug #317689

Gilles
Comment 11 caulier.gilles 2015-06-21 14:00:47 UTC
Maik,

I tried with Ubuntu 15.04 and official digiKam 3.5.0. The problem is not reproducible.

http://youtu.be/S9u0lrV-5HU

Gilles
Comment 12 Maik Qualmann 2015-06-22 17:26:39 UTC
Git commit a8b7a0713609fc752bbd71830f72ae01bd8dbb67 by Maik Qualmann.
Committed on 22/06/2015 at 17:23.
Pushed by mqualmann into branch 'master'.

corrects the values for width and height of the preview image from the image data interface
Related: bug 269682, bug 317689, bug 340389
FIXED-IN: 4.12.0

M  +5    -1    NEWS
M  +2    -1    utilities/imageeditor/plugin/imageiface.cpp

http://commits.kde.org/digikam/a8b7a0713609fc752bbd71830f72ae01bd8dbb67
Comment 13 caulier.gilles 2015-06-22 19:14:16 UTC
Git commit 9f4b909f94f7e4623ad8b434637b2c3d6c09934d by Gilles Caulier.
Committed on 22/06/2015 at 19:12.
Pushed by cgilles into branch 'frameworks'.

backport commit #a8b7a0713609fc752bbd71830f72ae01bd8dbb67 from git/master to frameworks branch
Related: bug 269682, bug 317689, bug 340389

M  +4    -1    utilities/imageeditor/plugin/imageiface.cpp

http://commits.kde.org/digikam/9f4b909f94f7e4623ad8b434637b2c3d6c09934d