Bug 356827 - KWrite crashes when clicking "save as" on a blank file
Summary: KWrite crashes when clicking "save as" on a blank file
Status: RESOLVED DUPLICATE of bug 356583
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-12-17 12:34 UTC by emelenas
Modified: 2015-12-30 12:57 UTC (History)
4 users (show)

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


Attachments
Backtrace (4.90 KB, text/plain)
2015-12-26 21:57 UTC, Maxim Therrien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emelenas 2015-12-17 12:34:49 UTC
Application: kwrite (15.08.1)

Qt Version: 5.5.1
Operating System: Linux 4.2.7-300.fc23.x86_64 x86_64
Distribution: "Fedora release 23 (Twenty Three)"

-- Information about the crash:
- What I was doing when the application crashed:
Opened KWrite from the menu, wrote something, clicked "Save As", and KWrite crashed

The crash can be reproduced every time.

-- Backtrace:
Application: KWrite (kwrite), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fb75a42e900 (LWP 2850))]

Thread 2 (Thread 0x7fb73b1e6700 (LWP 2851)):
#0  0x00007fb753248ffd in poll () at /lib64/libc.so.6
#1  0x00007fb74b886272 in _xcb_conn_wait () at /lib64/libxcb.so.1
#2  0x00007fb74b887ee7 in xcb_wait_for_event () at /lib64/libxcb.so.1
#3  0x00007fb73dbb2da9 in QXcbEventReader::run() () at /lib64/libQt5XcbQpa.so.5
#4  0x00007fb753e513ce in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#5  0x00007fb750fa260a in start_thread () at /lib64/libpthread.so.0
#6  0x00007fb753254a9d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fb75a42e900 (LWP 2850)):
[KCrash Handler]
#5  0x00007fb73dbc9f08 in QXcbWindow::setParent(QPlatformWindow const*) () at /lib64/libQt5XcbQpa.so.5
#6  0x00007fb754c388bb in QWindow::setParent(QWindow*) () at /lib64/libQt5Gui.so.5
#7  0x00007fb7554135d5 in QWidgetPrivate::setParent_sys(QWidget*, QFlags<Qt::WindowType>) () at /lib64/libQt5Widgets.so.5
#8  0x00007fb75541efda in QWidget::setParent(QWidget*, QFlags<Qt::WindowType>) () at /lib64/libQt5Widgets.so.5
#9  0x00007fb7554200cc in QWidget::setParent(QWidget*) () at /lib64/libQt5Widgets.so.5
#10 0x00007fb75550611c in QDialogButtonBox::addButton(QAbstractButton*, QDialogButtonBox::ButtonRole) () at /lib64/libQt5Widgets.so.5
#11 0x00007fb73a3b6e59 in KDEPlatformFileDialog::KDEPlatformFileDialog() () at /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#12 0x00007fb73a3b7282 in KDEPlatformFileDialogHelper::KDEPlatformFileDialogHelper() () at /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#13 0x00007fb73a3aa2fa in KdePlatformTheme::createPlatformDialogHelper(QPlatformTheme::DialogType) const () at /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#14 0x00007fb7555d51b5 in QDialogPrivate::platformHelper() const () at /lib64/libQt5Widgets.so.5
#15 0x00007fb7555e8958 in QFileDialogPrivate::init(QUrl const&, QString const&, QString const&) () at /lib64/libQt5Widgets.so.5
#16 0x00007fb7555e8c76 in QFileDialog::QFileDialog(QFileDialogArgs const&) () at /lib64/libQt5Widgets.so.5
#17 0x00007fb7555e974e in QFileDialog::getSaveFileUrl(QWidget*, QString const&, QUrl const&, QString const&, QString*, QFlags<QFileDialog::Option>, QStringList const&) () at /lib64/libQt5Widgets.so.5
#18 0x00007fb759b5dae3 in KTextEditor::DocumentPrivate::documentSaveAs() () at /lib64/libKF5TextEditor.so.5
#19 0x00007fb759d18c5e in KTextEditor::DocumentPrivate::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () at /lib64/libKF5TextEditor.so.5
#20 0x00007fb7540612ea in QMetaObject::activate(QObject*, int, int, void**) () at /lib64/libQt5Core.so.5
#21 0x00007fb7553d17d2 in QAction::triggered(bool) () at /lib64/libQt5Widgets.so.5
#22 0x00007fb7553d3c58 in QAction::activate(QAction::ActionEvent) () at /lib64/libQt5Widgets.so.5
#23 0x00007fb7554d9b80 in QAbstractButtonPrivate::click() () at /lib64/libQt5Widgets.so.5
#24 0x00007fb7554d9cb4 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /lib64/libQt5Widgets.so.5
#25 0x00007fb75559e96a in QToolButton::mouseReleaseEvent(QMouseEvent*) () at /lib64/libQt5Widgets.so.5
#26 0x00007fb75541e428 in QWidget::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#27 0x00007fb75559ea49 in QToolButton::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#28 0x00007fb7553db41c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#29 0x00007fb7553e0fe9 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#30 0x00007fb75403277b in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#31 0x00007fb7553dfef2 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /lib64/libQt5Widgets.so.5
#32 0x00007fb75543898b in QWidgetWindow::handleMouseEvent(QMouseEvent*) () at /lib64/libQt5Widgets.so.5
#33 0x00007fb75543af4b in QWidgetWindow::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#34 0x00007fb7553db41c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#35 0x00007fb7553e08e6 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#36 0x00007fb75403277b in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#37 0x00007fb754c31ee1 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib64/libQt5Gui.so.5
#38 0x00007fb754c33bb5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /lib64/libQt5Gui.so.5
#39 0x00007fb754c17958 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Gui.so.5
#40 0x00007fb73dbe40a0 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5XcbQpa.so.5
#41 0x00007fb74f9c8e3a in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#42 0x00007fb74f9c91d0 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#43 0x00007fb74f9c927c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#44 0x00007fb754088eef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#45 0x00007fb75402ff0a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#46 0x00007fb754037fec in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#47 0x00007fb75a113465 in kdemain () at /lib64/libkdeinit5_kwrite.so
#48 0x00007fb753172580 in __libc_start_main () at /lib64/libc.so.6
#49 0x0000560b2b641b19 in _start ()

