Bug 126886 - Calc window contents are not visible when opening a CSV in Compiz from Calc 6.3
Summary: Calc window contents are not visible when opening a CSV in Compiz from Calc 6.3
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
6.4.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 134615 138299 (view as bug list)
Depends on:
Blocks: CSV
  Show dependency treegraph
 
Reported: 2019-08-13 15:31 UTC by Gabriel
Modified: 2023-10-22 18:22 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Reproducing the issue (1.57 MB, video/mp4)
2019-08-13 15:32 UTC, Gabriel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel 2019-08-13 15:31:05 UTC
Description:
After opening a CSV in Calc (Text import) instead of opening the main Calc window, the space where the window is supposed to be, shows a "frozen" image of whatever was under the window before opening it. Calc menus and buttons still work, but nothing is visible. It'a a bit hard to explain, but the attached video is self explanatory.

The only error I get is:

(soffice:28076): Gtk-WARNING **: 12:06:36.708: infinite surface size not supported


I'm using Ubuntu MATE 18.04
- This happens when using Compiz, but not when using Compton
- This happens in LO 6.2 & 6.3 but not in LO 6.1.5
- This happens when Calc's window starts maximized, but not when it starts unmaximized
- This happens when using libreoffice-gtk3 but not when using libreoffice-gtk2


Steps to Reproduce:
1. Enable Compiz
2. Open a CSV file with Calc
3. Click "OK" on the "Text import" window

Actual Results:
Whatever was on the screen stays frozen, as if it were a static image, and the Calc window were invisible. Moving the mouse around and clicking seems to open Calc menus.

