Bug 248920 - KolourPaint crashs after type a text with a new font installed
Summary: KolourPaint crashs after type a text with a new font installed
Status: RESOLVED UPSTREAM
Alias: None
Product: kolourpaint
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kolourpaint-support
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 19:04 UTC by Andre Vicentin da Silva
Modified: 2010-08-29 18:21 UTC (History)
1 user (show)

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 Andre Vicentin da Silva 2010-08-24 19:04:51 UTC
Application: kolourpaint (4.4.2 (KDE 4.4.2))
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-24-generic i686
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
After type a text and try to change the font type to BEN PIONNER (recently installed) The Kolour Paint Crashs.

The crash can be reproduced every time.

 -- Backtrace:
Application: KolourPaint (kolourpaint), signal: Floating point exception
[KCrash Handler]
#5  0x080a1cf4 in kpTextSelection::closestTextRowForPoint (this=0x9a90a40, point=...) at ../../kolourpaint/layers/selections/text/kpTextSelection_Cursor.cpp:53
#6  0x080d9162 in kpToolText::beginDrawSelectText (this=0x9a1a5a0) at ../../kolourpaint/tools/selection/text/kpToolText_SelectText.cpp:79
#7  0x080d92d8 in kpToolText::selectTextOperation (this=0x0, op=127, data1=..., data2=...) at ../../kolourpaint/tools/selection/text/kpToolText_SelectText.cpp:114
#8  0x080d6f03 in kpToolText::operation (this=0x0, drawType=kpAbstractSelectionTool::SelectText, op=kpAbstractSelectionTool::HaventBegunDrawUserMessage, data1=..., data2=...)
    at ../../kolourpaint/tools/selection/text/kpToolText.cpp:220
#9  0x080d41c9 in kpAbstractSelectionTool::beginDraw (this=0x9a1a5a0) at ../../kolourpaint/tools/selection/kpAbstractSelectionTool.cpp:400
#10 0x080cb05b in kpTool::beginDrawInternal (this=0x9a1a5a0) at ../../kolourpaint/tools/kpTool_Drawing.cpp:242
#11 0x080ccdd3 in kpTool::mousePressEvent (this=0x9a1a5a0, e=0xbfebe4e0) at ../../kolourpaint/tools/kpTool_MouseEvents.cpp:173
#12 0x080dc6f5 in kpView::mousePressEvent (this=0x98e9c00, e=0xbfebe4e0) at ../../kolourpaint/views/kpView_Events.cpp:75
#13 0x011667dc in QWidget::event (this=0x98e9c00, event=0xbfebe4e0) at kernel/qwidget.cpp:7994
#14 0x011084dc in QApplicationPrivate::notify_helper (this=0x97c4008, receiver=0x98e9c00, e=0xbfebe4e0) at kernel/qapplication.cpp:4300
#15 0x0110f9f7 in QApplication::notify (this=0xbfebed9c, receiver=0x98e9c00, e=0xbfebe4e0) at kernel/qapplication.cpp:3865
#16 0x00dfbf2a in KApplication::notify (this=0xbfebed9c, receiver=0x98e9c00, event=0xbfebe4e0) at ../../kdeui/kernel/kapplication.cpp:302
#17 0x01bb7a3b in QCoreApplication::notifyInternal (this=0xbfebed9c, receiver=0x98e9c00, event=0xbfebe4e0) at kernel/qcoreapplication.cpp:704
#18 0x0110e952 in QCoreApplication::sendEvent (receiver=0x98e9c00, event=0xbfebe4e0, alienWidget=0x98e9c00, nativeWidget=0x98f2ea0, buttonDown=0x1a4c058, lastMouseReceiver=..., spontaneous=true)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#19 QApplicationPrivate::sendMouseEvent (receiver=0x98e9c00, event=0xbfebe4e0, alienWidget=0x98e9c00, nativeWidget=0x98f2ea0, buttonDown=0x1a4c058, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2965
#20 0x0119a088 in QETWidget::translateMouseEvent (this=0x98f2ea0, event=0xbfebe9fc) at kernel/qapplication_x11.cpp:4368
#21 0x01199511 in QApplication::x11ProcessEvent (this=0xbfebed9c, event=0xbfebe9fc) at kernel/qapplication_x11.cpp:3379
#22 0x011c860a in x11EventSourceDispatch (s=0x97c7240, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#23 0x026d25e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#24 0x026d62d8 in ?? () from /lib/libglib-2.0.so.0
#25 0x026d64b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#26 0x01be35d5 in QEventDispatcherGlib::processEvents (this=0x97ad9c0, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#27 0x011c8135 in QGuiEventDispatcherGlib::processEvents (this=0x97ad9c0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x01bb6059 in QEventLoop::processEvents (this=0xbfebecf4, flags=) at kernel/qeventloop.cpp:149
#29 0x01bb64aa in QEventLoop::exec (this=0xbfebecf4, flags=...) at kernel/qeventloop.cpp:201
#30 0x01bba69f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#31 0x01108577 in QApplication::exec () at kernel/qapplication.cpp:3579
#32 0x08096d1f in main (argc=1, argv=0xbfebef74) at ../../kolourpaint/kolourpaint.cpp:125

Reported using DrKonqi
Comment 1 Christoph Feck 2010-08-29 15:52:37 UTC
This font is broken, it returns 0 for fontMetrics.lineSpacing() because of an wrong value for leading(). Do not expect the font to work correctly with other applications.
Comment 2 Christoph Feck 2010-08-29 18:21:01 UTC
Might also be a Qt bug, reported as http://bugreports.qt.nokia.com/browse/QTBUG-13258