ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.77k stars 320 forks source link

Onlyoffice working on Gnome not on Hyprland #1208

Open euglevi opened 1 year ago

euglevi commented 1 year ago

This issue is unique.

Operating System

Linux (DEB package)

Version information

7.3

Expected Behavior

Onlyoffice opening and working properly

Actual Behavior

With version 7.2, everything works fine both in Gnome Wayland version and in Hyprland, a tiling window manager in Wayland based on wlroots. With the new version, Onlyoffice stopped working in Hyprland. Basically, it is so slow that it is unusable. Then, it is consuming like 25% of the CPU on an Intel i7. I am wondering what changes between 7.2 and 7.3 might have created this issue.

Reproduction Steps

No response

Additional information

No response

Midnight1938 commented 1 year ago

Same problem in Fedora

Reproduction Steps

euglevi commented 1 year ago

The problem seems to be still there in the new 7.3.3 version.

NovaAndrom3da commented 1 year ago

https://github.com/ONLYOFFICE/DesktopEditors/issues/1220

Not an issue with hyprland, Onlyoffice is being very sluggish through Xwayland.

euglevi commented 1 year ago

The issue is clearly the same. But then why OnlyOffice is working well in Gnome, which is still running on wayland?

NovaAndrom3da commented 1 year ago

Could be an issue only with wlroots-based compositors, but I don't see why that would be the problem

dluciv commented 1 year ago

In my experience, OnlyOffice 7.3 freezes (while CPU heats =)) under any wlroots-based environment. Tested with sway, Hyprland, labwc (I guess it is enough).

Still works smoothly under Plasma (KDE) and Mutter (Gnome) with Wayland.

Works nicely under XOrg.

I can not pretend to say large corporations and majority of users are using sway, but at least if someone finds a workaround, it would be great!

euglevi commented 1 year ago

I think it would help if a developer tells us - as suggested in my first message - what changed in wayland-related code between version 7.2 and 7.3.

dluciv commented 1 year ago

Also posted an issue for wlroots, feel free to upvote it =)

AraqWeyr commented 1 year ago

Can confirm this issue on Hyprland as of 7.3.3. Tried both flatpak and AUR. I did not have this issue before I updated from a really old (probably at least half a year old, no more than a year though) version.

dluciv commented 1 year ago

BTW there is a workaround for Flatpak, does well.

matveevms commented 1 year ago

Hi, @euglevi . The problem is indeed possibly related to wlroots. I created issue 62468 in our internal issue tracker. Our developers will try to figure out this problem.

marrobHD commented 1 year ago

Hi, @euglevi . The problem is indeed possibly related to wlroots. I created issue 62468 in our internal issue tracker. Our developers will try to figure out this problem.

Any updates on this?

euglevi commented 1 year ago

@matveevms , I tried with the new version 7.4. A few differences are worth noting. Now the files open without any lag, which is good. However, there is no way of moving the pointer either with the keyboard or with the mouse and any keypress is ineffective. Furthermore, any resizing of the window messes up the window itself.

For the moment, I will go back to 7.2.

steevelefort commented 1 year ago

Hi, I have the same issue with Sway and Hyprland on EndeavourOs (Arch). Only version 7.2.1 works. The last version (7.4.1) start faster than previous, but is unusable (freeze).

mildred commented 1 year ago

Fix from #1220

sudo flatpak update --commit=6ae98cba3421104f2284ff31ea702d254d1561e6d127d22cf6cb562d21079ce6 org.onlyoffice.desktopeditors
matveevms commented 1 year ago

@marrobHD

Unfortunately, the problem has not yet been resolved. We will inform you as soon as we have new information.

matveevms commented 1 year ago

@euglevi @steevelefort @mildred I will definitely pass this on to the developers. Problem number stays the same (62468) Thanks for the report.

NovaAndrom3da commented 1 year ago

Currently looking at the commits between 7.2.1 and 7.3.0 here. So far I've seen some changes related to older versions of GNOME, but they didn't look to be related to the issue.

alba4k commented 12 months ago

Honestly this is just making onlyoffice unusable for me. It really needs to be looked into....

alessandriniluca commented 12 months ago

