Bug 434749 - KMail crash at startup after new template
Summary: KMail crash at startup after new template
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-03-22 09:30 UTC by Łukasz Żarnowiecki
Modified: 2021-03-22 10:08 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 Łukasz Żarnowiecki 2021-03-22 09:30:35 UTC
Application: kmail (5.16.3 (20.12.3))
 (Compiled from sources)
Qt Version: 5.15.2
Frameworks Version: 5.80.0
Operating System: Linux 5.11.7-arch1-1 x86_64
Windowing System: X11
Drkonqi Version: 5.21.3
Distribution: "Arch Linux"

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

I created new email template in kmail settings and then after I closed KMail it refuses to start again and always crashes with attachted backtrace.

Also, kontact won't start either

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Aborted

[KCrash Handler]
#4  0x00007f4cf6e3aef5 in raise () at /usr/lib/libc.so.6
#5  0x00007f4cf6e24862 in abort () at /usr/lib/libc.so.6
#6  0x00007f4cf723a9ac in qt_message_fatal (message=<synthetic pointer>..., context=...) at global/qlogging.cpp:1914
#7  QMessageLogger::fatal(char const*, ...) const (this=this@entry=0x7ffc267b08b0, msg=msg@entry=0x7f4cf0480008 "%s") at global/qlogging.cpp:893
#8  0x00007f4cf047ab98 in QQuickWidgetPrivate::handleContextCreationFailure(QSurfaceFormat const&) (this=this@entry=0x55a397e43110, format=...) at /usr/src/debug/qtdeclarative-everywhere-src-5.15.2/src/quickwidgets/qquickwidget.cpp:885
#9  0x00007f4cf047aec0 in QQuickWidgetPrivate::createContext() (this=0x55a397e43110) at /usr/src/debug/qtdeclarative-everywhere-src-5.15.2/src/quickwidgets/qquickwidget.cpp:917
#10 0x00007f4cf047b042 in QQuickWidget::showEvent(QShowEvent*) (this=0x55a397e2dbf0) at /usr/src/debug/qtdeclarative-everywhere-src-5.15.2/src/quickwidgets/qquickwidget.cpp:1355
#11 0x00007f4cf088e815 in  () at /usr/lib/libQt5WebEngineWidgets.so.5
#12 0x00007f4cf7f68b0e in QWidget::event(QEvent*) (this=0x55a397e2dbf0, event=0x7ffc267b0b30) at kernel/qwidget.cpp:9019
#13 0x00007f4cf7f27752 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55a397e2dbf0, e=0x7ffc267b0b30) at kernel/qapplication.cpp:3632
#14 0x00007f4cf745fa2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55a397e2dbf0, event=0x7ffc267b0b30) at kernel/qcoreapplication.cpp:1063
#15 0x00007f4cf7f65338 in QWidgetPrivate::show_helper() (this=0x55a397e43110) at kernel/qwidget.cpp:7813
#16 0x00007f4cf7f650ff in QWidgetPrivate::show_recursive() (this=<optimized out>) at kernel/qwidget.cpp:7692
#17 0x00007f4cf7f6528a in QWidgetPrivate::showChildren(bool) (this=this@entry=0x55a397b9d900, spontaneous=spontaneous@entry=false) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:132
#18 0x00007f4cf7f65312 in QWidgetPrivate::show_helper() (this=0x55a397b9d900) at kernel/qwidget.cpp:7768
#19 0x00007f4cf7f650ff in QWidgetPrivate::show_recursive() (this=<optimized out>) at kernel/qwidget.cpp:7692
#20 0x00007f4cf7f6528a in QWidgetPrivate::showChildren(bool) (this=this@entry=0x55a397be3cb0, spontaneous=spontaneous@entry=false) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:132
#21 0x00007f4cf7f65312 in QWidgetPrivate::show_helper() (this=this@entry=0x55a397be3cb0) at kernel/qwidget.cpp:7768
#22 0x00007f4cf7f6864d in QWidgetPrivate::setVisible(bool) (this=0x55a397be3cb0, visible=<optimized out>) at kernel/qwidget.cpp:8111
#23 0x00007f4cf7f65273 in QWidgetPrivate::showChildren(bool) (this=this@entry=0x55a397b6ab90, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8183
#24 0x00007f4cf7f65312 in QWidgetPrivate::show_helper() (this=this@entry=0x55a397b6ab90) at kernel/qwidget.cpp:7768
#25 0x00007f4cf7f6864d in QWidgetPrivate::setVisible(bool) (this=0x55a397b6ab90, visible=<optimized out>) at kernel/qwidget.cpp:8111
#26 0x00007f4cf7f65273 in QWidgetPrivate::showChildren(bool) (this=this@entry=0x55a397bdb430, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8183
#27 0x00007f4cf7f65312 in QWidgetPrivate::show_helper() (this=this@entry=0x55a397bdb430) at kernel/qwidget.cpp:7768
#28 0x00007f4cf7f6864d in QWidgetPrivate::setVisible(bool) (this=0x55a397bdb430, visible=<optimized out>) at kernel/qwidget.cpp:8111
#29 0x00007f4cf7f65273 in QWidgetPrivate::showChildren(bool) (this=this@entry=0x55a397b1f2b0, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8183
#30 0x00007f4cf7f65312 in QWidgetPrivate::show_helper() (this=this@entry=0x55a397b1f2b0) at kernel/qwidget.cpp:7768
#31 0x00007f4cf7f6864d in QWidgetPrivate::setVisible(bool) (this=0x55a397b1f2b0, visible=<optimized out>) at kernel/qwidget.cpp:8111
#32 0x00007f4cf7f65273 in QWidgetPrivate::showChildren(bool) (this=this@entry=0x55a397af6220, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8183
#33 0x00007f4cf7f65312 in QWidgetPrivate::show_helper() (this=this@entry=0x55a397af6220) at kernel/qwidget.cpp:7768
#34 0x00007f4cf7f6864d in QWidgetPrivate::setVisible(bool) (this=0x55a397af6220, visible=<optimized out>) at kernel/qwidget.cpp:8111
#35 0x00007f4cf7f65273 in QWidgetPrivate::showChildren(bool) (this=this@entry=0x55a397d2e280, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8183
#36 0x00007f4cf7f65312 in QWidgetPrivate::show_helper() (this=this@entry=0x55a397d2e280) at kernel/qwidget.cpp:7768
#37 0x00007f4cf7f6864d in QWidgetPrivate::setVisible(bool) (this=0x55a397d2e280, visible=<optimized out>) at kernel/qwidget.cpp:8111
#38 0x00007f4cf7f65273 in QWidgetPrivate::showChildren(bool) (this=this@entry=0x55a397e5d140, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8183
#39 0x00007f4cf7f65312 in QWidgetPrivate::show_helper() (this=this@entry=0x55a397e5d140) at kernel/qwidget.cpp:7768
#40 0x00007f4cf7f6864d in QWidgetPrivate::setVisible(bool) (this=0x55a397e5d140, visible=<optimized out>) at kernel/qwidget.cpp:8111
#41 0x00007f4cf7f65273 in QWidgetPrivate::showChildren(bool) (this=this@entry=0x55a3979c0250, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8183
#42 0x00007f4cf7f65312 in QWidgetPrivate::show_helper() (this=this@entry=0x55a3979c0250) at kernel/qwidget.cpp:7768
#43 0x00007f4cf7f6864d in QWidgetPrivate::setVisible(bool) (this=0x55a3979c0250, visible=<optimized out>) at kernel/qwidget.cpp:8111
#44 0x00007f4cf7f65273 in QWidgetPrivate::showChildren(bool) (this=this@entry=0x55a3977a98d0, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8183
#45 0x00007f4cf7f65312 in QWidgetPrivate::show_helper() (this=this@entry=0x55a3977a98d0) at kernel/qwidget.cpp:7768
#46 0x00007f4cf7f6864d in QWidgetPrivate::setVisible(bool) (this=0x55a3977a98d0, visible=<optimized out>) at kernel/qwidget.cpp:8111
#47 0x00007f4d003470da in KMMainWin::showAndActivateWindow() (this=this@entry=0x55a397a02b80) at /usr/src/debug/kmail-20.12.3/src/kmmainwin.cpp:193
#48 0x00007f4d00357c99 in KMKernel::openReader(bool, bool) (this=<optimized out>, onlyCheck=<optimized out>, startInTray=<optimized out>) at /usr/src/debug/kmail-20.12.3/src/kmkernel.cpp:557
#49 0x00007f4d0035bfa8 in KMKernel::action(bool, bool, bool, QString const&, QString const&, QString const&, QString const&, QString const&, QUrl const&, QList<QUrl> const&, QStringList const&, QString const&, QString const&, QString const&) (this=0x7ffc267b2390, mailto=<optimized out>, check=<optimized out>, startInTray=<optimized out>, to=..., cc=..., bcc=..., subj=..., body=..., messageFile=..., attachURLs=..., customHeaders=..., replyTo=..., inReplyTo=..., identity=...) at /usr/src/debug/kmail-20.12.3/src/kmkernel.cpp:1175
#50 0x00007f4d0035dafa in KMKernel::handleCommandLine(bool, QStringList const&, QString const&) (this=<optimized out>, noArgsOpensReader=noArgsOpensReader@entry=true, args=..., workingDir=...) at /usr/src/debug/kmail-20.12.3/src/kmkernel.cpp:465
#51 0x000055a395af94c9 in KMailApplication::activate(QStringList const&, QString const&) (this=this@entry=0x7ffc267b2370, args=..., workingDir=...) at /usr/src/debug/kmail-20.12.3/src/main.cpp:97
#52 0x000055a395af9173 in KMailApplication::delayedInstanceCreation(QStringList const&, QString const&) (workingDir=..., args=..., this=0x7ffc267b2370) at /usr/src/debug/kmail-20.12.3/src/main.cpp:106
#53 KMailApplication::delayedInstanceCreation(QStringList const&, QString const&) (workingDir=..., args=..., this=0x7ffc267b2370) at /usr/src/debug/kmail-20.12.3/src/main.cpp:103
#54 main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kmail-20.12.3/src/main.cpp:167
[Inferior 1 (process 316852) detached]

Possible duplicates by query: bug 425508, bug 424911, bug 423951, bug 423132, bug 417285.

Reported using DrKonqi
Comment 1 Łukasz Żarnowiecki 2021-03-22 09:37:08 UTC
Also in console, I have this:

Qt: Session management error: Could not open network socket
Error loading text-to-speech plug-in "speechd"
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
QGLXContext: Failed to create dummy context
Cannot initialize model with data QJsonObject() . missing: QJsonValue(string, "urls")
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
*** KMail got signal 6 (Exiting)
*** Dead letters dumped.
/tmp/messageviewer_attachment_Hcijon was not removed .
/tmp/messageviewer_attachment_MidIox was not removed .
/tmp/messageviewer_attachment_xdNgWT was not removed .

and
[warn] epoll_wait: Bad file descriptor
repeated 10k times
Comment 2 Łukasz Żarnowiecki 2021-03-22 10:08:56 UTC
Looks like it's a nvidia driver issue.  But I'm not sure if this should be handled in KDE or not...