changing border style closes libreoffice calc in i3-wm

Bug #1514195 reported by niggard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LibreOffice
Fix Released
High
libreoffice (Debian)
Fix Released
Unknown
libreoffice (Ubuntu)
Fix Released
High
Björn Michaelsen

Bug Description

Hello,
details are the same as in Debian bug #801504 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801504)
####
Dear Maintainer,

The same libreoffice used by the same user on the same machine works fine,
when used in Gnome3. When used in i3-wm, after opening new spreadsheet:

1. select any cell,
2. click `border style` icon in menu,
3. from the list select any border style (solid line for example).

Libreoffice will be closed immediately. Recovery will be possible
after relaunch.

There is movie with crash: https://imgrush.com/LK72Y6-9xXQM
Best,
JS

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: libreoffice-calc 1:5.0.2-0ubuntu1
ProcVersionSignature: Ubuntu 4.2.0-17.21-generic 4.2.3
Uname: Linux 4.2.0-17-generic x86_64
ApportVersion: 2.19.1-0ubuntu4
Architecture: amd64
CurrentDesktop: i3
Date: Sun Nov 8 15:00:30 2015
InstallationDate: Installed on 2015-11-04 (3 days ago)
InstallationMedia: Ubuntu-GNOME 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: libreoffice
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
In , Keigen-pub (keigen-pub) wrote :

Using the "Borders" or "Border Style" buttons on the Formatting toolbar causes Calc to crash without any error messages. Applying borders using the "Format cells" option from the right-click menu still works, only the buttons on the toolbar seems to be broken.

Steps to reproduce:
1. Create a new spreadsheet.
2. Select any cell.
3. Click on the "Borders" or "Border Style" button.
4. Select any border option in the pop-out.
R. Calc crashes without any error messages.

I am using Arch Linux x86_64.

Revision history for this message
In , Raal (raal) wrote :

Hello,
I can't confirm with Version: 5.1.0.0.alpha1+
Build ID: 6b7354ae66db40246a09e00aa876443057655a43
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2015-08-19_01:05:16

 For the test, could you rename your LibreOffice directory profile (see https://wiki.documentfoundation.org/UserProfile) and give it a new try? Thank you

Revision history for this message
In , Keigen-pub (keigen-pub) wrote :

Created attachment 118046
--backtrace log

I did as you asked, but it still crashes whenever I use those toolbar buttons. Here is the backtrace log.

Revision history for this message
In , sophie (gautier-sophie) wrote :

Hi, I couldn't reproduce using Ubuntu 15.04 and Version: 5.0.0.5
Build ID: 437e4abdf9e72fd0a6e6f8697a0e659bc77f9b10
Locale: fr-FR (fr_FR.UTF-8)
5.0.1 will be soon available, could you test again with it and keep us informed? Thanks!
Added keywords: have-backtrace. Left as unconfirmed - Sophie

Revision history for this message
In , Nils-smeds-w (nils-smeds-w) wrote :

I see the issue too.
Tried removing the user profile but no change.

Tried Linux x86_64 rpm versions 5.0.1.2-2 and 5.0.2.1-1

echo $LANG
en_US.utf8

cat /etc/fedora-release
Fedora release 22 (Twenty Two)

uname -a
Linux nsmeds-t440 4.1.6-200.fc22.x86_64 #1 SMP Mon Aug 17 19:54:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

XFCE window manager
xfce4-settings-4.12.0-5.fc22.x86_64

Revision history for this message
In , Momonasmon (momonasmon) wrote :

*** Bug 94078 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Momonasmon (momonasmon) wrote :

2 confirmation -> NEW.

Revision history for this message
In , JBF (jbf-faure) wrote :

No crash for me with Version: 5.0.3.0.0+
Build ID: 651205cdf64d3fce6685a58587c8ec4626278779
Ubuntu_15.04_x86-64
Locale : fr-FR (fr_FR.UTF-8)

It seems that the problem is related to the window manager XFCE or LXDE.
@reporter: what is your window manager?

Best regards. JBF

Revision history for this message
In , Keigen-pub (keigen-pub) wrote :

It still crashes on version 5.0.1.2.0+ on AwesomeWM 3.5.6-2 for me.

Build ID: 5.0.1.2 Arch Linux build-1
Locale: en-GB (en_GB.utf8)

I also tested this version on KDE (KWin 5.4.0) and Xfce (xfwm4 version 4.12.3 r.7fdcb53 for Xfce 4.12). Both of them don't crash and work just fine.

Before this, on version 5.0.0.5, it crashes on both AwesomeWM and Xfce. I didn't test KDE because I didn't have it installed at the time.

Revision history for this message
In , Nils-smeds-w (nils-smeds-w) wrote :

Tried latest build - no change

Version: 5.0.3.0.0+
Build ID: 315a112f28b480e8e90d42a8ab45d1b448490939
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:libreoffice-5-0, Time: 2015-09-10_06:47:25
Locale: en-US (en_US.utf8)

So far only the buttons "Borders" and "Border Style" crashes the GUI.

As before: Fedora 22 and XFCE window manager

So interaction between the WM and LO is a candidate root cause.

I will try to later today try another system where I can change the WM and see what happens.

Revision history for this message
In , Nils-smeds-w (nils-smeds-w) wrote :

Tried a different Fedora 22 system. With xfce I can reproduce the crash, with GNOME I can not.

This system actually filed a bug report :-)

