Bug 348697 - Continuosly using gradient tool ( I tested with linear and radial only) crashes krita
Summary: Continuosly using gradient tool ( I tested with linear and radial only) crash...
Status: RESOLVED DUPLICATE of bug 348652
Alias: None
Product: krita
Classification: Applications
Component: Tools (show other bugs)
Version: 2.9.4
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-04 12:09 UTC by Raghavendra kamath
Modified: 2015-06-05 06:15 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raghavendra kamath 2015-06-04 12:09:16 UTC
When we use gradient tool ( radial or linear - i didn't try with all) after approximately 10th or near 20th time the software crashes (segfaults) without bug report wizard or any thing.



Reproducible: Always

Steps to Reproduce:
1.Open an A4 blank document in krita
2.choose gradient tool and pick any color and set it to radial or linear in tool options
3. Apply or draw gradient for over 10 times ( keep going till 20 -25 times, don't know exactly after which it crashes but definitely above 10 times )

Actual Results:  
after certain times krita crashes

Expected Results:  
crash shouldn't occur

here is the back trace --


raghu@raghu:~$ gdb krita
GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from krita...done.
(gdb) run
Starting program: /home/raghu/kde4/inst/bin/krita 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
################################### 
# Adding a tablet device: Wacom Intuos4 6x9 stylus 
Device Type: "Stylus" 
# Axes limits data 
X:        0 44704 
Y:        0 27940 
Z:        0 0 
Pressure: 0 2048 
Rotation: -900 899 
T. Pres:  0 0 
################################### 
# Adding a tablet device: Wacom Intuos4 6x9 eraser 
Device Type: "XFreeEraser" 
# Axes limits data 
X:        0 44704 
Y:        0 27940 
Z:        0 0 
Pressure: 0 2048 
Rotation: 0 1 
T. Pres:  0 0 
krita(32174) KoResourceServer<T, Policy>::loadResources: Loading resource  "/home/raghu/.kde/share/apps/krita/patterns/mO7055.pat" failed 
krita(32174) KoResourceServer<T, Policy>::loadResources: Loading resource  "/home/raghu/.kde/share/apps/krita/patterns/i15839.pat" failed 
krita(32174) KoResourceServer<T, Policy>::loadResources: Loading resource  "/home/raghu/.kde/share/apps/krita/patterns/xT5305.pat" failed 
krita(32174) KoResourceServer<T, Policy>::loadResources: Loading resource  "/home/raghu/.kde/share/apps/krita/patterns/oN7055.pat" failed 
krita(32174) KoResourceServer<T, Policy>::loadResources: Loading resource  "/home/raghu/.kde/share/apps/krita/patterns/KQ5305.pat" failed 
krita(32174) KoResourceServer<T, Policy>::loadResources: Loading resource  "/home/raghu/.kde/share/apps/krita/patterns/r15839.pat" failed 
krita(32174) KoResourceServer<T, Policy>::loadResources: Loading resource  "/home/raghu/.kde/share/apps/krita/patterns/22_texture-reptile.png" failed 
connect failed: No such file or directory
void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "Close" under id 34 
void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "Close All" under id 35 
[New Thread 0x7fff90cde700 (LWP 32198)]
[Thread 0x7fff90cde700 (LWP 32198) exited]
Failed to open "brushes/bird.gih" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/01_canvas.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/02_rough-canvas.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/02b_WoofTissue.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/03_default-paper.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/04_paper-C-grain.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/05_paper-torchon.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/06_hard-grain.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/07_big-grain.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/08_bump-relief.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/09_drawed_crosshatched.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/09b_drawed-CrossedLines.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/10_drawed_dotted.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/11_drawed_furry.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/12_drawed_vertical.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/13_drawed_swirl.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/14_texture-rock.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/15_texture-rockB.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/16_texture-woody.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/17_texture-melt.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/18_texture-bark.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/18b_WaveFlex.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/19_texture-crackle.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/20_texture-vegetal.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/21_texture-chainmail.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/22_texture-reptile.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/23-dynamic-screentone-A.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/24-dynamic-screentone-B.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/25-dynamic-screentone-C.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/4-paper-soft-grain_testdark-black15.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/4-paper-soft-grain_testdark-black55.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to open "patterns/4-paper-soft-grain_teststrong.pat" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/4-paper-soft-grain_teststrong.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/4-paper-soft-grain_testtweak2.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/background-pc.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
Failed to load "patterns/bg-texture.png" from bundle "/home/raghu/.kde/share/apps/krita/bundles/2015-04-17_deevadkrita_V6.bundle" 
WARNING: KisImageConfig: requested config synchronization from nonGUI thread! Skipping... 
OpenGL version 1.1 or higher is present. 
OpenGL version 1.2 or higher is present. 
OpenGL version 1.3 or higher is present. 
OpenGL version 1.4 or higher is present. 
OpenGL version 1.5 or higher is present. 
OpenGL version 2.0 or higher is present. 
OpenGL version 2.1 or higher is present. 
OpenGL version 3.0 or higher is present. 
OpenGL version 3.1 or higher is present. 
OpenGL version 3.2 or higher is present. 
OpenGL version 3.3 or higher is present. 
OpenGL version 4.0 or higher is present. 
krita(32174)/koffice (lib komain) KoRuler::createGuideToolConnection: No guides tool found, skipping connection 
krita(32174)/koffice (lib komain) KoRuler::createGuideToolConnection: No guides tool found, skipping connection 
krita(32174) CanvasData::activateToolActions: "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]" 
krita(32174) CanvasData::activateToolActions: "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+[" 
krita(32174) CanvasData::activateToolActions: "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]" 
krita(32174) CanvasData::activateToolActions: "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+[" 
Could not find 'klauncher' executable.
kdeinit4: Communication error with launcher. Exiting!
krita(32174)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize() D-Bus call failed:  "The name org.kde.kded was not provided by any .service files" 

krita(32174)/kdecore (K*TimeZone*): No time zone information obtained from ktimezoned 
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu 
[New Thread 0x7fffb8ec0700 (LWP 32190)]
[New Thread 0x7fff82fff700 (LWP 32247)]
[New Thread 0x7fffd521e700 (LWP 32246)]
[New Thread 0x7fffb3fff700 (LWP 32245)]
[New Thread 0x7fff90cde700 (LWP 32244)]
[New Thread 0x7fff92548700 (LWP 32203)]
[New Thread 0x7fffb37fe700 (LWP 32193)]
[New Thread 0x7fffb2ffd700 (LWP 32192)]
[New Thread 0x7fffd4a1d700 (LWP 32189)]
[New Thread 0x7fffd5a1f700 (LWP 32179)]
[New Thread 0x7fffde5f0700 (LWP 32178)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffb8ec0700 (LWP 32190)]
__memcpy_sse2_unaligned ()
    at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:35
35	../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: No such file or directory.
(gdb) bt
#0  __memcpy_sse2_unaligned ()
    at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:35
#1  0x00007ffff452d075 in memcpy (__len=407, __src=<optimized out>, __dest=0x0)
    at /usr/include/x86_64-linux-gnu/bits/string3.h:53
#2  KisSwappedDataStore::swapOutTileData (this=this@entry=0x1af25d8, 
    td=td@entry=0x7fff868b1cb0)
    at /home/raghu/kde4/src/calligra/krita/image/tiles3/swap/kis_swapped_data_store.cpp:78
#3  0x00007ffff45118bf in KisTileDataStore::trySwapTileData (this=0x1af2580, 
    td=0x7fff868b1cb0)
    at /home/raghu/kde4/src/calligra/krita/image/tiles3/kis_tile_data_store.cc:257
