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

Impossible to print something on Linux #1228

Closed solisinvictum closed 1 year ago

solisinvictum commented 1 year ago

This issue is unique.

Operating System

Linux (DEB package), Linux (RPM package)

Version information

7.3.0.184

Expected Behavior

pressing the "Print" button on top of the menubar, document should get printed.

Actual Behavior

Onlyoffice crashs.

Reproduction Steps

  1. open any document
  2. press on printing (or use ctrl+p)
  3. see how onlyoffice crashs

Additional information

Archlinux.

[user@1950x ~]$ onlyoffice-desktopeditors 
namespace error : Namespace prefix new on cell is not defined
<Settings><new:cell></new:cell><new:word></new:word></Settings>
                   ^
namespace error : Namespace prefix new on word is not defined
<Settings><new:cell></new:cell><new:word></new:word></Settings>
                                        ^
namespace error : Namespace prefix new on cell is not defined
<Settings><new:cell></new:cell><new:word></new:word></Settings>
                   ^
namespace error : Namespace prefix new on word is not defined
<Settings><new:cell></new:cell><new:word></new:word></Settings>
                                        ^
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1710, resource id: 153092159, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1713, resource id: 153092159, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1716, resource id: 153092159, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1738, resource id: 153092159, major code: 130 (Unknown), minor code: 3
Abgebrochen

Same like here: https://github.com/ONLYOFFICE/DesktopEditors/issues/1029

LuckySpecialist commented 1 year ago

Hi @solisinvictum! I have not been able to reproduce your problem on my systems, Arch Linux with 6.1.15-1-lts kernel (AUR package) and Ubuntu 22.04 (DEB package). Can you provide some details, for example, a specific document (if reproduced only on it) or your environment (SW/HW), which will help to understand the problem? A video demonstrating the problem will also be helpful. Thanks.

solisinvictum commented 1 year ago

Hi @LuckySpecialist it doenst matter what document, or if a document is open (create a new one).

https://user-images.githubusercontent.com/94938946/223078747-9664e5f2-13d6-4b74-9096-1746c352fbbb.mp4

that happens with every document type.

But i found out, that it is impossible to change the colors from arrows (forms) too. So im now using wps office.

LuckySpecialist commented 1 year ago

Write more about your system and the printers that are used by default in the system. If you select a different default printer in the system (for example, a PDF printer) and/or use the quick print button, does the problem also reproduce?

solisinvictum commented 1 year ago

System: Host: 1950x Kernel: 6.2.2-1-cachyos arch: x86_64 bits: 64 Desktop: KDE Plasma v: 5.27.2 Distro: CachyOS Machine: Type: Desktop Mobo: Micro-Star model: MEG X399 CREATION (MS-7B92) v: 1.0 serial: UEFI: American Megatrends v: 1.45 date: 10/21/2021 CPU: Info: 16-core AMD Ryzen Threadripper 1950X [MT MCP MCM] speed (MHz): avg: 3470 min/max: 2200/3400 Graphics: Device-1: NVIDIA GP102 [GeForce GTX 1080 Ti] driver: nvidia v: 525.89.02 Device-2: NVIDIA GP102 [GeForce GTX 1080 Ti] driver: nvidia v: 525.89.02 Display: x11 server: X.Org v: 21.1.7 with: Xwayland v: 22.1.8 driver: X: loaded: nvidia unloaded: modesetting gpu: nvidia,nvidia-nvswitch resolution: 1: 3840x2160~60Hz 2: 3840x2160~60Hz 3: 1920x1080~60Hz 4: 1920x1080~60Hz API: OpenGL v: 4.6.0 NVIDIA 525.89.02 renderer: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2 Network: Device-1: Intel I211 Gigabit Network driver: igb Device-2: Intel I211 Gigabit Network driver: igb Device-3: Intel Ethernet 10-Gigabit X540-AT2 driver: ixgbe Device-4: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb Drives: Local Storage: total: 7.74 TiB used: 1.14 TiB (14.8%) Info: Processes: 601 Uptime: 2h 27m Memory: 62.79 GiB used: 11.56 GiB (18.4%) Shell: Bash inxi: 3.3.25

image

Using the quick print button, dont work too. it crash the same way.

But removing the brother printer OR the pdf printer (so there is only one), is a workaround. but i need both.

LuckySpecialist commented 1 year ago

Thanks for the information, it will take some time to find a similar configuration and reproduce the problem. Do you use a built-in or third-party print server?

solisinvictum commented 1 year ago

Using a local one. In this case KDE uses cups.

LuckySpecialist commented 1 year ago

Hi @solisinvictum, I installed the same system as yours on the virtual machine and added two virtual PDF printers. Still couldn't repeat your problem. Perhaps the problem is related to specific hardware and its connection with the printer.

raedkit commented 1 year ago

Hi @LuckySpecialist I'm having also the same problem and as in the case @solisinvictum this problems occurs with KDE. I'm using ONLYOFFICE Desktop Editors version 7.3.0.184

osoibol commented 1 year ago

I'm experiencing the same issue on Manjaro KDE 6.1.19-1-MANJARO x86_64 and Onlyoffice 7.3.3.50 (onlyoffice-desktopeditors from community official repositories)

I tried opening onlyoffice both as a normal user and as sudo but the error remains the same.

