Bug 1376976

Summary: gtk3: Multiple cells selection freezes LibreOffice Calc when running autokey
Product: [Fedora] Fedora Reporter: Eric Lavarde <elavarde>
Component: libreofficeAssignee: Caolan McNamara <caolanm>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 24CC: caolanm, dtardon, elavarde, erack, mstahl, rmj, sbergman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libreoffice-5.1.5.2-8.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-10 15:15:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eric Lavarde 2016-09-17 06:51:58 UTC
Description of problem:
Selecting more than one cell freezes Calc and I have to quit, hopefully not loosing unsaved work. This makes it unusable.

Version-Release number of selected component (if applicable):
$ rpm -qa | grep -e libreoffice-gtk -e libreoffice-calc -e ^gtk[23] | sort
gtk2-2.24.31-1.fc24.i686
gtk2-2.24.31-1.fc24.x86_64
gtk2-engines-2.20.2-11.fc24.x86_64
gtk3-3.20.9-1.fc24.x86_64
libreoffice-calc-5.1.5.2-6.fc24.x86_64
libreoffice-gtk2-5.1.5.2-6.fc24.x86_64
libreoffice-gtk3-5.1.5.2-6.fc24.x86_64

How reproducible:
Almost always

Steps to Reproduce:
1. Open Calc
2. Select multiple cells

Actual results:
Calc freezes. It's kind of still alive as I can close it and, if I have unsaved changes, there will be a dialog to save my changes (sometimes it's black and unusable though). Sometimes I can escape the freeze by clicking multiple times fast in the selection, but it's seldom.

Expected results:
Calc doesn't freeze and I can do something with the selection.

Additional info:

The issue seems related to Bug 1373933 but I'm using F24 and shouldn't be impacted by the referenced commit (unless it's been backported). Further I can't reproduce it using Draw and selecting objects.

Anyway, if I call 'SAL_USE_VCLPLUGIN=gtk libreoffice --calc' the problem is gone, so it seems also like a gtk3-specific issue.

The problem did already exist a while ago but I'm pretty sure that it went away already before the summer and has come back somewhere in-between (but I don't use Calc regularly at home).

I don't think it's relevant but I'm using KDE (latest version F24).

Comment 1 Eric Lavarde 2016-09-17 08:34:47 UTC
I just discovered that I can break the spel... sorry the freeze, by selecting somewhere else.

Comment 2 Caolan McNamara 2016-09-19 08:57:37 UTC
With a blank spreadsheet I can make multiple selections without any apparent problem.

Is there any foul clipboard grabber extension installed like clipit ?

(And I presume because its not mentioned that its not the KDE backend that's installed, i.e. no libreoffice-kde

Comment 3 Eric Lavarde 2016-09-20 06:32:11 UTC
I couldn't check but:

clipit -> if it's not installed by default, I don't have it. In a similar direction, I have Autokey in action, but I also have it at work (CSB 7.2 more or less standard) and there is no issue.
libreoffice-kde -> if it's not installed by default, I don't have it (whatever it is or does).

As a side remark, I have the impression that a full spreadsheet tends more to the issue than an empty one, but the issue also seems to fluctuate with time, so it might be due to this.

Could it be related to a graphic driver issue? I have a Skylake CPU/GPU and it wouldn't be the first time that it shows that the Intel driver isn't up to par...
This said I also have a Skylake CPU/GPU at work...

Comment 4 Eric Lavarde 2016-09-20 06:34:14 UTC
Sorry, perhaps to clarify: the issue is not with making multiple selections, the issue is with a single selection of multiple cells.

Comment 5 Caolan McNamara 2016-09-20 08:26:35 UTC
If I install autokey then my load goes through the roof when I make a selection, so that's the trigger.

Comment 6 Caolan McNamara 2016-09-20 09:35:10 UTC
might have been too quick to blame autokey, but there is a selection problem

Comment 7 Caolan McNamara 2016-09-20 11:02:33 UTC
This might be the same underlying problem as bug 1362451, lets see if the fix there will make a difference here

Comment 8 Caolan McNamara 2016-09-27 13:37:31 UTC
*** Bug 1376975 has been marked as a duplicate of this bug. ***