If I try to start kate, it will spit out: No docs r (or the only) opened right now --> disable menu QWidget::setLayout: Attempting to set QLayout "" on KateMDI::ToolView "", which already has a layout No docs r (or the only) opened right now --> disable menu Segmentation fault (core dumped) And if I pass a file as a parameter, it will instead crash with: No docs r (or the only) opened right now --> disable menu QWidget::setLayout: Attempting to set QLayout "" on KateMDI::ToolView "", which already has a layout No docs r (or the only) opened right now --> disable menu No docs r (or the only) opened right now --> disable menu stage #1: Collected 1 paths and 0 masks stage #2: Collected 1 paths and 0 masks stage #1: Collected 2 paths and 1 masks stage #2: Collected 2 paths and 1 masks stage #1: Collected 2 paths and 1 masks stage #2: Collected 2 paths and 1 masks stage #1: Collected 2 paths and 1 masks stage #2: Collected 2 paths and 1 masks No docs r (or the only) opened right now --> disable menu No docs r (or the only) opened right now --> disable menu Segmentation fault (core dumped) If I start it graphically with a shortcut, in KDE, it will create a single frame whose only contents is what's behind it. This frame will live for a fraction of a second and then an error message pops up. Reproducible: Always Steps to Reproduce: 1. Start Kate 2. Immediately crashes Actual Results: Kate crashes immediately. Expected Results: I can use Kate to write things :) Purging all of its configuration files, or at least all the ones I know about (under ~/.kde), doesn't have any effect whatsoever, neither does uninstalling and reinstalling. This is under KDE 5, but every other application works fine. If I start Kate with root privileges under sudo (eek!), it will launch and work successfully, but that's not really a long term solution...
On KF5 configs are in ~/.local not ~/.kde
(In reply to Kåre Särs from comment #1) > On KF5 configs are in ~/.local not ~/.kde Thank you very much! I didn't know this, I apologize. I deleted the configs found here, and Kate started up successfully again. I did some more work into what it was that was causing this, and I've narrowed it down to the file system browser plugin specifically. Kate will work fine with any other plugin loaded. If I enable this one, kate will continue to work until I close it, then it crashes on every subsequent startup and won't start again until I delete the anonymous.katesession file.
Glad I could help :) Unfortunately I cannot reproduce your problem... Wonder why you do not get a backtrace from the crash. Without the crach trace it is really hard to know what is wrong. Can you debug and generate backtrace with GDB: gdb kate –nofork
(In reply to Kåre Särs from comment #3) > Glad I could help :) > > Unfortunately I cannot reproduce your problem... > > Wonder why you do not get a backtrace from the crash. Without the crach > trace it is really hard to know what is wrong. > > Can you debug and generate backtrace with GDB: > gdb kate –nofork gdb didn't recognize -nofork, unfortunately, so I tried it without that. Here's the stacktrace I got back: Reading symbols from kate...Reading symbols from /usr/lib/debug/.build-id/8d/9c38356e468a260900e0c4cb4b7e87722ad117.debug...done. done. (gdb) run Starting program: /usr/bin/kate [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffe1a3b700 (LWP 7597)] *** Error in `/usr/bin/kate': free(): invalid pointer: 0x00007ffff7b2bc68 *** Program received signal SIGABRT, Aborted. 0x00007ffff779c267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55 55 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory Since this doesn't seem terribly useful, at least to me, I went ahead and tried to squeeze one out of KDE's crash dialog (happend to notice it while creating the first one), and here's the results from that one. (I apologize, it's very long) Thread 1 (Thread 0x7f0bb6e3e780 (LWP 7629)): [KCrash Handler] #6 0x00007f0bb557133b in musable (mem=0x7f0bb58b0c68 <main_arena+104>) at malloc.c:4554 #7 __malloc_usable_size (m=0x7f0bb58b0c68 <main_arena+104>) at malloc.c:4566 #8 0x00007f0bb391cf29 in ?? () from /usr/lib/nvidia-352/libGL.so.1 #9 0x00007f0bb12970d9 in ?? () from /usr/lib/nvidia-352/tls/libnvidia tls.so.352.63 #10 0x00007f0ba23719f8 in QFontEngineFT::loadGlyph(QFontEngineFT::QGlyphSet*, unsigned int, QFixed, QFontEngine::GlyphFormat, bool) const () from /usr/lib/x86_64-linux-gnu/q /plugins/platforms/libqxcb.so #11 0x00007f0ba2373abd in QFontEngineFT::loadGlyphFor(unsigned int, QFixed, QFontEngine::GlyphFormat, QTransform const&, bool) () from /usr/lib/x86_64 linux-gnu/qt5/plugins/platforms/libqxcb.so #12 0x00007f0ba2375441 in QFontEngineFT::alphaRGBMapForGlyph(unsigned int, QFixed, QTransform const&) () from /usr/lib/x86_64-linux-gnu/qt5/plugins /platforms/libqxcb.so #13 0x00007f0bb5f02200 in QFontEngine::lockedAlphaMapForGlyph(unsigned int, QFixed, QFontEngine::GlyphFormat, QTransform const&, QPoint*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #14 0x00007f0ba2374a6f in QFontEngineFT::lockedAlphaMapForGlyph(unsigned int, QFixed, QFontEngine::GlyphFormat, QTransform const&, QPoint*) () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so #15 0x00007f0bb608fb31 in QRasterPaintEngine::drawCachedGlyphs(int, unsigned int const*, QFixedPoint const*, QFontEngine*) () from /usr/lib /x86_64-linux-gnu/libQt5Gui.so.5 #16 0x00007f0bb60926cf in QRasterPaintEngine::drawTextItem(QPointF const&, QTextItem const&) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #17 0x00007f0bb60b0bc3 in ?? () from /usr/lib/x86_64-linux- gnu/libQt5Gui.so.5 #18 0x00007f0bb5f3af8d in QTextLine::draw(QPainter*, QPointF const&, QTextLayout::FormatRange const*) const () from /usr/lib/x86_64-linux- gnu/libQt5Gui.so.5 #19 0x00007f0bb60a7164 in ?? () from /usr/lib/x86_64-linux- gnu/libQt5Gui.so.5 #20 0x00007f0bb60add63 in QPainter::drawText(QRect const&, int, QString const&, QRect*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #21 0x00007f0bb45fd1a4 in QStyle::drawItemText(QPainter*, QRect const&, int, QPalette const&, bool, QString const&, QPalette::ColorRole) const () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #22 0x00007f0b9e4db233 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins /styles/breeze.so #23 0x00007f0b9e4dc64c in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins /styles/breeze.so #24 0x00007f0b9e4da1a4 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins /styles/breeze.so #25 0x00007f0ba9884930 in KMultiTabBarTab::paintEvent(QPaintEvent*) () from /usr/lib/x86_64-linux-gnu/libKF5WidgetsAddons.so.5 #26 0x00007f0bb45db188 in QWidget::event(QEvent*) () from /usr/lib/x86_64- linux-gnu/libQt5Widgets.so.5 #27 0x00007f0bb4598b8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #28 0x00007f0bb459e230 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #29 0x00007f0bb5b37f1b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #30 0x00007f0bb45d4689 in QWidgetPrivate::sendPaintEvent(QRegion const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #31 0x00007f0bb45d4cd1 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #32 0x00007f0bb45d595c in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #33 0x00007f0bb45d4841 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #34 0x00007f0bb45d595c in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #35 0x00007f0bb45d4841 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #36 0x00007f0bb45d595c in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #37 0x00007f0bb45d5849 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #38 0x00007f0bb45d4841 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #39 0x00007f0bb45d595c in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #40 0x00007f0bb45d5849 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #41 0x00007f0bb45d4841 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #42 0x00007f0bb45a5bc2 in ?? () from /usr/lib/x86_64-linux- gnu/libQt5Widgets.so.5 #43 0x00007f0bb45a6692 in ?? () from /usr/lib/x86_64-linux- gnu/libQt5Widgets.so.5 #44 0x00007f0bb45f47eb in ?? () from /usr/lib/x86_64-linux- gnu/libQt5Widgets.so.5 #45 0x00007f0bb4598b8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #46 0x00007f0bb459e230 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #47 0x00007f0bb5b37f1b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #48 0x00007f0bb5e5b336 in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::Expose Event*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #49 0x00007f0bb5e5c07d in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate:: WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #50 0x00007f0bb5e415b8 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsF lag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #51 0x00007f0ba2342250 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins /platforms/libqxcb.so #52 0x00007f0bb2628ff7 in g_main_context_dispatch () from /lib/x86_64-linux- gnu/libglib-2.0.so.0 #53 0x00007f0bb2629250 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #54 0x00007f0bb26292fc in g_main_context_iteration () from /lib/x86_64- linux-gnu/libglib-2.0.so.0 #55 0x00007f0bb5b8f27f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #56 0x00007f0bb5b3575a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib /x86_64-linux-gnu/libQt5Core.so.5 #57 0x00007f0bb5b3d2cc in QCoreApplication::exec() () from /usr/lib/x86_64- linux-gnu/libQt5Core.so.5 #58 0x00007f0ba435c6c6 in kdemain (argc=1, argv=<optimized out>) at ../../.. /kate/src/main.cpp:439 #59 0x00000000004085a6 in ?? () #60 0x0000000000409e79 in ?? () #61 0x000000000040a567 in ?? () #62 0x00000000004050ac in main () I apologize, I couldn't indent some of the lines cleanly. I'm not sure that these are useful backtraces, so if there's anything I can do for you, please let me know!
Oh, and it appears as though it's chopped off the first few lines from the second backtrace. Here they are: Application: Kate (kdeinit5), signal: Segmentation fault Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Current thread is 1 (Thread 0x7f0bb6e3e780 (LWP 7704))] Thread 2 (Thread 0x7f0b9f57c700 (LWP 7705)): #0 0x00007f0bb55e78dd in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f0bb4ccdbd2 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1 #2 0x00007f0bb4ccf74f in xcb_wait_for_event () from /usr/lib/x86_64-linux- gnu/libxcb.so.1 #3 0x00007f0ba2315a39 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins /platforms/libqxcb.so #4 0x00007f0bb59582be in ?? () from /usr/lib/x86_64-linux- gnu/libQt5Core.so.5 #5 0x00007f0bb334f6aa in start_thread (arg=0x7f0b9f57c700) at pthread_create.c:333 #6 0x00007f0bb55f2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64 /clone.S:109 Thread 1 (Thread 0x7f0bb6e3e780 (LWP 7704)): [KCrash Handler]
Sorry, but the backtrace does not really help, best it indicates that this is no Kate issue, maybe it is a Kubuntu issue or Qt thing. Please update, the issue then is probably gone.