Facing the same problem. As soon as I start only office with hyprland, it freezes, and the temperature of the CPU goes crazy high (it's not a resource problem, since it's an i7 8750H). For "crazy high" I mean, around 85-90°C, with only only-office opened (usually it's around 40-45°C). RAM usage seems instead "under control". On Gnome I see no problem

euglevi commented 11 months ago

You should be able to use version 7.2.1 without problems.

Although I agree with you that for someone who knows the source code it should not be a difficult issue to look into. Something happened between 7.2.1 and 7.3, it should just be a matter of finding which change triggered this issue.

alba4k commented 11 months ago

yea but there would be a lot of changes to test

also I only find appimage builds for 7.2 and am too lazy to build from source ahhah

marrobHD commented 11 months ago

The issue appears on v7.5.0 as well.

clayrisser commented 9 months ago

Any fix for this? Haven't been able to update to a later version for a long time because of this.

matveevms commented 9 months ago

Our developers are currently working on this problem. But unfortunately I can’t give exact dates right now. We will notify you in this issue if there is news.

REmerald commented 9 months ago

7.2.1 no longer works on sway. (Just installed it from AUR.)

[remorin@chuwawa:0 ~]$ paru -Qii onlyoffice-bin | grep 'Version'
Version         : 7.2.1-1
[remorin@chuwawa:0 ~]$ onlyoffice-desktopeditors
This application failed to start because it could not find or load the Qt platform plugin "wayland"
in "".

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Reinstalling the application may fix this problem.
Aborted (core dumped)
[ble: exit 134]
[remorin@chuwawa:0 ~]$ QT_QPA_PLATFORM=xcb onlyoffice-desktopeditors
QLayout: Attempting to add QLayout "" to CTabBarWrapper "tabWrapper", which already has a layout
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1463, resource id: 8388680, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1466, resource id: 8388680, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1469, resource id: 8388680, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1507, resource id: 8388680, major code: 130 (Unknown), minor code: 3
[ble: elapsed 42.345s (CPU 83.9%)] QT_QPA_PLATFORM=xcb onlyoffice-desktopeditors

Only works on xcb. (QLayout error is thrown at startup, XCB errors when selecting a file to open.)

clayrisser commented 9 months ago

@REmerald you need to use version 7.2.1

https://github.com/ONLYOFFICE/DesktopEditors/releases/tag/v7.2.1

REmerald commented 8 months ago

@clayrisser, I was referring to 7.2.1 and showed it in the pacman wrapper output. By "installed from AUR" I also meant that I changed to the commit of the PKGBUILD that fetches 7.2.1

https://github.com/ONLYOFFICE/DesktopEditors/releases/tag/v7.2.1

[remorin@chuwawa:0 ~]$ ~/Downloads/DesktopEditors-x86_64.AppImage
./DesktopEditors: symbol lookup error: /usr/lib/libtiff.so.6: undefined symbol: jpeg12_write_raw_data, version LIBJPEG_8.0
[ble: exit 127]
RegenJacob commented 7 months ago

I use a very hacky workaround by running Onlyoffice through gamescope

gamescope -w 1920 -h 1080 -F linear --force-windows-fullscreen -- org.onlyoffice.desktopeditors

I hope this will be resolved soon but for the time being I guess I'll use that

zenfas commented 7 months ago

Ver 7.5.1 Manjaro KDE work, Hyprland not work

alba4k commented 7 months ago

Fixed on 8.0.0 for me

brmoretti commented 7 months ago

updated to 8.0.0.99 and still doesn`t work on Hyprland

steevelefort commented 7 months ago

Still unusable with Sway (8.0.0-1) :(

REmerald commented 7 months ago

Still unusable with Sway (8.0.0-1) :(

Same, plus it now has the same behaviour with QT_QPA_PLATFORM=xcb (veery slow at first, then freezes completely).

REmerald commented 7 months ago

Same, plus it now has the same behaviour with QT_QPA_PLATFORM=xcb (veery slow at first, then freezes completely).

Actually, nvm, I think this application doesn't support wayland, so it was always xwayland. Didn't know it when I was writing my previous comments. So, to reiterate them

8.0.0 behaviour is the same as 7.5.1. 7.2.1 doesn't have the issue but since it's outdated version the appimage doesn't work at all and the binary (from AUR, package reverted to the commit that fetches 7.2.1) needs QT_QPA_PLATFORM=xcb to launch.

Btw, on 8.0.0 it get the following errors on startup

QXcbConnection: XCB error: 8 (BadMatch), sequence: 804, resource id: 8388671, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 819, resource id: 8388671, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 865, resource id: 8388680, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 901, resource id: 8388680, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1090, resource id: 8388680, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1093, resource id: 8388680, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 61725, resource id: 8389464, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 61749, resource id: 8389464, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 50319, resource id: 8389464, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 50324, resource id: 8389464, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 50364, resource id: 8389464, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 50375, resource id: 8389464, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 49132, resource id: 8389464, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 49152, resource id: 8389464, major code: 130 (Unknown), minor code: 3

The codes and number of these messages sometimes change

QXcbConnection: XCB error: 8 (BadMatch), sequence: 794, resource id: 8388671, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 809, resource id: 8388671, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 855, resource id: 8388680, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 880, resource id: 8388680, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 913, resource id: 8388680, major code: 130 (Unknown), minor code: 3

Anything I can provide to help the debugging, maybe something like gdb output?

euglevi commented 7 months ago

I confirm that on Debian with hyprland the new version still does not work.

dluciv commented 7 months ago

I confirm that on Debian with hyprland the new version still does not work.

Arch Linux, the same. Very sad, actually no solution in nearly a year...

I guess the user bases for any office suite and, for example, Hyprland or Sway, do not intersect very much. But guys, wlroots itself looks promising, and some more convenient environments like XFCE are in progress to work atop of wlroots. So it can once happen that this issue will affect much more people.

@DenisDeeSign May be it is a good idea to prioritize this issue a bit?

zenfas commented 7 months ago

Still not work on version 8.0.0.99 on Manjaro Hyprland :(

kulothunganug commented 7 months ago

Same here onlyoffice-bin-8.0.0-1 on hyprland-0.34.0-1

hotplugindev commented 7 months ago

Is working again. Just updated hyprland. Onlyoffice now working again

brmoretti commented 7 months ago

I confirm. It's now working.

kulothunganug commented 7 months ago

Confirmed onlyoffice-bin-8.0.0-1 is working fine on hyprland-v0.35.0 🎉

ErikReider commented 7 months ago

Still not working with Sway

hotplugindev commented 7 months ago

Still not working with Sway

Hyprland fixed it. The root of the issue lies within onlyoffice. So until the onlyoffice devs fix it, it probably wont work on other wlroot based compositors

clayrisser commented 7 months ago

Crazy that this issue is still around after 1 year. Does anyone have ideas about what specifically is causing it?

alba4k commented 7 months ago

Fixed on 8.0.0 for me

I appear to be the only one to have it working on Hyprland, which is weird (video for proof, I guess). As you can see, the only, negligible, issue are dialogs appearing as maximized, floating windows).

I really don't know what in my configuration could be the cause of it. My dotfiles can be found here, though.

Edit: just checked, Other people have it working too now. So maybe the reason was that I was using a git version of Hyprland? @kulothunganug @GionaBerti @brmoretti are you using Hyprland from some repository by any case? those tend to be outdated af.

hotplugindev commented 7 months ago

Fixed on 8.0.0 for me

I appear to be the only one to have it working on Hyprland, which is weird (video for proof, I guess). As you can see, the only, negligible, issue are dialogs appearing as maximized, floating windows).

I really don't know what in my configuration could be the cause of it. My dotfiles can be found here, though.

Edit: just checked, Other people have it working too now. So maybe the reason was that I was using a git version of Hyprland? @kulothunganug @GionaBerti @brmoretti are you using Hyprland from some repository by any case? those tend to be outdated af.

I was using the main arch mirror, switched to got for a while there it startet working and now its working on the arch mirror too.

kulothunganug commented 7 months ago

Fixed on 8.0.0 for me

I appear to be the only one to have it working on Hyprland, which is weird (video for proof, I guess). As you can see, the only, negligible, issue are dialogs appearing as maximized, floating windows).

I really don't know what in my configuration could be the cause of it. My dotfiles can be found here, though.

Edit: just checked, Other people have it working too now. So maybe the reason was that I was using a git version of Hyprland? @kulothunganug @GionaBerti @brmoretti are you using Hyprland from some repository by any case? those tend to be outdated af.

I am using plain hyprland not git version from AUR

alba4k commented 7 months ago

Yeah that explains it. The arch package is always out of date

REmerald commented 6 months ago

Still broken on sway. onlyoffice-bin 8.0.0-2, sway 1:1.8.1-5, wlroots0.16 0.16.2-2.