pop-os / beta

Pop!_OS Beta
359 stars 19 forks source link

libreoffice 7.2.2 apps installed by default from .deb not starting #324

Open juanejot opened 2 years ago

juanejot commented 2 years ago

How did you upgrade to 21.10? (Fresh install / Upgrade)

Upgrade

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

apt list libreoffice -i reveals the following default installs:

libreoffice-base-core/impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 amd64 [installed,automatic] libreoffice-calc/impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 amd64 [installed] libreoffice-common/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed,automatic] libreoffice-core/impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 amd64 [installed,automatic] libreoffice-draw/impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 amd64 [installed,automatic] libreoffice-gnome/impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 amd64 [installed,automatic] libreoffice-gtk3/impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 amd64 [installed,automatic] libreoffice-help-common/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed,automatic] libreoffice-help-de/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-help-en-gb/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-help-en-us/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-help-es/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-help-fr/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-help-it/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-help-ja/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-help-pt-br/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-help-pt/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-help-ru/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-help-zh-cn/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-help-zh-tw/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-impress/impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 amd64 [installed,automatic] libreoffice-l10n-ar/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-l10n-de/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-l10n-en-gb/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-l10n-en-za/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-l10n-es/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-l10n-fr/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-l10n-it/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-l10n-ja/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-l10n-pt-br/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-l10n-pt/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-l10n-ru/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-l10n-zh-cn/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-l10n-zh-tw/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed] libreoffice-math/impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 amd64 [installed,automatic] libreoffice-style-colibre/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed,automatic] libreoffice-style-elementary/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed,automatic] libreoffice-style-yaru/impish-updates,impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 all [installed,automatic] libreoffice-writer/impish-updates,now 1:7.2.2-0ubuntu0.21.10.1 amd64 [installed]

If flatpak of libreoffice 7.2.3.2 is installed from Pop!_Shop, apps such as LibreOffice Writer start & show version 7.2.3.2.

Issue/Bug Description: Attempting to start LibreOffice Writer and LibreOffice Calc (others unchecked) from either the Application Picker or by double-clicking an .odt file make app hang in the background. When brought to the foreground of the Workspace, are blank (as in, no window, but an orange "X" button in the upper left if hovered over) and a dialog box stating it is taking too long to respond & the user can either Force Quit or Wait, comes up. This dialog box often fails on first attempt to actually Force Quit, and "blank" app has to be selected in Workspace again for it to come up, where upon second selection of "Force Quit," it tends to work. Background-hung app often anecdotally seems to cause fans to ramp up over time, but specific resource utilization not investigated yet.

NOTE: This issue seems to affect an old IC2D T9900/GeForce 9400M/9600M GT laptop running the Intel (not Nvidia) build of Pop!_OS 21.10 beta with kernel 5.15.5 & kelebek333's nvidia-legacy build of nvidia-340, version 340.108-4lmtrhisute2 from launchpad.net. Other apps (like Firefox) seem to work fine/have good-enough graphical performance under this configuration. Perhaps the org.freedesktop.Platform.GL.nvidia-340-108 flatpak automatically installed as a dependency for other flatpak packages, replaces or augments the functionality of the .deb ppa's install of nividia-340 enough to let LibreOffice run as expected, where the nvidia-340 .deb install alone won't let the default .deb install of LibreOffice draw to the GUI effectively? In any event, this issue does not affect a 9700K/RX 580 rig running the same version of Pop!_OS & the kernel (no Nvidia drivers, as unnecessary) & the default .deb install of LibreOffice 7.2.2.

Steps to reproduce (if you know): As above: attempt to start .deb-default-installed LibreOffice 7.2.2 app from either Application Switcher icon or by double-clicking an .odt file.

Expected behavior: Open to tip of the day & new empty file, or last edited point in selected file, as is possible with flatpak-installed 7.2.3.2 app.

Other Notes: The workaround of installing the LibreOffice flatpak only works on first attempt if LibreOffice .deb packages remain installed, presumably because while the flatpak-installed apps initially show up in "Library Home" pane of Application Picker, they get somehow superseded by those .deb-installed apps in the "Office" Pane & soon disappear; icons only attempt to start 7.2.2 .deb-installed apps and hang. removeing and reinstalling (did not try reinstall) a .deb-installed app package (I tried LibreOffice Writer) does not seem to have an effect; package installation is apparently not corrupted, though it's conceivable that .conf file may be. I'd systematically remove (not --purge, yet) all the .deb-installed packages listed above before installing the flatpak again to see if the flatpak apps' icons take over the "Office" pane in Application Switcher & I can just move functionally on from there, but I need to scrub the version number & other info away from their package names first; a project for when this awk command n00b has time to devote to it. Hope to test said functionality of that method & update whether effective in follow-up comment. (retaining package names & .conf files in case I choose to reinstall to stock, later)

juanejot commented 2 years ago

Confirmed: removing the libreoffice* .deb packages listed in the opening comment above, and replacing them with the LibreOffice flatpak does allow me to see LibreOffice app icons in the "Library Home" pane of the Application Picker, and manually dragging them into the "Office" Pane does allow them to persist and continue to work there. And as above, the flatpak works as expected on my laptop (no need for .deb->flatpak change on my desktop).

