flathub / org.libreoffice.LibreOffice

https://flathub.org/apps/details/org.libreoffice.LibreOffice
30 stars 20 forks source link

strange behavier in Impress with a loaded video #21

Closed Lvaskz closed 6 years ago

Lvaskz commented 6 years ago

When upload a video in the slide shot and I move a vertical bar, the background app has a strange behavior. I made a video. Impress LO.mp4.zip The video has a flicker.

stbergmann commented 6 years ago
Lvaskz commented 6 years ago
Lvaskz commented 6 years ago

- Does it only happen if the LO Impress window is maximized? minimized or maximized windows has the same problem.

Lvaskz commented 6 years ago

- Recent versions of LO flatpak have --device=dri enabled. Does it also happen if you run LO with that disabled, flatpak run --nodevice=dri org.libreoffice.LibreOffice in a terminal?Same problem

stbergmann commented 6 years ago

I assume this is a problem in the underlying software stack that the LO flatpak can do little about. The LO flatpak, using the org.gnome.Platform flatpak runtime, always uses LO's GTK3 backend; your system's or an appimage LO may use a different backend, which might be one reason why you only experience the issue with the flatpak LO. Just in case: does this happen to sound familiar for LO's vclplug_gtk3, @caolanm, or for org.gnome.Platform in general, @alexlarsson?

caolanm commented 6 years ago

Possibly this is known as https://bugs.documentfoundation.org/show_bug.cgi?id=111850 or something similar, is there a /usr/lib*/gstreamer-1.0/libgstgtksink.so in the underlying runtime ?

stbergmann commented 6 years ago

"is there a /usr/lib*/gstreamer-1.0/libgstgtksink.so in the underlying runtime ?" no:

$ flatpak run --command=bash org.libreoffice.LibreOffice -c 'ls /usr/lib/gstreamer-1.0/libgst*sink.so' /usr/lib/gstreamer-1.0/libgstfbdevsink.so /usr/lib/gstreamer-1.0/libgstwaylandsink.so /usr/lib/gstreamer-1.0/libgstximagesink.so /usr/lib/gstreamer-1.0/libgstxvimagesink.so

caolanm commented 6 years ago

So I assume that means that in avmedia/source/gstreamer/gstplayer.cxx the pVideosink from gst_element_factory_make("gtksink"... is null and the fallback is used.

FWIW in fedora gstreamer1-plugins-bad-free-gtk contains the /usr/lib64/gstreamer-1.0/libgstgtk.so (seems I had the wrong name above anyway) which is the (wayland-aware) backend we default to.

That said, dunno if using that backend would actually solve this or not

stbergmann commented 6 years ago

"FWIW in fedora gstreamer1-plugins-bad-free-gtk contains the /usr/lib64/gstreamer-1.0/libgstgtk.so (seems I had the wrong name above anyway) which is the (wayland-aware) backend we default to."

That one is available in the flatpak alright:

$ flatpak run --command=bash org.libreoffice.LibreOffice -c 'ls /usr/lib/gstreamer-1.0/libgstgtk.so' /usr/lib/gstreamer-1.0/libgstgtk.so

caolanm commented 6 years ago

Yeah, so that's as good as it gets then and the remaining issues are the same as the upstream bug.

stbergmann commented 6 years ago

So closing as a duplicate of upstream https://bugs.documentfoundation.org/show_bug.cgi?id=111850 "UI breaks after scrolling somewhere while playing video".