Expected Results:
Calc's main window should open normally


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 6.3.0.4
Build ID: 1:6.3.0-0ubuntu0.18.04.1~lo2
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: es-AR (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 Gabriel 2019-08-13 15:32:04 UTC
Created attachment 153353 [details]
Reproducing the issue
Comment 2 Jean-Baptiste Faure 2019-09-08 16:40:35 UTC
Not reproducible with version 6.3.3.0+ built at home under Ubuntu/Gnome 18.04  x86-64 with GTK3 backend.

Best regards. JBF
Comment 3 Timur 2019-09-12 08:43:19 UTC
You write: 2. Open a CSV file with Calc
But in video you open via double click. Does it also happen with File-Open?
Does it happen with other CSV files or any other files?
How did you install LO 6.2 and 6.3, via PPA or debs? 
Seems like some integration issue.
Comment 4 Gabriel 2019-09-12 16:41:38 UTC
(In reply to Timur from comment #3)
> You write: 2. Open a CSV file with Calc
> But in video you open via double click. Does it also happen with File-Open?
If I open Calc and then go to File > Open, the CSV opens correctly. BUT if I leave that file open and open a second file the same way, the issue happens again.

I can also reproduce the issue by opening the CSV through the CLI with the command:
libreoffice aaa.csv

Something else I just discovered: if Calc is already open with a blank spreadsheet, and I open a CSV in the same way as the steps to reproduce, it opens correctly.

> Does it happen with other CSV files or any other files?
It happens with any CSV file.
I have not seen it happen with any other formats. Although CSV is the only one I use that uses the text import feature.

> How did you install LO 6.2 and 6.3, via PPA or debs? 
Via PPA: https://launchpad.net/~libreoffice/+archive/ubuntu/ppa



I also experienced this issue when I had Ubuntu 16.04 + Gnome Flashback + Compiz.

I just tested on another machine with Ubuntu MATE 18.04 and a clean Compiz profile, and the issue also happens there.

If it helps, this person also has the same issue (that's me in the answer): https://askubuntu.com/questions/1140156/calc-shows-title-bar-only-when-opening-csv-in-compiz/1141598
Comment 5 QA Administrators 2019-09-13 02:51:44 UTC Comment hidden (obsolete)
Comment 6 Ηλίας Ηλιάδης 2019-11-24 17:25:09 UTC
Not sure if related. Came here because of the "infinite surface size not supported" warning.

I had the similar issues (cinnamon freezes but can move mouse) with a personal python3 (3.6) project using Gtk (3.26.1) in Ubuntu 18.04 (64bit) and there was the same warning. Project was not related to LibreOffice.

I found (my) problem: I had a Gtk.TextView in a Gtk.Box directly and not inside a Gtk.ScrolledWindow. There was no problem for small text, but in big texts the whole system freezes although I could move the mouse.
After I inserted the Gtk.TextView inside a Gtk.ScrolledWindow the problem solved. 

Since the report is about a Gtk 3 environment probably there exists something similar. Example: a textview-like widget that tries to occupy more surface than it "can". Or the order in which the widgets "realize" themselves.

(The problem does not exists in my Calc (LO 6.0.7.3). But I also do not use Compiz So this is not a declaration that the problem does not really exist.
Comment 7 Xisco Faulí 2019-12-26 15:28:22 UTC
Hello Gabriel,
Does it work if you launch LibreOffice from commandline with 'SAL_USE_VCLPLUGIN=gen soffice' ?
Comment 8 Gabriel 2019-12-30 18:35:05 UTC
Hello Xisco,

It does work indeed if I open it with that command
Comment 9 Xisco Faulí 2020-01-23 12:58:47 UTC
(In reply to Gabriel from comment #8)
> Hello Xisco,
> 
> It does work indeed if I open it with that command

The was an issue related to CSV dialog which was recently fixed in LibreOffice 6.3.4
Could you please try with LibreOffice 6.3.4 from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 10 Gabriel 2020-01-23 16:43:38 UTC
I'm using 6.3.4.2 from the PPA and the issue still occurs.
Comment 11 Timo Jyrinki 2020-04-15 07:42:44 UTC
Still happens with LibreOffice 6.4.2 from PPA https://launchpad.net/~libreoffice/+archive/ubuntu/libreoffice-6-4

Basically libreoffice --calc works the first time, the second time there's the warning about infinite surface size and static image copied from elsewhere is shown instead of Calc. rm -rf ~/.config/libreoffice and it again works, but only once (just opening, closing and opening again triggers the problem).

Using GNOME Flashback (Compiz) session on Ubuntu 18.04. Maybe easiest to install with: apt install gnome-flashback compiz (need to reboot or restart gdm for new session types to appear)

I can only debug this machine remotely and rarely, and there seems to be variations of this behavior. For example I tried to fix the problem with stock 18.04's LibreOffice (6.0.7) by upgrading to the PPA, and it seemed to fix the problem. It was possible to open many files for some days.

The exact details might be related to the multi monitor setup in use, which display the office opens on, or for example if libreoffice was made full screen or windowed before closing. It's still a mystery how the behavior can be triggered from "outside" LibreOffice ie something changes and then even removing .config/libreoffice does not make it functional anymore for more than one time or anything else that comes to mind.

I've now asked the user to switch to GNOME Flashback (Metacity) instead of Compiz and trying out like that now.
Comment 12 Buovjaga 2020-06-20 11:28:07 UTC
Multiple confirmations, so setting to NEW. Maybe it will be determined to be NOTOURBUG later.
Comment 13 Jarosław Rafa 2020-07-08 17:42:43 UTC
Happens to me in Ubuntu 20.04 with Compiz as well - even filed a separate bug #134615 as I didn't know about this one.
Comment 14 Jarosław Rafa 2020-07-08 17:43:49 UTC
*** Bug 134615 has been marked as a duplicate of this bug. ***
Comment 15 Jarosław Rafa 2021-02-08 16:33:30 UTC
May be related to #125543 ?
Comment 16 Gabriel 2021-02-08 16:53:53 UTC
Could be, but they don't mention anything about the "invisible window", nor that it's specific to Compiz.

Status update: the bug keeps happening in LO 7.0.4
Comment 17 Jarosław Rafa 2021-02-08 20:37:17 UTC
But the "invisible" window, when unmaximized, turns into zero-size window mentioned in bug 125543. So they may be somehow related. It may be that during opening a CSV file while Calc window is maximized it's size is internally changed to 0 and this causes both the "invisible" window (it somehow still remembers the maximized state, but due to zero size nothing is shown) and the zero size window after unmaximizing.
Comment 18 Buovjaga 2021-07-29 11:56:59 UTC
*** Bug 138299 has been marked as a duplicate of this bug. ***
Comment 19 Thomas Mayer 2022-04-22 15:35:37 UTC
I can confirm this issue for 

Ubuntu 18.04 up-to-date
Kernel: Linux lat61 5.4.0-109-generic #123~18.04.1-Ubuntu SMP Fri Apr 8 09:48:52 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

LO Build-ID: 1:6.0.7-0ubuntu0.18.04.11
LibreOffice Version: 6.0.7.3

With 

metacity 1:3.28.0-1ubuntu0.1
compiz 1:0.9.13.1+18.04.20180302-0ubuntu1


Please have a look at: https://bugs.launchpad.net/unity-linux/+source/libreoffice/+bug/1854183

The bug is confirmed by multiple users and e.g. calc not showing up (while writer does work) occurs sporadically, when ~/.config/libreoffice/4/user/registrymodifications.xcu has values which lead to the problem.

To work around this problem, I had to edit this file for calc to work again. In my case, I copied the resolution value from the TextDocument entry to the SpreadsheetDocument entry.

before:

<item oor:path="/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['com.sun.star.sheet.SpreadsheetDocument']"><prop oor:name="ooSetupFactoryWindowAttributes" oor:op="fuse"><value>1920,40,717,27;5;1920,40,1920,1040;</value></prop></item>
<item oor:path="/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['com.sun.star.text.TextDocument']"><prop oor:name="ooSetupFactoryWindowAttributes" oor:op="fuse"><value>1184,40,735,83;5;1920,40,1920,1040;</value></prop></item>

after:

<item oor:path="/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['com.sun.star.sheet.SpreadsheetDocument']"><prop oor:name="ooSetupFactoryWindowAttributes" oor:op="fuse"><value>1184,40,735,83;5;1920,40,1920,1040;</value></prop></item>
<item oor:path="/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['com.sun.star.text.TextDocument']"><prop oor:name="ooSetupFactoryWindowAttributes" oor:op="fuse"><value>1184,40,735,83;5;1920,40,1920,1040;</value></prop></item>

The bug seems to be that resolution values are stored in ~/.config/libreoffice/4/user/registrymodifications.xcu which then lead to the "infinite surface size not supported" warning (and calc not showing up).

In my case, an (up to) three monitor setup with multiple resulutions (or usable resolutions because of the bars for one main screen) might have triggered this whole issue from one day to the other and for no apparent reason.