Bug 261631 - Changing Font in Kate Causes Crash
Summary: Changing Font in Kate Causes Crash
Status: RESOLVED UPSTREAM
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-30 14:45 UTC by Robert Thomas
Modified: 2010-12-30 19:25 UTC (History)
2 users (show)

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


Attachments
New crash information added by DrKonqi (5.37 KB, text/plain)
2010-12-30 19:14 UTC, Robert Thomas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Thomas 2010-12-30 14:45:45 UTC
Application: kate (3.5.1)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-22-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
I changed the display font. Upon reloading, the application crashed and I cannot get it to start, even after purging and reisntalling.
- Custom settings of the application:

Newly installed font.

-- Backtrace:
Application: Kate (kate), signal: Floating point exception
[KCrash Handler]
#6  KateViewInternal::doUpdateView (this=0x26c0c70, changed=<value optimized out>, viewLinesScrolled=0) at ../../kate/view/kateviewinternal.cpp:593
#7  0x00007f617e17e120 in KateViewInternal::updateView (this=0x26c0c70, changed=32, viewLinesScrolled=0) at ../../kate/view/kateviewinternal.cpp:568
#8  0x00007f617e17f2fd in KateViewInternal::showEvent (this=0x26c0da0, e=0x7fffc5190cb0) at ../../kate/view/kateviewinternal.cpp:741
#9  0x00007f618fefbc79 in QWidget::event (this=0x26c0c70, event=0x7fffc5190cb0) at kernel/qwidget.cpp:8394
#10 0x00007f618fea5fdc in QApplicationPrivate::notify_helper (this=0x24e6380, receiver=0x26c0c70, e=0x7fffc5190cb0) at kernel/qapplication.cpp:4396
#11 0x00007f618feabaed in QApplication::notify (this=0x7fffc5192490, receiver=0x26c0c70, e=0x7fffc5190cb0) at kernel/qapplication.cpp:4277
#12 0x00007f618f168156 in KApplication::notify (this=0x7fffc5192490, receiver=0x26c0c70, event=0x7fffc5190cb0) at ../../kdeui/kernel/kapplication.cpp:310
#13 0x00007f618e997cdc in QCoreApplication::notifyInternal (this=0x7fffc5192490, receiver=0x26c0c70, event=0x7fffc5190cb0) at kernel/qcoreapplication.cpp:732
#14 0x00007f618fefff4a in sendEvent (this=0x2f10d40) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#15 QWidgetPrivate::show_helper (this=0x2f10d40) at kernel/qwidget.cpp:7367
#16 0x00007f618ff0169a in QWidget::setVisible (this=0x26c0c70, visible=<value optimized out>) at kernel/qwidget.cpp:7589
#17 0x00007f618ff002b6 in show (this=<value optimized out>, spontaneous=false) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:487
#18 QWidgetPrivate::showChildren (this=<value optimized out>, spontaneous=false) at kernel/qwidget.cpp:7677
#19 0x00007f618feffe3f in QWidgetPrivate::show_helper (this=0x298f200) at kernel/qwidget.cpp:7314
#20 0x00007f618ff0169a in QWidget::setVisible (this=0x3028f50, visible=<value optimized out>) at kernel/qwidget.cpp:7589
#21 0x00007f618ff002b6 in show (this=<value optimized out>, spontaneous=false) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:487
#22 QWidgetPrivate::showChildren (this=<value optimized out>, spontaneous=false) at kernel/qwidget.cpp:7677
#23 0x00007f618feffe3f in QWidgetPrivate::show_helper (this=0x312fce0) at kernel/qwidget.cpp:7314
#24 0x00007f618ff00221 in QWidgetPrivate::showChildren (this=<value optimized out>, spontaneous=false) at kernel/qwidget.cpp:7675
#25 0x00007f618feffe3f in QWidgetPrivate::show_helper (this=0x324f790) at kernel/qwidget.cpp:7314
#26 0x00007f618ff0169a in QWidget::setVisible (this=0x26d8b40, visible=<value optimized out>) at kernel/qwidget.cpp:7589
#27 0x00007f618ff002b6 in show (this=<value optimized out>, spontaneous=false) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:487
#28 QWidgetPrivate::showChildren (this=<value optimized out>, spontaneous=false) at kernel/qwidget.cpp:7677
#29 0x00007f618feffe3f in QWidgetPrivate::show_helper (this=0x2ec8060) at kernel/qwidget.cpp:7314
#30 0x00007f618ff00221 in QWidgetPrivate::showChildren (this=<value optimized out>, spontaneous=false) at kernel/qwidget.cpp:7675
#31 0x00007f618feffe3f in QWidgetPrivate::show_helper (this=0x2f07e30) at kernel/qwidget.cpp:7314
#32 0x00007f618ff00221 in QWidgetPrivate::showChildren (this=<value optimized out>, spontaneous=false) at kernel/qwidget.cpp:7675
#33 0x00007f618feffe3f in QWidgetPrivate::show_helper (this=0x2dd1eb0) at kernel/qwidget.cpp:7314
#34 0x00007f618ff0169a in QWidget::setVisible (this=0x2af49e0, visible=<value optimized out>) at kernel/qwidget.cpp:7589
#35 0x00007f618ff002b6 in show (this=<value optimized out>, spontaneous=false) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:487
#36 QWidgetPrivate::showChildren (this=<value optimized out>, spontaneous=false) at kernel/qwidget.cpp:7677
#37 0x00007f618feffe3f in QWidgetPrivate::show_helper (this=0x27199f0) at kernel/qwidget.cpp:7314
#38 0x00007f618ff0169a in QWidget::setVisible (this=0x303f1d0, visible=<value optimized out>) at kernel/qwidget.cpp:7589
#39 0x00007f618ff002b6 in show (this=<value optimized out>, spontaneous=false) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:487
#40 QWidgetPrivate::showChildren (this=<value optimized out>, spontaneous=false) at kernel/qwidget.cpp:7677
#41 0x00007f618feffe3f in QWidgetPrivate::show_helper (this=0x298dae0) at kernel/qwidget.cpp:7314
#42 0x00007f618ff0169a in QWidget::setVisible (this=0x265a500, visible=<value optimized out>) at kernel/qwidget.cpp:7589
#43 0x00007f618ff002b6 in show (this=<value optimized out>, spontaneous=false) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:487
#44 QWidgetPrivate::showChildren (this=<value optimized out>, spontaneous=false) at kernel/qwidget.cpp:7677
#45 0x00007f618feffe3f in QWidgetPrivate::show_helper (this=0x3320530) at kernel/qwidget.cpp:7314
#46 0x00007f618ff0169a in QWidget::setVisible (this=0x26d0700, visible=<value optimized out>) at kernel/qwidget.cpp:7589
#47 0x00007f618ff002b6 in show (this=<value optimized out>, spontaneous=false) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:487
#48 QWidgetPrivate::showChildren (this=<value optimized out>, spontaneous=false) at kernel/qwidget.cpp:7677
#49 0x00007f618feffe3f in QWidgetPrivate::show_helper (this=0x26f9910) at kernel/qwidget.cpp:7314
#50 0x00007f618ff0169a in QWidget::setVisible (this=0x2df2d40, visible=<value optimized out>) at kernel/qwidget.cpp:7589
#51 0x00007f618ff002b6 in show (this=<value optimized out>, spontaneous=false) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:487
#52 QWidgetPrivate::showChildren (this=<value optimized out>, spontaneous=false) at kernel/qwidget.cpp:7677
#53 0x00007f618feffe3f in QWidgetPrivate::show_helper (this=0x25935e0) at kernel/qwidget.cpp:7314
#54 0x00007f618ff0169a in QWidget::setVisible (this=0x2877930, visible=<value optimized out>) at kernel/qwidget.cpp:7589
#55 0x00007f618f5b8371 in KateApp::newMainWindow(KConfig*, QString const&) () from /usr/lib/libkateinterfaces.so.4
#56 0x00007f618f5eb948 in ?? () from /usr/lib/libkateinterfaces.so.4
#57 0x00007f618f5b97cb in KateApp::startupKate() () from /usr/lib/libkateinterfaces.so.4
#58 0x00007f618f5b9fd8 in KateApp::initKate() () from /usr/lib/libkateinterfaces.so.4
#59 0x00007f618f5ba1c2 in KateApp::KateApp(KCmdLineArgs*) () from /usr/lib/libkateinterfaces.so.4
#60 0x00007f6190d5e960 in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_kate.so
#61 0x00007f61909f4d8e in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffc5193a28) at libc-start.c:226
#62 0x0000000000400659 in _start ()

