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

App crashes while editing math equations in .docx #1224

Closed visvaldas01 closed 1 year ago

visvaldas01 commented 1 year ago

This issue is unique.

Operating System

Linux (DEB package)

Version information

7.3.0-1

Expected Behavior

I was editing a math equation in text, accidentally pressed Shift+Home and the left arrow, after which I expected it just to move to the start of the line.

Actual Behavior

The app just crashed with this error. After that it became only able for viewing and saving, but not editing.

picture

Reproduction Steps

I clicked Insert -> Equation/Insert Equation -> Brackets -> Binomial coefficient, got into the formula from the right, pressed Shift+Home and the left (although it works with any) arrow. It also works with combinations like Ctrl+Shift+Left/Right - you should just highlight the whole formula and press an arrow (not a left click, it won't work!). BTW, Shift+Home doesn't work with a formula with an overbar (e.g. Accents -> ABC with overbar) if the cursor is not under the bar.

Additional information

I'm on Manjaro 22.0.4 Sikaris with x86_64 Linux 5.15.94-1-MANJARO kernel, using the onlyoffice-desktopeditors from the community repository (I checked that bug happens on onlyoffice-bin from the AUR too). I've managed to reproduce this error on virtual machine with Ubuntu 22.04.

onlyoffice --ascdesktop-support-debug-info output:

DevTools listening on ws://127.0.0.1:8080/devtools/browser/5d445925-cb2c-45bb-b1e2-e2ffd2987226 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1806, resource id: 83886152, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1809, resource id: 83886152, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1812, resource id: 83886152, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1843, resource id: 83886152, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1903, resource id: 83886152, major code: 130 (Unknown), minor code: 3

(This QXcbConnection output was printed after I closed the window)

maruacat commented 1 year ago

Hello @visvaldas01 In the new version of the OnlyOffice editor, which will soon be available in the github repository, we have fixed this problem - https://github.com/ONLYOFFICE/sdkjs/commit/4ea5deabef55db78128b1affc51aafa54ceaeb52 Thank you for your feedback!

Rita-Bubnova commented 1 year ago

This is duplicate #https://github.com/ONLYOFFICE/DocumentServer/issues/2131.