Bug 276909 - Modifing text size get a crash
Summary: Modifing text size get a crash
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-01 18:17 UTC by sinozzuke
Modified: 2011-07-02 06:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sinozzuke 2011-07-01 18:17:25 UTC
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'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<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/libQtCore.so.4
#3  0x00007f83891ce04a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f838919f882 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f838919fabc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () 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=<value optimized out>) 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<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#25 0x00007f838919fabc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#26 0x00007f83891a3ecb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#27 0x00007f83894d8685 in kdemain (argc=<value optimized out>, argv=0x7fffe41a0be8) at /home/sinozzuke/kde4/src/calligra/krita/main.cc:49
#28 0x00007f8381039eff in __libc_start_main (main=0x400980 <main(int, char**)>, argc=1, ubp_av=0x7fffe41a0be8, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffe41a0bd8) at libc-start.c:226
#29 0x00000000004008a9 in _start ()

Reported using DrKonqi
Comment 1 Halla Rempt 2011-07-02 06:26:04 UTC
Git commit a307d522606d70279e81d04601a30a030c30f03c by Boudewijn Rempt.
Committed on 02/07/2011 at 08:24.
Pushed by rempt into branch 'master'.

Duplicate: fix possible crash if image is not set

It's possible to create paintop settings without a valid image, so don't
assume there'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