Attached are the screenshots of me creating a test word document, clicking the print button, then the print screen appears, then I click 'print' and for a second the printing screen of KDE appears and then everything crashes. It might be a KDE/Plasma issue/bug??? just trying to figure this out.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QXcbConnection: XCB error: 8 (BadMatch), sequence: 1397, resource id: 65011775, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1400, resource id: 65011775, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1403, resource id: 65011775, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1425, resource id: 65011775, major code: 130 (Unknown), minor code: 3 [1] 5500 IOT instruction sudo onlyoffice

Screenshot_20230316_161143 Screenshot_20230316_161240 Screenshot_20230316_161300 Screenshot_20230316_161312

tleepa commented 1 year ago

I have also got the same issue. Same "XCB error" messages as above.

My system: Fedora 37 KDE Spin, printer is Brother HL-L8260CDW with CUPS driver (connected via network) and is my only printer.

elbc56 commented 1 year ago

Same thing for me, last stable Manjaro XFCE edition :

onlyoffice-desktopeditors QXcbConnection: XCB error: 8 (BadMatch), sequence: 1387, resource id: 77594687, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1390, resource id: 77594687, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1393, resource id: 77594687, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1415, resource id: 77594687, major code: 130 (Unknown), minor code: 3 Abandon (core dumped)

For testing I've installed mate desktop to compare : no core dumped under mate desktop.

Tested too with the Appimage, same results : onlyoffice crashes (core dumped).

But the snap version works, no core dumped.

osoibol commented 1 year ago

For the people trying to print in the meantime it seems like the only workaround is to either save the document as PDF and then printing it from a PDF Viewer/Editor like Evince, Firefox, or Master PDF Editor.

I tried to print a Word Document with LibreOffice as well with mixed results (sometimes the printer would just 'spit' the paper without printing anything and then the 'printer jam' light turns on, sometimes it gets added to the cue but doesn't start, sometimes it works, the printer is new, just bought it 3 weeks ago, the printer model is a Canon PIXMA MG36505). Now, I'm not sure if it's a totally unrelated issue or if it has any connection with the Onlyoffice problem, but it might indicate that the problem is with KDE Plasma in general, with Manjaro/Arch, or with cups...

elbc56 commented 1 year ago

As I said before, been testing under Manjaro with two different desktops (Xfce and mate desktop, not KDE), onlyoffice works under mate desktop, not under xfce (segfault under Xfce when printing window opens, not under mate). If issue appears under KDE, I think it is maybe linked to a qt issue (see the error QXcbConnection: XCB error: 8 (BadMatch) ) . Tested on Debian 11 with Xfce 4.18 : no issue.

Saxtr0 commented 1 year ago

The only workaround i found is to save as "PDF" (not print to PDF), then printing within any PDF viewer

Environment is: Operating System: Manjaro Linux KDE Plasma Version: 5.27.4 KDE Frameworks Version: 5.104.0 Qt Version: 5.15.8 Kernel Version: 6.1.25-1-MANJARO (64-bit) Graphics Platform: X11 Processors: 32 × AMD Ryzen 9 7950X 16-Core Processor Memory: 62,5 GiB of RAM Graphics Processor: AMD Radeon RX 6700 XT Manufacturer: ASUS

jlr1001 commented 1 year ago

Hey,

An alternate workaround that I'm using is to simply download the appimage for OO v.7.2.1 to your Downloads folder or some separate directory. You can find the link here: https://github.com/ONLYOFFICE/DesktopEditors/releases/tag/v7.2.1

I then edited my OnlyOffice .desktop file to change the executable location to the 7.2.1 appimage. Printing work just fine in this version.

Sure, this can be a bit of a pain (especially when updating your system). Ideally, I'll see OO has an update which I'll build, test, and see that printing is working again. Worst case, I go back into the .desktop file and manually point it to the 7.2.1 appimage executable again.

Cheers!

osoibol commented 1 year ago

small discovery: If I go to the "print" options when my printer is turned off, the window and the application doesn't close, so theoretically I can change the options and send a document to the printing cue before turning on the printer.

Also the "Fast Print" option seems to work fine now.

I tested this today on OnlyOffice 7.3.3.50 on my Manjaro machine.

doubleddav commented 1 year ago

I'm getting almost identical behaviour . Running Nixos Unstable, current version listed as "ONLYOFFICE Desktop Editors version 7.2.0.204 (deb package)"

Run KDE plasma 5.27.6

LuckySpecialist commented 1 year ago

Hi @doubleddav, you are watching an outdated version. Yesterday 7.4.1 was released - try it.

I still can't reproduce the problem on: Operating System: Kubuntu 23.04 KDE Plasma Version: 5.27.4 KDE Frameworks Version: 5.104.0 Qt Version: 5.15.8 Kernel Version: 6.2.0-26-generic (64-bit) Graphics Platform: X11 ONLYOFFICE Desktop Editors version 7.4.1.36 (deb)

Rita-Bubnova commented 1 year ago

This issue was closed due no response.

solisinvictum commented 11 months ago

This issue was closed due no response.

Answer from whom?

So with other words, this never get fixed?

LuckySpecialist commented 11 months ago

Hi, @solisinvictum!

Answer from whom?

The answer is from those who participate in the discussion and have the same problem.

So with other words, this never get fixed?

Fixing the problem depends on its cause. To find out, we need to repeat it in our environment and show it to developers. This has not been done yet. If you have a 100% scenario to reproduce the problem, please describe it.

This issue can be reopened if there are new facts about whether it is repeated or not. Please note that we are considering problems only on the current version of the application. Thanks for understanding.