Possible duplicates by query: bug 356820, bug 356786, bug 356735, bug 356718, bug 356588.

Reported using DrKonqi
Comment 1 Kåre Särs 2015-12-17 13:03:15 UTC
Are you by chance using Compiz as window manager? 

There seems to be a problem with Compiz and KDE applications at the moment:

https://git.reviewboard.kde.org/r/126397/
Comment 2 emelenas 2015-12-18 06:27:23 UTC
(In reply to Kåre Särs from comment #1)
> Are you by chance using Compiz as window manager? 

No, I'm not. I'm using kwin
Comment 3 Mattia 2015-12-23 17:14:45 UTC
Same thing here:

Application: KWrite (kwrite), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f88fc9ae900 (LWP 14342))]

Thread 3 (Thread 0x7f88dd503700 (LWP 14343)):
#0  0x00007f88f5702ffd in poll () from /lib64/libc.so.6
#1  0x00007f88edc9e272 in _xcb_conn_wait () from /lib64/libxcb.so.1
#2  0x00007f88edc9fee7 in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007f88dff14da9 in QXcbEventReader::run() () from /lib64/libQt5XcbQpa.so.5
#4  0x00007f88f631f3ce in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x00007f88f341b60a in start_thread () from /lib64/libpthread.so.0
#6  0x00007f88f570ea9d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f88d0093700 (LWP 14344)):
#0  0x00007f88f3420b10 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f88d39612fa in radeon_drm_cs_emit_ioctl () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f88d3960a37 in impl_thrd_routine () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f88f341b60a in start_thread () from /lib64/libpthread.so.0
#4  0x00007f88f570ea9d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f88fc9ae900 (LWP 14342)):
[KCrash Handler]
#5  0x00007f88dff2bf08 in QXcbWindow::setParent(QPlatformWindow const*) () from /lib64/libQt5XcbQpa.so.5
#6  0x00007f88f711a8bb in QWindow::setParent(QWindow*) () from /lib64/libQt5Gui.so.5
#7  0x00007f88f78f85d5 in QWidgetPrivate::setParent_sys(QWidget*, QFlags<Qt::WindowType>) () from /lib64/libQt5Widgets.so.5
#8  0x00007f88f7903fda in QWidget::setParent(QWidget*, QFlags<Qt::WindowType>) () from /lib64/libQt5Widgets.so.5
#9  0x00007f88f79050cc in QWidget::setParent(QWidget*) () from /lib64/libQt5Widgets.so.5
#10 0x00007f88f79eb11c in QDialogButtonBox::addButton(QAbstractButton*, QDialogButtonBox::ButtonRole) () from /lib64/libQt5Widgets.so.5
#11 0x00007f88dc6cade9 in KDEPlatformFileDialog::KDEPlatformFileDialog() () from /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#12 0x00007f88dc6cb212 in KDEPlatformFileDialogHelper::KDEPlatformFileDialogHelper() () from /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#13 0x00007f88dc6be35a in KdePlatformTheme::createPlatformDialogHelper(QPlatformTheme::DialogType) const () from /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#14 0x00007f88f7aba1b5 in QDialogPrivate::platformHelper() const () from /lib64/libQt5Widgets.so.5
#15 0x00007f88f7acd958 in QFileDialogPrivate::init(QUrl const&, QString const&, QString const&) () from /lib64/libQt5Widgets.so.5
#16 0x00007f88f7acdc76 in QFileDialog::QFileDialog(QFileDialogArgs const&) () from /lib64/libQt5Widgets.so.5
#17 0x00007f88f7ace74e in QFileDialog::getSaveFileUrl(QWidget*, QString const&, QUrl const&, QString const&, QString*, QFlags<QFileDialog::Option>, QStringList const&) () from /lib64/libQt5Widgets.so.5
#18 0x00007f88fc0c3c03 in KTextEditor::DocumentPrivate::documentSaveAs() () from /lib64/libKF5TextEditor.so.5
#19 0x00007f88fc27ecde in KTextEditor::DocumentPrivate::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /lib64/libKF5TextEditor.so.5
#20 0x00007f88f652f2ea in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5
#21 0x00007f88f78b67d2 in QAction::triggered(bool) () from /lib64/libQt5Widgets.so.5
#22 0x00007f88f78b8c58 in QAction::activate(QAction::ActionEvent) () from /lib64/libQt5Widgets.so.5
#23 0x00007f88f7a3b562 in QMenuPrivate::activateCausedStack(QList<QPointer<QWidget> > const&, QAction*, QAction::ActionEvent, bool) () from /lib64/libQt5Widgets.so.5
#24 0x00007f88f7a4182c in QMenuPrivate::activateAction(QAction*, QAction::ActionEvent, bool) () from /lib64/libQt5Widgets.so.5
#25 0x00007f88f7a45730 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#26 0x00007f88f7903428 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#27 0x00007f88f7a46173 in QMenu::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#28 0x00007f88f78c041c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#29 0x00007f88f78c5fe9 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#30 0x00007f88f650077b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#31 0x00007f88f7a44f19 in QMenuPrivate::mouseEventTaken(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#32 0x00007f88f7a455b6 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#33 0x00007f88f7903428 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#34 0x00007f88f7a46173 in QMenu::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#35 0x00007f88f78c041c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#36 0x00007f88f78c5fe9 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#37 0x00007f88f650077b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#38 0x00007f88f78c4ef2 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /lib64/libQt5Widgets.so.5
#39 0x00007f88f791dced in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#40 0x00007f88f791ff4b in QWidgetWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#41 0x00007f88f78c041c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#42 0x00007f88f78c58e6 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#43 0x00007f88f650077b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#44 0x00007f88f7113ee1 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib64/libQt5Gui.so.5
#45 0x00007f88f7115bb5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /lib64/libQt5Gui.so.5
#46 0x00007f88f70f9958 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#47 0x00007f88dff460a0 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5XcbQpa.so.5
#48 0x00007f88f1e1de3a in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#49 0x00007f88f1e1e1d0 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#50 0x00007f88f1e1e27c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#51 0x00007f88f6556eef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#52 0x00007f88f64fdf0a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#53 0x00007f88f6505fec in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#54 0x00007f88fc67f465 in kdemain () from /lib64/libkdeinit5_kwrite.so
#55 0x00007f88f562c580 in __libc_start_main () from /lib64/libc.so.6
#56 0x0000563b46428b19 in _start ()

I'm not using Compiz, but I found that KDE Desktop Effects settings act on this bug: if in KDE settings I set Rendering Engine to XRender the bug disappear, while setting to OpenGL 2.0 or OpenGL 3.1 causes kwrite to crash as soon as you click on "Save as" button.
Comment 4 Mattia 2015-12-23 17:25:49 UTC
Another strange thing I've just noticed: if I create a new text file in Dolphin (right click - create - text file) and then I open it with kWrite the application doesn't crash when I click on "Save as" button (even with OpenGL as rendering engine).
However if I just open kWrite and click on "save as" it crashes.
Comment 5 Maxim Therrien 2015-12-26 21:57:47 UTC
Created attachment 96305 [details]
Backtrace

DrKonqi didn't want to attach this report to the thread for some reason.
Comment 6 Mattia 2015-12-27 14:23:49 UTC
I think there is some problem between Framework and OpenGL rendering: it's not only Kwrite to have problems, I can also see other software crashing while opening the "save as" window (tested with QT Creator) or "Open" window (tested with Marble).
Comment 7 Kåre Särs 2015-12-30 12:57:12 UTC

*** This bug has been marked as a duplicate of bug 356583 ***