Bug 100117 - LibO crashes when switching Sidebar decks in Writer/Calc if two windows visible (KDE4)
Summary: LibO crashes when switching Sidebar decks in Writer/Calc if two windows visib...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.1.0.0.beta1
Hardware: x86-64 (AMD64) Linux (All)
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, haveBacktrace, regression
Depends on:
Blocks:
 
Reported: 2016-05-29 09:04 UTC by Mihkel Tõnnov
Modified: 2017-06-15 15:55 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Backtrace (1.80 KB, application/gzip)
2016-05-29 13:49 UTC, Mihkel Tõnnov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mihkel Tõnnov 2016-05-29 09:04:34 UTC
Steps to reproduce:
1) Open Libreoffice Writer/Calc (doesn't matter if existing file or new).
2) Open another LibreOffice application (Writer, Calc, Impress, etc.)
3) Drag them so they are both visible, e.g. side-by-side on same screen, partially overlapping, or one on primary and the other on secondary screen.
4) Click to switch to some other Sidebar deck in the original Writer/Calc window (the one opened in step 1).
5) Observe the crash.

It doesn't happen when both windows are on the same screen, one behind the other.

Running on Mageia 5 (x64), LibreOffice 5.1.3.2, build-ID 644e4637d1d8544fd9f56425bd6cec110e49301b, locale: et-EE (I tried with en-US as well - crashes all the same), UI render: default.
Crash occurs already in 5.1.0 beta 2 (possibly alpha and beta 1, too - I didn't find the install files for those versions, so could't try).

Doesn't affect 4.4.7.2, nor 5.0.6.3, so it's a regression.

I couldn't reproduce this on Windows (8.1), so possibly Linux-specific. Can't test on a Mac.
Comment 1 Julien Nabet 2016-05-29 13:16:26 UTC
On pc Debian x86-64 with LO Debian package 5.1.3.2, I don't reproduce this.

For the test, could you upgrade to last stable version 5.1.3.2 + rename your LO directory profile (see https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.2FLinux:_How_to_get_a_backtrace)
Comment 2 Mihkel Tõnnov 2016-05-29 13:49:31 UTC
Created attachment 125373 [details]
Backtrace

I still get a crash with a new profile.
5.1.3.2 is the latest stable version.
Backtrace attached.
Comment 3 Julien Nabet 2016-05-29 14:05:59 UTC
Thank you Mihkel for your feedback.

On this:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5fc2bfc in vcl::Window::ImplGenerateMouseMove() () from /opt/libreoffice5.1/program/libmergedlo.so
#0  0x00007ffff5fc2bfc in vcl::Window::ImplGenerateMouseMove() () at /opt/libreoffice5.1/program/libmergedlo.so
#1  0x00007ffff6018d62 in ImplHandleMouseEvent(vcl::Window*, MouseNotifyEvent, bool, long, long, unsigned long, unsigned short, MouseEventModifiers) () at /opt/libreoffice5.1/program/libmergedlo.so
#2  0x00007ffff601b041 in ImplWindowFrameProc(vcl::Window*, SalFrame*, unsigned short, void const*) () at /opt/libreoffice5.1/program/libmergedlo.so
#3  0x00007fffd936187c in X11SalFrame::HandleMouseEvent(_XEvent*) () at /opt/libreoffice5.1/program/libvclplug_genlo.so
#4  0x00007fffd93288f8 in SalX11Display::Dispatch(_XEvent*) () at /opt/libreoffice5.1/program/libvclplug_genlo.so
#5  0x00007fffdbd601a9 in VCLKDEApplication::x11EventFilter(_XEvent*) () at /opt/libreoffice5.1/program/libvclplug_kde4lo.so
#6  0x00007fffd9ca448a in qt_x11EventFilter(_XEvent*) () at /lib64/libQtGui.so.4
#7  0x00007fffd9cb1d92 in QApplication::x11ProcessEvent(_XEvent*) () at /lib64/libQtGui.so.4
#8  0x00007fffd9cd9442 in x11EventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQtGui.so.4
#9  0x00007fffefc28c6d in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#10 0x00007fffefc28f18 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#11 0x00007fffefc28fbc in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#12 0x00007fffd9739e1e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#13 0x00007fffd9cd94f6 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtGui.so.4
#14 0x00007fffdbd5dbcd in KDEXLib::processYield(bool, bool) () at /opt/libreoffice5.1/program/libvclplug_kde4lo.so
#15 0x00007fffdbd5f840 in KDEXLib::Yield(bool, bool) () at /opt/libreoffice5.1/program/libvclplug_kde4lo.so
#16 0x00007ffff6210fe1 in Application::Yield() () at /opt/libreoffice5.1/program/libmergedlo.so
#17 0x00007ffff6212b45 in Application::Execute() () at /opt/libreoffice5.1/program/libmergedlo.so

For the test and to know if it's specific to kde4 rendering, could you try this:
1) Open terminal/consol 
2) Export SAL_USE_VCLPLUGIN=gtk
3) Launch LO from console
?
Comment 4 Mihkel Tõnnov 2016-05-29 15:13:24 UTC
Indeed, without KDE-integration I no longer get the crash. Updated summary.
Comment 5 Buovjaga 2016-05-31 06:03:13 UTC
No crash.

64-bit, KDE Plasma 5
Build ID: 5.1.3.2 Arch Linux build-1
CPU Threads: 8; OS Version: Linux 4.5; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Comment 6 Elmar 2016-11-23 17:04:30 UTC
I can confirm this crash for the latest LibreOffice 5.2.3.3 in CentOS 6 and CentOS 7 64bit with KDE. Problem disappears with

export SAL_USE_VCLPLUGIN=gtk
Comment 8 Caolán McNamara 2017-06-15 15:55:22 UTC
That was fixed by https://cgit.freedesktop.org/libreoffice/core/commit/?id=a9be0b6a4e39240871a9b35ae9afd04f242a3ea4 in latest 5-3