https://retrace.fedoraproject.org/faf/reports/800921/

Version: 5.0.3.0.0+
Build ID: 315a112f28b480e8e90d42a8ab45d1b448490939
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:libreoffice-5-0, Time: 2015-09-10_06:47:25
Locale: en-US (en_US.utf8)

Revision history for this message
In , Nils-smeds-w (nils-smeds-w) wrote :

Created attachment 118602
backtrace from abrt

Version: 5.0.3.0.0+
Build ID: 315a112f28b480e8e90d42a8ab45d1b448490939
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:libreoffice-5-0, Time: 2015-09-10_06:47:25
Locale: en-US (en_US.utf8)

xfce4-session-4.12.1-3.fc22.x86_64

Revision history for this message
In , Sean Russell (ser-ser1) wrote :

Same bug observed here.

Libreoffice:
Version: 5.1.0.0.alpha1+
Build ID: 902255645328efde34ddf62227c8278e8dd61ff0
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2015-07-30_05:23:12
Locale: en-US (en_US.UTF-8)

WM:
i3 version 4.10.4 (2015-09-08, branch "4.10.4")

OS:
Linux sting 4.1.0-040100rc3-generic #201505102036 SMP Mon May 11 00:37:27 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
In , Sean Russell (ser-ser1) wrote :

Created attachment 119454
Output of --strace

Comment 12

Revision history for this message
In , Sean Russell (ser-ser1) wrote :

Created attachment 119455
--backtrace output

Comment 12

Revision history for this message
In , Sean Russell (ser-ser1) wrote :

*** Bug 94170 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Michael-meeks-1 (michael-meeks-1) wrote :

Can't reproduce under XFCE here vs. either master or my own 5.0 build. Odd & sorry to be a pain. Any chance of a stack-trace and console output from a dbgutil build ? =)

Thanks !

Revision history for this message
In , Nils-smeds-w (nils-smeds-w) wrote :

Do you need more detailed info than what is in
https://bug-attachments.documentfoundation.org/attachment.cgi?id=118602

If so I'll try to locate and install a dbg image and repeat my steps for you.

Revision history for this message
In , Nils-smeds-w (nils-smeds-w) wrote :
Download full text (3.8 KiB)

Installed release candidate 5.0.3.1-1 (RPM date Oct 8)
Build ID: fd8cfc22f7f58033351fcb8a83b92acbadb0749e
Locale: en-US (en_US.utf8)

Attached to soffice.bin with gdb and got the following. If this is not sufficient I'll need a link on how to get the necessary debug-info included in the install.