Possible duplicates by query: bug 238239.

Reported using DrKonqi
Comment 1 Milian Wolff 2010-12-30 17:33:41 UTC
I don't know why but apparently QFontMetrics returns 0 as height for your font. Which one did you select? And you should be able to get kate working again by editing/removing your config files in ~/.kde/share/config/ namely kateschemarc and search for Font.
Comment 2 Robert Thomas 2010-12-30 17:49:57 UTC
That worked! Thank you very much!

On Thu, Dec 30, 2010 at 9:33 AM, Milian Wolff <mail@milianw.de> wrote:

> https://bugs.kde.org/show_bug.cgi?id=261631
>
>
>
>
>
> --- Comment #1 from Milian Wolff <mail milianw de>  2010-12-30 17:33:41 ---
> I don't know why but apparently QFontMetrics returns 0 as height for your
> font.
> Which one did you select? And you should be able to get kate working again
> by
> editing/removing your config files in ~/.kde/share/config/ namely
> kateschemarc
> and search for Font.
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 3 Milian Wolff 2010-12-30 18:01:58 UTC
Yes, but what font did you use before? Maybe that is a bug in Qt that must be reported...

Closing this report for now though.
Comment 4 Robert Thomas 2010-12-30 19:08:09 UTC
It happens with any font that I try. I have an enormous fonts collection, so
it may be related that.