#4  0x00007ffff452dbb3 in trySwapOut (td=<optimized out>, this=0x7fffb42d7670)
    at /home/raghu/kde4/src/calligra/krita/image/tiles3/kis_tile_data_store_iterators.h:62
#5  KisTileDataSwapper::pass<SoftSwapStrategy> (this=this@entry=0x1af25c0, 
    needToFreeMetric=19832)
    at /home/raghu/kde4/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:229
#6  0x00007ffff452d8fd in KisTileDataSwapper::doJob (this=0x1af25c0)
    at /home/raghu/kde4/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:133
#7  0x00007ffff452d9b2 in KisTileDataSwapper::run (this=0x1af25c0)
---Type <return> to continue, or q <return> to quit---
    at /home/raghu/kde4/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:99
#8  0x00007ffff5cd76ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fffefe396aa in start_thread (arg=0x7fffb8ec0700)
    at pthread_create.c:333
#10 0x00007ffff5472eed in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Comment 1 Raghavendra kamath 2015-06-04 15:00:48 UTC
On additional testing I found that the crash happens when the undo stack size grows bigger than the swap undo memory limit set by the user in performance tab.

to reproduce the crash I had to set the swap undo limit to 100 mb so that it uses 100 mb and after that it starts swapping. But after reaching 100mb it crashes.
Comment 2 Raghavendra kamath 2015-06-05 06:15:29 UTC
*** This bug has been marked as a duplicate of bug 348652 ***