[...]
Reading symbols from /opt/libreoffice5.0/program/../program/libneon.so...(no debugging symbols found)...done.
Reading symbols from /lib64/libnss_dns.so.2...(no debugging symbols found)...done.
0x00007f07a920e2fd in poll () from /lib64/libc.so.6
Missing separate debuginfos, use: dnf debuginfo-install libreoffice5.0-5.0.3.1-1.x86_64
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x00007f07abff1d64 in vcl::Window::ImplGrabFocus(unsigned short) () from /opt/libreoffice5.0/program/libmergedlo.so
(gdb) where
#0 0x00007f07abff1d64 in vcl::Window::ImplGrabFocus(unsigned short) () at /opt/libreoffice5.0/program/libmergedlo.so
#1 0x00007f07abff232b in vcl::Window::ImplGrabFocus(unsigned short) () at /opt/libreoffice5.0/program/libmergedlo.so
#2 0x00007f07ac0408b9 in vcl::Window::dispose() () at /opt/libreoffice5.0/program/libmergedlo.so
#3 0x00007f07ab4ff0a6 in ValueSet::dispose() () at /opt/libreoffice5.0/program/libmergedlo.so
#4 0x00007f07ab9ffdcd in SvxFrameWindow_Impl::dispose() () at /opt/libreoffice5.0/program/libmergedlo.so
#5 0x00007f07ab2f2eb8 in SfxPopupWindow::Close() () at /opt/libreoffice5.0/program/libmergedlo.so
#6 0x00007f07abfcf00a in FloatingWindow::ImplEndPopupModeHdl(void*) () at /opt/libreoffice5.0/program/libmergedlo.so
#7 0x00007f07ac047f2c in ImplWindowFrameProc(vcl::Window*, SalFrame*, unsigned short, void const*) ()
    at /opt/libreoffice5.0/program/libmergedlo.so
#8 0x00007f07ac2a0858 in SalGenericDisplay::DispatchInternalEvent() () at /opt/libreoffice5.0/program/libmergedlo.so
#9 0x00007f079142d0e9 in GtkData::userEventFn(void*) () at /opt/libreoffice5.0/program/libvclplug_gtklo.so
#10 0x00007f079142d161 in call_userEventFn () at /opt/libreoffice5.0/program/libvclplug_gtklo.so
#11 0x00007f07a549da8a in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#12 0x00007f07a549de20 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#13 0x00007f07a549decc in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#14 0x00007f079142c4d3 in GtkData::Yield(bool, bool) () at /opt/libreoffice5.0/program/libvclplug_gtklo.so
#15 0x00007f07ac2365f3 in Application::Yield() () at /opt/libreoffice5.0/program/libmergedlo.so
#16 0x00007f07ac236675 in Application::Execute() () at /opt/libreoffice5.0/program/libmergedlo.so
#17 0x00007f07ab348b03 in desktop::Desktop::Main() () at /opt/libreoffice5.0/program/libmergedlo.so
#18 0x00007f07ac23b8e9 in ImplSVMain() () at /opt/libreoffice5.0/program/libmergedlo.so
#19 0x00007f07ac23b932 in SVMain() () at /opt/libreoffice5.0/program/libmergedlo.so
#20 0x00007f07ab367972 in soffice_main () at /opt/libreoffice5.0/program/libmergedlo.so
#21 0x000000000040075b in main ()

(gdb) list
1 freeblver.c: No such file or directory.

(gdb) info threads
  Id Target Id Frame
  7 Thread 0x7ff342922700 (LWP 9091) "UpdateCheckThre" 0x00007ff35c4f78e9 in pthr...

Read more...

Revision history for this message
In , Michael-meeks-1 (michael-meeks-1) wrote :

> Do you need more detailed info than what is in ...

Yes sorry - can't reproduce here under XFCE; and having full stack & file information is really vital. You need a dbgutil build you can run - which should have symbols (and be quite big to download) - the wiki should point you to that somewhere. If you get a trace from that - it should have filenames eg. vcl/source/app/svapp.cxx:1234 next to symbols, with the values of the parameters that are passed etc.

Thanks !

Revision history for this message
In , Momonasmon (momonasmon) wrote :

