Bug 426267

Summary: Kate crashes randomly on start
Product: [Applications] kate Reporter: George Pchelkin <p4el48>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: christoph
Priority: NOR Keywords: drkonqi
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description George Pchelkin 2020-09-07 07:58:31 UTC
Application: kate (20.08.1)

Qt Version: 5.14.2
Frameworks Version: 5.73.0
Operating System: Linux 5.4.0-46-generic x86_64
Windowing system: X11
Distribution: KDE neon User Edition 5.19

-- Information about the crash:
- What I was doing when the application crashed:

Just started Kate from Application Menu. Sometimes it starts, sometimes it crashes.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault

[KCrash Handler]
#4  QBrush::operator== (this=0x5576cf8989d8, b=...) at painting/qbrush.cpp:962
#5  0x00007f251e404226 in QBrush::operator!= (b=..., this=<optimized out>) at ../../include/QtGui/../../src/gui/painting/qbrush.h:113
#6  QPalette::setBrush (this=this@entry=0x7fff2ef04b50, cg=cg@entry=QPalette::Active, cr=cr@entry=QPalette::WindowText, b=...) at kernel/qpalette.cpp:799
#7  0x00007f251f506537 in KColorScheme::createApplicationPalette (config=...) at ./src/kcolorscheme.cpp:677
#8  0x00007f251f508714 in activateScheme (colorSchemePath=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qshareddata.h:283
#9  0x00007f251f50893c in KColorSchemeManager::activateScheme (this=this@entry=0x5576cfd2cf90, index=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractitemmodel.h:460
#10 0x00005576ceca73a2 in KateColorSchemeChooser::KateColorSchemeChooser (this=0x5576cfd07d30, parent=<optimized out>) at ./kate/katecolorschemechooser.cpp:58
#11 0x00005576cec6132f in KateMainWindow::setupImportantActions (this=this@entry=0x5576cfc2c9b0) at ./kate/katemainwindow.cpp:245
#12 0x00005576cec62db3 in KateMainWindow::KateMainWindow (this=0x5576cfc2c9b0, sconfig=0x5576cfc28040, sgroup=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ./kate/katemainwindow.cpp:135
#13 0x00005576cec50697 in KateApp::newMainWindow (this=<optimized out>, sconfig_=<optimized out>, sgroup_=...) at ./kate/kateapp.cpp:409
#14 0x00005576ceca0d85 in KateSessionManager::loadSession (this=this@entry=0x7fff2ef05480, session=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:1069
#15 0x00005576ceca324b in KateSessionManager::activateSession (this=this@entry=0x7fff2ef05480, session=..., closeAndSaveLast=closeAndSaveLast@entry=false, loadNew=loadNew@entry=true) at ./kate/session/katesessionmanager.cpp:166
#16 0x00005576ceca37ba in KateSessionManager::activateSession (this=this@entry=0x7fff2ef05480, name=..., closeAndSaveLast=closeAndSaveLast@entry=false, loadNew=loadNew@entry=true) at ./kate/session/katesessionmanager.cpp:242
#17 0x00005576ceca3854 in KateSessionManager::activateAnonymousSession (this=this@entry=0x7fff2ef05480) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:257
#18 0x00005576ceca3b98 in KateSessionManager::chooseSession (this=0x7fff2ef05480) at ./kate/session/katesessionmanager.cpp:414
#19 0x00005576cec524e3 in KateApp::startupKate (this=0x7fff2ef053d0) at ./kate/kateapp.cpp:322
#20 0x00005576cec5318d in KateApp::init (this=0x7fff2ef053d0) at ./kate/kateapp.cpp:144
#21 0x00005576cec4bd57 in main (argc=<optimized out>, argv=<optimized out>) at ./kate/main.cpp:615
[Inferior 1 (process 317385) detached]

Reported using DrKonqi
Comment 1 Christoph Cullmann 2021-03-07 11:45:23 UTC
I am unable to reproduce this, could you try e.g. Kate 20.12?
Comment 2 George Pchelkin 2021-03-09 10:06:11 UTC
(In reply to Christoph Cullmann from comment #1)
> I am unable to reproduce this, could you try e.g. Kate 20.12?

I solved it by reinstalling KDE neon :) Seems to have been some troubles caused by multiple upgrades (previous installation of KDE neon was 2 or 3 years old).