juanejot commented 2 years ago

Related only by workflow, likely not by software (more likely by NextCloud Online Accounts integration in Files/Nautilus), .odt files on a NextCloud share fail to load with no announcement or other output. Copying said .odt file to the local drive opens it up fine.

Let me know if you'd like me to create a separate issue for this finding.

juanejot commented 2 years ago

Update, though no resolution: while flatpak yesterday or so updated their LibreOffice suite to 7.2.4.1, ubuntu has apparently backed their .deb packages of it down to 1:7.2.1-0ubuntu3 (which I take as a drop from 7.2.2 to 7.2.1). Removing the flatpak and installing the 7.2.1 install candidates as apt offered did not address the issues described above, so I removed them again and reinstalled the flatpak, which continues to work as expected. This may therefore be an issue that goes all the way to at least ubuntu via .deb packaging, though again, only as I've seen on my laptop (have not removed/reinstalled anything on my desktop rig today, as it's working fine).

jacobgkau commented 2 years ago

ubuntu has apparently backed their .deb packages of it down to 1:7.2.1-0ubuntu3

I'm not seeing the issue on some test machines, and I also don't see any mention of Ubuntu pulling an update, but I do see that Ubuntu currently has a phased update being released for 7.2.3:

Screenshot from 2021-12-07 13-07-43

Ubuntu's packaging website currently shows 1:7.2.1-0ubuntu3 available in the base repository, and 1:7.2.2-0ubuntu0.21.10.1 for the updates repository. Ubuntu's dashboard for tracking phased updates does not list LibreOffice right now, even though I can see the phased update in apt on the machine.

I don't think this phased update is related to the issue you're experiencing, but I wanted to mention this to make you aware of the phased update system, in case it's useful while troubleshooting and tracking the issue. I wouldn't think your system would downgrade from 7.2.2 to 7.2.1 just because 7.2.3 is being phased out and hasn't reached you yet, but I have limited knowledge and insight into these phased updates in general right now.

juanejot commented 2 years ago

Thanks for your response, @jacobgkau ! It looks like Ubuntu has gone ahead and updated to 1:7.2.3-0ubuntu0.21.10.1 in impish-updates, but as you expected, that didn't address my (probably very particular on my laptop) issue. Reinstalling the 7.2.4.1 flatpak returned it to functionality.

I wonder whether, as with their decision to default install Firefox via snap, Ubuntu may be moving further away from .debs for the standard set of pre-installed apps? In any event, I support System76's decision to use .deb & flatpak as appropriate. Glad too that the Pop!_Shop lists GUI app package alternatives; it helped me in the case of LibreOffice!

I take it though that if this is an Ubuntu issue with their .deb versions, that I should close it within Pop!_OS 21.10 beta issues?

jacobgkau commented 2 years ago

I take it though that if this is an Ubuntu issue with their .deb versions, that I should close it within Pop!_OS 21.10 beta issues?

I wouldn't necessarily say that, unless the issue also occurs on Ubuntu on the same machine. It is unlikely Pop!_OS can provide a resolution unless the specific cause or a way to reproduce the issue on other machines is known, though.

juanejot commented 2 years ago

Oof; the irony is that I formerly had Ubuntu installed on a separate partition of the same machine's main drive. Trying to reinstall over the past couple of days to determine whether there is similar .deb-installed LibreOffice behavior on vanilla Ubuntu, has gotten me as far as a blank purple screen before login (confirmed by dropping to text prompt: due to nouveau not being up to the task; may try to install legacy nvidia-340 as I have on Pop!_OS partition, which admittedly may contribute to the issue if LibreOffice doesn't show properly & I won’t hold System76 to fixing as they aren’t kelebek333 at LaunchPad, and in turn they aren’t The Document Foundation). I may keep trying, will update if I have any more of an answer.

juanejot commented 2 years ago

OK, after waiting for Ubuntu 21.10 (on a separate partition of the main drive in the same machine) to start up its snap-installed Firefox 95, here is the answer: the default .deb-installed LibreOffice components (version 1:7.2.3-0ubuntu0.21.10.1) seem to start up & show LibreOffice Writer & Calc properly (the only ones checked on Pop!_OS 21.10 beta). All .debs and snaps have been updated on Ubuntu. So it may be something in how Pop!_OS displays the .deb installation of LibreOffice on my IC2D T9900/GeForce 9400M/GeForce 9600M GT running a legacy version of nvidia-340 (on both OSes, as nouveau won't even draw the login screen on Ubuntu, as above).

I totally understand if my old system's not a priority for System76; the LibreOffice flatpak working and being a newer version works for me. Just so you know of that.

I have a related issue with Online Accounts working with web-based logins on Ubuntu 21.04 final and 21.10 final, but not on Pop!_OS under nvidia-340 (in either Pop!_OS 21.04 final or in Pop!_OS 21.10 beta), but will post separately if you think it's worth investigating. Again, totally understand if supporting a machine that has to run legacy nvidia drivers to be somewhat useful is outside your highest-priority scope, provided I can get a workaround to work.

juanejot commented 2 years ago

Follow-up to the last paragraph of my last comment: making sure to flatpak override --user --filesystem=[the url to your connected Online Account, with no suffix after ":"] works. Research the flatpak override command before using it though, and do so at your own risk & discretion.