LibreOffice doesn't seem to have a right click context-menu

Bug #1734132 reported by Muelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
New
Undecided
Unassigned

Bug Description

Steps to reproduce:

    1) Run
        libreoffice -env:UserInstallation=file:///tmp/tmp_profile

    2) Create a new writer document.

    3) Type some silly stuff

    4) Right click on a word

I'd expect a context menu to be shown, but there is none.
The mouse cursor changes though as if the context menu was shown. Pressing Escape make the cursor return to the normal caret.

The attached screenshot is not really telling much. You can see how there is no context menu although I've just right clicked. The mouse cursor changed.

The about dialog shows
Version: 5.4.2.2
Build ID: 1:5.4.2-0ubuntu0.17.10.1
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk3;
Locale: en-US (en_US.UTF-8); Calc: group

This bug does not show when using LibreOffice's x11 backend, i.e. when run with env SAL_USE_VCLPLUGIN=gen.

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: libreoffice-common 1:5.4.2-0ubuntu0.17.10.1
ProcVersionSignature: Ubuntu 4.13.0-17.20-generic 4.13.8
Uname: Linux 4.13.0-17-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.5
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Nov 23 15:05:24 2017
InstallationDate: Installed on 2017-10-13 (40 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Beta amd64 (20171012)
PackageArchitecture: all
SourcePackage: libreoffice
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :

Not seeing that in my wayland session (i.e. the context menu does show up as expected).

Does this appear to be a regression introduced by 5.4.2 in artful-proposed? I.e. do you get the context menu if you downgrade to version 1:5.4.1-0ubuntu1 ?

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :

I have trouble downgrading:

➜ ~>apt-cache policy libreoffice
libreoffice:
  Installed: (none)
  Candidate: 1:5.4.2-0ubuntu0.17.10.1
  Version table:
     1:5.4.2-0ubuntu0.17.10.1 500
        500 http://de.archive.ubuntu.com/ubuntu artful-proposed/universe amd64 Packages
     1:5.4.1-0ubuntu1 500
        500 http://de.archive.ubuntu.com/ubuntu artful/universe amd64 Packages
➜ ~>sudo apt-get install --reinstall libreoffice=5.4.1-0ubuntu1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '5.4.1-0ubuntu1' for 'libreoffice' was not found
➜ ~>

FTR: I am connected to an second monitor:

➜ ~>xrandr
Screen 0: minimum 320 x 200, current 5760 x 2160, maximum 8192 x 8192
XWAYLAND0 connected 1920x1080+0+1080 (normal left inverted right x axis y axis) 310mm x 170mm
   1920x1080 59.96*+
XWAYLAND21 connected 3840x2160+1920+0 (normal left inverted right x axis y axis) 600mm x 340mm
   3840x2160 59.98*+
➜ ~>

Revision history for this message
Olivier Tilloy (osomon) wrote :

Try:

    sudo apt install --reinstall libreoffice=1:5.4.1-0ubuntu1

Does the context menu show up when on the primary monitor, by any chance?

Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :

meh.

➜ ✗> sudo apt install --reinstall libreoffice=1:5.4.1-0ubuntu1

[sudo] password for muelli:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libreoffice : Depends: libreoffice-core (= 1:5.4.1-0ubuntu1) but 1:5.4.2-0ubuntu0.17.10.1 is to be installed
               Recommends: fonts-crosextra-caladea but it is not going to be installed
               Recommends: fonts-crosextra-carlito but it is not going to be installed
               Recommends: fonts-dejavu but it is not going to be installed
               Recommends: fonts-linuxlibertine but it is not going to be installed
               Recommends: fonts-sil-gentium-basic but it is not going to be installed
               Recommends: libreoffice-librelogo but it is not going to be installed
               Recommends: libreoffice-nlpsolver but it is not going to be installed
               Recommends: libreoffice-report-builder but it is not going to be installed
               Recommends: libreoffice-script-provider-bsh but it is not going to be installed
               Recommends: libreoffice-script-provider-js but it is not going to be installed
               Recommends: libreoffice-script-provider-python but it is not going to be installed
               Recommends: libreoffice-sdbc-postgresql but it is not going to be installed
               Recommends: libreoffice-wiki-publisher but it is not going to be installed
               Recommends: libreoffice-java-common (>= 1:5.4.1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Can I somehow tell it that it's okay to install the older versions without having to type in every single app?

I don't see the context menu on the laptop's screen either.

But I've noticed funny behaviour in other (Gtk2) apps:
Sometimes when I want the "normal" menu from the menu bar to appear, it shows up on the very top of the screen. I hope the screenshot shows what I mean. If it happens, then I can try again and the menu appears normally.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Yeah, definitely something wrong with menus there…

I'm afraid you'll have to specify all the packages with their corresponding versions. Try the following:

sudo apt install libreoffice=1:5.4.1-0ubuntu1 libreoffice-core=1:5.4.1-0ubuntu1 libreoffice-base=1:5.4.1-0ubuntu1 libreoffice-calc=1:5.4.1-0ubuntu1 libreoffice-draw=1:5.4.1-0ubuntu1 libreoffice-impress=1:5.4.1-0ubuntu1 libreoffice-math=1:5.4.1-0ubuntu1 libreoffice-report-builder-bin=1:5.4.1-0ubuntu1 libreoffice-writer=1:5.4.1-0ubuntu1 libreoffice-avmedia-backend-gstreamer=1:5.4.1-0ubuntu1 libreoffice-base-core=1:5.4.1-0ubuntu1 libreoffice-base-drivers=1:5.4.1-0ubuntu1 python3-uno=1:5.4.1-0ubuntu1

Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :

FTR: when I'm not connected to the second monitor, which I have set to 200% scaling, I get the context menu as expected.

Revision history for this message
Olivier Tilloy (osomon) wrote :

That's a very good clue. So I assume if you set it to 100% scaling you get the menu as expected?
Can you try context menus in other applications (e.g. firefox, chromium-browser, gedit, and maybe a Qt-based application) and report here how they behave?

Also, were you able to downgrade and still observe the issue?

Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :

Downgrading libreoffice-gtk3 to

Version: 5.4.2.2
Build ID: 1:5.4.2-0ubuntu0.17.10.1
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk3;
Locale: en-US (en_US.UTF-8); Calc: group

exposes the same behaviour.

Without scaling, it still behaves weird. The context menu is way off, like half a screen away from where I right-clicked. I hope it's visible in the attached screenshot.

Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :
Download full text (9.2 KiB)

wait a second. That string doesn't look right, i.e. Version: 5.4.2.2 does not look like it's been downgraded. I expected 5.4.1. But I can't make it show that. It seems that the libreoffice-common package is defining that version string. That is indeed a newer version here for me. Downgrading that seems to incur some other trouble:

The following packages have unmet dependencies:
 libreoffice-common : Depends: libreoffice-style-default or
                               libreoffice-style

I've done the following:

➜ ~>sudo apt install libreoffice=1:5.4.1-0ubuntu1 libreoffice-core=1:5.4.1-0ubuntu1 libreoffice-base=1:5.4.1-0ubuntu1 libreoffice-calc=1:5.4.1-0ubuntu1 libreoffice-draw=1:5.4.1-0ubuntu1 libreoffice-impress=1:5.4.1-0ubuntu1 libreoffice-math=1:5.4.1-0ubuntu1 libreoffice-report-builder-bin=1:5.4.1-0ubuntu1 libreoffice-writer=1:5.4.1-0ubuntu1 libreoffice-avmedia-backend-gstreamer=1:5.4.1-0ubuntu1 libreoffice-base-core=1:5.4.1-0ubuntu1 libreoffice-base-drivers=1:5.4.1-0ubuntu1 python3-uno=1:5.4.1-0ubuntu1 libreoffice-gtk3=1:5.4.1-0ubuntu1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.13.0-15 linux-headers-4.13.0-15-generic
  linux-image-4.13.0-15-generic linux-image-extra-4.13.0-15-generic
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  fonts-open-sans libreoffice-grammarcheck myspell-dictionary
  openclipart2-libreoffice | openclipart-libreoffice pstoedit unixodbc
  libreoffice-officebean libreoffice-report-builder libjtds-java
  libreoffice-mysql-connector | libmyodbc | libmysql-java
  libreoffice-sdbc-postgresql | odbc-postgresql | libpg-java libsqliteodbc
  | tdsodbc | mdbtools libreofficekit-data
Recommended packages:
  libreoffice-gnome | libreoffice-kde libreoffice-ogltrans
  libreoffice-report-builder libreoffice-sdbc-postgresql
  libreoffice-sdbc-hsqldb
The following packages will be REMOVED:
  libreoffice-gnome
The following packages will be DOWNGRADED:
  libreoffice libreoffice-avmedia-backend-gstreamer libreoffice-base
  libreoffice-base-core libreoffice-base-drivers libreoffice-calc
  libreoffice-core libreoffice-draw libreoffice-gtk3 libreoffice-impress
  libreoffice-math libreoffice-report-builder-bin libreoffice-writer
  python3-uno
0 upgraded, 0 newly installed, 14 downgraded, 1 to remove and 15 not upgraded.
Need to get 54,3 MB/54,5 MB of archives.
After this operation, 230 kB disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://de.archive.ubuntu.com/ubuntu artful/main amd64 python3-uno amd64 1:5.4.1-0ubuntu1 [122 kB]
Get:2 http://de.archive.ubuntu.com/ubuntu artful/main amd64 libreoffice-writer amd64 1:5.4.1-0ubuntu1 [8.085 kB]
Get:3 http://de.archive.ubuntu.com/ubuntu artful/main amd64 libreoffice-math amd64 1:5.4.1-0ubuntu1 [386 kB]
Get:4 http://de.archive.ubuntu.com/ubuntu artful/main amd64 libreoffice-draw amd64 1:5.4.1-0ubuntu1 [2.618 kB]
Get:5 http://de.archive.ubuntu.com/ubuntu artful/main amd64 libreoffice-impress amd64 1:5.4.1-0ubuntu1 [906 kB]
Get:6 http://de.archive.ubuntu.com/ubuntu artful/universe amd64 libreoffice amd64 1:5.4.1...

Read more...

Revision history for this message
Olivier Tilloy (osomon) wrote :

Let's try a different approach for a clean downgrade:

    sudo apt remove "libreoffice*"
    sudo apt autoremove
    sudo apt install libreoffice=1:5.4.1-0ubuntu1

Then try and reproduce the issue initially reported here, and let me know what you're seeing. Thanks!

Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :

I'm seeing the following:

➜ ~>sudo apt install libreoffice=1:5.4.1-0ubuntu1

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libreoffice : Depends: libreoffice-core (= 1:5.4.1-0ubuntu1) but 1:5.4.2-0ubuntu0.17.10.1 is to be installed
               Recommends: fonts-dejavu but it is not going to be installed
               Recommends: libreoffice-gnome but it is not going to be installed or
                           libreoffice-kde but it is not going to be installed
               Recommends: libreoffice-librelogo but it is not going to be installed
               Recommends: libreoffice-nlpsolver but it is not going to be installed
               Recommends: libreoffice-ogltrans but it is not going to be installed
               Recommends: libreoffice-report-builder but it is not going to be installed
               Recommends: libreoffice-script-provider-bsh but it is not going to be installed
               Recommends: libreoffice-script-provider-js but it is not going to be installed
               Recommends: libreoffice-script-provider-python but it is not going to be installed
               Recommends: libreoffice-sdbc-postgresql but it is not going to be installed
               Recommends: libreoffice-wiki-publisher but it is not going to be installed
               Recommends: libreoffice-java-common (>= 1:5.4.1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Sorry, I should have tested that first before sharing the instructions…
There you go, with those you should be able to downgrade:

    sudo apt remove "libreoffice*"
    sudo apt autoremove
    sudo apt install \
        libreoffice=1:5.4.1-0ubuntu1 \
        libreoffice-avmedia-backend-gstreamer=1:5.4.1-0ubuntu1 \
        libreoffice-base=1:5.4.1-0ubuntu1 \
        libreoffice-base-core=1:5.4.1-0ubuntu1 \
        libreoffice-base-drivers=1:5.4.1-0ubuntu1 \
        libreoffice-core=1:5.4.1-0ubuntu1 \
        libreoffice-calc=1:5.4.1-0ubuntu1 \
        libreoffice-common=1:5.4.1-0ubuntu1 \
        libreoffice-draw=1:5.4.1-0ubuntu1 \
        libreoffice-gtk3=1:5.4.1-0ubuntu1
        libreoffice-impress=1:5.4.1-0ubuntu1 \
        libreoffice-math=1:5.4.1-0ubuntu1 \
        libreoffice-report-builder-bin=1:5.4.1-0ubuntu1 \
        libreoffice-style-elementary=1:5.4.1-0ubuntu1 \
        libreoffice-style-galaxy=1:5.4.1-0ubuntu1 \
        libreoffice-style-tango=1:5.4.1-0ubuntu1 \
        libreoffice-writer=1:5.4.1-0ubuntu1 \
        python3-uno=1:5.4.1-0ubuntu1

Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :

I've downgraded successfully, the about dialogue shows

Version: 5.4.1.2
Build ID: 1:5.4.1-0ubuntu1
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk3;
Locale: en-US (en_US.UTF-8); Calc: group

and at first I thought the bug was not present, because it worked as it should.
But then I tried again and it behaved the same as reported here in this bug.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Thanks! So this is not a regression introduced by 5.4.2, that's good to know.

Changed in libreoffice (Ubuntu):
status: Incomplete → New
tags: added: bot-stop-nagging
Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :
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.