On Thu, Dec 30, 2010 at 10:01 AM, Milian Wolff <mail@milianw.de> wrote:

> https://bugs.kde.org/show_bug.cgi?id=261631
>
>
> Milian Wolff <mail@milianw.de> changed:
>
>           What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>             Status|UNCONFIRMED                 |RESOLVED
>         Resolution|                            |UPSTREAM
>
>
>
>
> --- Comment #3 from Milian Wolff <mail milianw de>  2010-12-30 18:01:58 ---
> Yes, but what font did you use before? Maybe that is a bug in Qt that must
> be
> reported...
>
> Closing this report for now though.
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 5 Robert Thomas 2010-12-30 19:14:27 UTC
Created attachment 55385 [details]
New crash information added by DrKonqi

kate (3.5.1) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

- What I was doing when the application crashed:
As it turns out, when I try to change any of Kate's settings, the application crashes.

-- Backtrace (Reduced):
#6  QList (this=0xc0) at ../../include/QtCore/../../src/corelib/tools/qlist.h:118
#7  QWidget::actions (this=0xc0) at kernel/qwidget.cpp:3181
#8  0x00007f730b34272e in DBusMenuExporterDBus::GetChildren (this=0x21c4840, parentId=<value optimized out>, names=<value optimized out>) at ../3rdparty/dbusmenu-qt/src/dbusmenuexporterdbus_p.cpp:53
#9  0x00007f730b355c9a in DBusMenuExporterDBus::qt_metacall (this=0x21c4840, _c=<value optimized out>, _id=<value optimized out>, _a=0x7fff3f85fbe0) at .moc/release-shared/moc_dbusmenuexporterdbus_p.cpp:106
#10 0x00007f7309ab60ee in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=..., slotIdx=<value optimized out>) at qdbusintegrator.cpp:919
Comment 6 Christoph Feck 2010-12-30 19:25:17 UTC
See http://bugreports.qt.nokia.com/browse/QTBUG-13258