(In reply to Michael Meeks from comment #19)
> can't reproduce here under XFCE;
I found how to reproduce. Under System Settings open "Window Manager Tweaks", switch to the Focus tab, and uncheck "Honor standard ICCCM focus hint".

Revision history for this message
In , Nils-smeds-w (nils-smeds-w) wrote :

Created attachment 119650
Debug info backtrace 5.1 alpha Build aa2886cf...982a777f

Revision history for this message
In , Nils-smeds-w (nils-smeds-w) wrote :

Version: 5.1.0.0.alpha1+
Build ID: aa2886cf7d86175fead49a038b16a77a982a777f
TinderBox: Linux-rpm_deb-x86_64@70-TDF-dbg, Branch:master, Time: 2015-10-15_01:19:42
Locale: en-US (en_US.utf8)

Program received signal SIGSEGV, Segmentation fault.
0x00007f9ce28397c1 in vcl::Window::ImplGrabFocus (this=0x0, nFlags=GetFocusFlags::NONE)
    at /home/buildslave/source/libo-core/vcl/source/window/mouse.cxx:200
200 /home/buildslave/source/libo-core/vcl/source/window/mouse.cxx: No such file or directory.

(gdb) bt
#0 0x00007f9ce28397c1 in vcl::Window::ImplGrabFocus(GetFocusFlags) (this=0x0, nFlags=GetFocusFlags::NONE)
    at /home/buildslave/source/libo-core/vcl/source/window/mouse.cxx:200
#1 0x00007f9ce28e1a0b in vcl::Window::GrabFocus() (this=0x0) at /home/buildslave/source/libo-core/vcl/source/window/window.cxx:3173
#2 0x00007f9cb300b75a in SvxFrameWindow_Impl::GetFocus() (this=0x2c90030)
    at /home/buildslave/source/libo-core/svx/source/tbxctrls/tbcontrl.cxx:1645
...
See attachment for full backtrace

Revision history for this message
In , Nils-smeds-w (nils-smeds-w) wrote :

(In reply to Maxim Monastirsky from comment #20)
> (In reply to Michael Meeks from comment #19)
> > can't reproduce here under XFCE;
> I found how to reproduce. Under System Settings open "Window Manager
> Tweaks", switch to the Focus tab, and uncheck "Honor standard ICCCM focus
> hint".

I can confirm this on at least one of my system (where I tested this).

Revision history for this message
In , Michael-meeks-1 (michael-meeks-1) wrote :

Still can't reproduce but fixed the crasher in the trace with debug symbols =) thanks for that Nils; awaiting gerrit CI builds at:

https://gerrit.libreoffice.org/19542 and
https://gerrit.libreoffice.org/19541

Revision history for this message
In , Libreoffice-commits (libreoffice-commits) wrote :

Michael Meeks committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=ff3e81600c2e4512ea3992b4abd3ab23b5c8a110

tdf#93487 - protect GetFocus method call post dispose.

It will be available in 5.1.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.

Revision history for this message
In , Libreoffice-commits (libreoffice-commits) wrote :

Michael Meeks committed a patch related to this issue.
It has been pushed to "libreoffice-5-0":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=a3a61471b0171a07a2dc38a5bbf1b51681ddb91a&h=libreoffice-5-0

tdf#93487 - protect GetFocus method call post dispose.

It will be available in 5.0.4.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.

Revision history for this message
In , Nils-smeds-w (nils-smeds-w) wrote :

I can confirm that the nightly build

Version: 5.0.4.0.0+
Build ID: 40cfb7780291a9ba5ca9be54371a2aa30db7a8eb
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:libreoffice-5-0, Time: 2015-10-28_00:26:20
Locale: en-US (en_US.utf8)

does not have the problem reported.

Revision history for this message
niggard (jakub-st-deactivatedaccount) wrote :
Revision history for this message
In , Momonasmon (momonasmon) wrote :

*** Bug 95678 has been marked as a duplicate of this bug. ***

Revision history for this message
niggard (jakub-st-deactivatedaccount) wrote :

Hello,
it's solved in Libreoffice v. 5.0.4.
more details: https://bugs.documentfoundation.org/show_bug.cgi?id=93487

It's good idea to patch package :)

Changed in libreoffice (Ubuntu):
assignee: nobody → Björn Michaelsen (bjoern-michaelsen)
importance: Undecided → High
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

5.0.4 hasnt been released yet. https://wiki.documentfoundation.org/ReleasePlan/5.0#5.0.4_release <- scheduled for Dec 14-20, 2015.

But yes, should SRU this one. Lets see if the 1:5.0.2-0ubuntu3 package in the wily upload queue will be through by then or if we bump it over then.

Changed in libreoffice (Debian):
status: Unknown → Confirmed
Changed in df-libreoffice:
importance: Unknown → High
status: Unknown → Fix Released
Changed in libreoffice (Debian):
status: Confirmed → Fix Released
Revision history for this message
In , Momonasmon (momonasmon) wrote :

*** Bug 96313 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Momonasmon (momonasmon) wrote :

*** Bug 96350 has been marked as a duplicate of this bug. ***

Changed in libreoffice (Ubuntu):
status: New → Triaged
Changed in libreoffice (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.