<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>276909</bug_id>
          
          <creation_ts>2011-07-01 18:17:25 +0000</creation_ts>
          <short_desc>Modifing text size get a crash</short_desc>
          <delta_ts>2011-07-02 06:26:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="sinozzuke">sinozzuke</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1137447</commentid>
    <comment_count>0</comment_count>
    <who name="sinozzuke">sinozzuke</who>
    <bug_when>2011-07-01 18:17:25 +0000</bug_when>
    <thetext>Application: krita (2.4 Alpha 2)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-10-generic x86_64
Distribution: KXStudio 11.04

-- Information about the crash:
- What I was doing when the application crashed:
1. Make a Text layer
2. Write something
3. Select the writted text (btw doesn&apos;t highlight the text)
4. Change the size to 100 px or more
5. Select white arrow tool on the panel
6. Crash

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f83898a27a0 (LWP 16802))]

Thread 7 (Thread 0x7f8367738700 (LWP 16806)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f8367737bd0 in ?? ()
#2  0x00007fffe41d57b2 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 6 (Thread 0x7f8367f39700 (LWP 16807)):
#0  0x00007f83810f9143 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f83891c832c in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/libQtCore.so.4
#2  0x00007f83891cd3d0 in QEventDispatcherUNIXPrivate::doSelect(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;, timeval*) () from /usr/lib/libQtCore.so.4
#3  0x00007f83891ce04a in QEventDispatcherUNIX::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () from /usr/lib/libQtCore.so.4
#4  0x00007f838919f882 in QEventLoop::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () from /usr/lib/libQtCore.so.4
#5  0x00007f838919fabc in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () from /usr/lib/libQtCore.so.4
#6  0x00007f83890b6924 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f8389181c2f in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f83890b9175 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f8380e03d8c in start_thread (arg=0x7f8367f39700) at pthread_create.c:304
#10 0x00007f838110104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f8366f37700 (LWP 16813)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f83890b982b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f83890b6235 in QSemaphore::acquire(int) () from /usr/lib/libQtCore.so.4
#3  0x00007f8388743b7e in KisTileDataPooler::waitForWork (this=0x68bf820) at /home/sinozzuke/kde4/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:162
#4  0x00007f8388744264 in KisTileDataPooler::run (this=0x68bf820) at /home/sinozzuke/kde4/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:184
#5  0x00007f83890b9175 in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007f8380e03d8c in start_thread (arg=0x7f8366f37700) at pthread_create.c:304
#7  0x00007f838110104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f835a8a1700 (LWP 16814)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f83890b982b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f83890b6469 in QSemaphore::tryAcquire(int, int) () from /usr/lib/libQtCore.so.4
#3  0x00007f8388764aba in KisTileDataSwapper::run (this=0x68bf858) at /home/sinozzuke/kde4/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#4  0x00007f83890b9175 in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007f8380e03d8c in start_thread (arg=0x7f835a8a1700) at pthread_create.c:304
#6  0x00007f838110104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f835989f700 (LWP 17544)):
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
#1  0x00007f83578243fc in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
#2  0x00007f8357229d08 in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
#3  0x00007f8357229bcd in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
#4  0x00007f8380e03d8c in start_thread (arg=0x7f835989f700) at pthread_create.c:304
#5  0x00007f838110104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f83527fc700 (LWP 17545)):
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
#1  0x00007f83578243fc in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
#2  0x00007f8357229d08 in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
#3  0x00007f8357229bcd in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
#4  0x00007f8380e03d8c in start_thread (arg=0x7f83527fc700) at pthread_create.c:304
#5  0x00007f838110104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f83898a27a0 (LWP 16802)):
[KCrash Handler]
#6  KisImage::perspectiveGrid (this=0x0) at /home/sinozzuke/kde4/src/calligra/krita/image/kis_image.cc:1110
#7  0x00007f836968fa22 in KisDuplicateOpSettings::activate (this=0xe4f9720) at /home/sinozzuke/kde4/src/calligra/krita/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_settings.cpp:92
#8  0x00007f8388d4125e in KisTool::activate (this=0xea3eee0) at /home/sinozzuke/kde4/src/calligra/krita/ui/tool/kis_tool.cc:149
#9  0x00007f8385fc06ce in KoToolManager::Private::postSwitchTool (this=0x68cdee0, temporary=&lt;value optimized out&gt;) at /home/sinozzuke/kde4/src/calligra/libs/flake/KoToolManager.cpp:338
#10 0x00007f8385fc164d in KoToolManager::Private::switchTool (this=0x68cdee0, tool=0xea3eee0, temporary=true) at /home/sinozzuke/kde4/src/calligra/libs/flake/KoToolManager.cpp:263
#11 0x00007f8385fc28fd in KoToolManager::Private::switchTool (this=0x68cdee0, id=..., temporary=true) at /home/sinozzuke/kde4/src/calligra/libs/flake/KoToolManager.cpp:289
#12 0x00007f8385fc2c70 in KoToolManager::Private::switchToolByShortcut (this=0x68cdee0, event=0x7fffe419fcf0) at /home/sinozzuke/kde4/src/calligra/libs/flake/KoToolManager.cpp:718
#13 0x00007f83826fad4c in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#14 0x00007f8382aad156 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#15 0x00007f8382b2e8eb in QAbstractScrollArea::event(QEvent*) () from /usr/lib/libQtGui.so.4
#16 0x00007f83826a99f4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#17 0x00007f83826aec41 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#18 0x00007f83833cc866 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#19 0x00007f83891a049c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#20 0x00007f838274f3d9 in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007f838274f856 in ?? () from /usr/lib/libQtGui.so.4
#22 0x00007f838272a72f in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#23 0x00007f8382754224 in ?? () from /usr/lib/libQtGui.so.4
#24 0x00007f838919f882 in QEventLoop::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () from /usr/lib/libQtCore.so.4
#25 0x00007f838919fabc in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () from /usr/lib/libQtCore.so.4
#26 0x00007f83891a3ecb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#27 0x00007f83894d8685 in kdemain (argc=&lt;value optimized out&gt;, argv=0x7fffe41a0be8) at /home/sinozzuke/kde4/src/calligra/krita/main.cc:49
#28 0x00007f8381039eff in __libc_start_main (main=0x400980 &lt;main(int, char**)&gt;, argc=1, ubp_av=0x7fffe41a0be8, init=&lt;value optimized out&gt;, fini=&lt;value optimized out&gt;, rtld_fini=&lt;value optimized out&gt;, stack_end=0x7fffe41a0bd8) at libc-start.c:226
#29 0x00000000004008a9 in _start ()

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137534</commentid>
    <comment_count>1</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2011-07-02 06:26:04 +0000</bug_when>
    <thetext>Git commit a307d522606d70279e81d04601a30a030c30f03c by Boudewijn Rempt.
Committed on 02/07/2011 at 08:24.
Pushed by rempt into branch &apos;master&apos;.

Duplicate: fix possible crash if image is not set

It&apos;s possible to create paintop settings without a valid image, so don&apos;t
assume there&apos;s an image.

This fixes, or rather makes impossible, the crash in bug 276989, which
cannot have had anything to do with the text tool... I can confirm though
that at some font sizes, the text selection is not shown.
BUG:276909

M  +14   -14   krita/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_settings.cpp     

http://commits.kde.org/calligra/a307d522606d70279e81d04601a30a030c30f03c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>