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.67k stars 314 forks source link

Multiple copies of the main window when opening files, with active Open documents in tab option (Ubuntu 20.04) #1339

Closed maxj97983 closed 5 months ago

maxj97983 commented 11 months ago

This issue is unique.

Operating System

Linux (DEB package)

Version information

v7.4.1.36

Expected Behavior

File should be safe after edit it and show the updated file.

Actual Behavior

showing the warning dialog of "This file cannot be saved or created" when try to save the file after edit.

Reproduction Steps

Steps to reproduce the error -

  1. Open multiple files, after reboot the system.
  2. Files will open in different windows.
  3. Close any one window.
  4. Update the existing files and tried to save it.
  5. warning dialog comes that says "This file cannot be saved or created".
  6. Check the screenshot for the reference.

FileCorrupt

Additional information

Please provide the solution to recover the corrupted files. And please correct this issue as soon as possible.

LuckySpecialist commented 11 months ago

Hi @maxj97983! To understand the problem, I need an exact scenario and sequence of actions from you:

From your description, I understood that the problem is when working with several files and saving changes to them, after which you received an error. Sample files and videos demonstrating the problem will also greatly speed up the search for the problem.

maxj97983 commented 11 months ago

@LuckySpecialist ,

  1. This issue occurs with all type of files like (docx,xlsx,pptx).
  2. Files are stored in document folder but there is no specific location dependency.
  3. I am saving the files on same location from where they opens.
  4. This issue only occurs when i am trying to access the files just after reboot the system and file open in multiple windows.
  5. There is no file size boundation. All types of file are corrupted after editing and trying to save.
  6. OS version Ubuntu 20.04 and Onlyoffice version is 7.4.1.36 (deb).
  7. For the demonstration, i am sharing the video.

https://github.com/ONLYOFFICE/DesktopEditors/assets/141709637/22fceb01-4523-4961-af25-2f97d9e73b40

If you need any other information, Feel free to ask.

tejada-c commented 11 months ago

That is exactly the failure that has been happening to me with my students. I already reported it separately, but it is the same and you have given excellent details.

LuckySpecialist commented 11 months ago

Hi @maxj97983, thanks for the video demonstrating the problem. In the application Settings, you have the Open file option set to In its own tab - right?

maxj97983 commented 11 months ago

Hello @LuckySpecialist , Yes, All the settings of the application is set default. "Open file" options sets to "In its own tab".

LuckySpecialist commented 11 months ago

In this case, the behavior of the application on the video is not normal. With the default settings, all documents should open in one main window. I can't reproduce this behavior on my files - can you attach your examples? Please, write the system specifications of your PC.

maxj97983 commented 11 months ago

system specifications OS: Ubuntu 20.04.6 LTS x86_64 Kernel: 5.15.0-78-generic CPU: Intel Xeon E5-1650 v4 (12) @ 4.000GHz GPU: NVIDIA Quadro K420 Memory: 3148MiB / 31945MiB

file-sample_1MB.docx file_example_XLSX_5000.xlsx

LuckySpecialist commented 11 months ago

Is your system installed on HDD or SSD?

maxj97983 commented 11 months ago

My system is on HDD but this problem is same with SSD as well.

LuckySpecialist commented 11 months ago

And where the system is installed on SSD files also open with multiple copies of the main window?

maxj97983 commented 11 months ago

Yes, files are open in different window with or without SSD. But this scenario happens only, when files open just after reboot the system.

LuckySpecialist commented 11 months ago

And if you select all the files and press Enter, does the problem with opening multiple copies of the main window remain?

maxj97983 commented 11 months ago

No, at this time all files are opening in same window. But when i open all files with double click. Some files open in different windows.

LuckySpecialist commented 11 months ago

And if you select each file in turn and press Enter?

I'm asking because so far I haven't been able to reproduce the problem with opening multiple copies of the main window on my systems, even with your files (it hardly depends on them). So I'm trying to find a scenario in which I can reproduce the problem, because most likely this is the reason for the empty files. Maybe the @tejada-c will help with the script, if he also has several copies of the main window?

maxj97983 commented 11 months ago

You can try one more option to generate this issue.

  1. Reboot the system.
  2. Very frequently Click on single file.
  3. If same file opens in two window, then close one of them and try to edit the other one and save it.
  4. It will show the same warning dialog and file will become zero byte.

This issue generates only when different window is open, and close one of them. May be you are trying to edit the files without closing the one window.

LuckySpecialist commented 11 months ago

So the problem is not repeated either... If you have two copies of the main window open with one file, this is what we need to fix, but we can't repeat it. One file should not be opened twice.

maxj97983 commented 11 months ago

So in that case, Is there any way to recover the files data if it is corrupted ?? Because data loss is really very big issue. And i lost my important file.

LuckySpecialist commented 11 months ago

The problem is that the file is written empty, judging by your words. Therefore, there is nothing to restore there. If it had not been saved, the data would have ended up in the Recovery section. The problem is very unpleasant - I agree. It is not possible to repeat it yet...

maxj97983 commented 11 months ago

This problem typically arises when two windows are opened for either the same or distinct files. It is plausible that this complication is associated with the creation of temporary files during the process of file opening.

This issue is very rare in high configuration system. So you can try this on VM machine. I tried on VM machine with below given configuration. And tested the attached sample file. You can make multiple copies of the same file.

Configuration : OS name - ubuntu 20.04 Memory - 6 GB Processor - 4 Hard disk - 100GB

https://www.sampledocs.in/DownloadFiles/SampleFile?filename=sampledocs-50mb-xls-file&ext=xls

LuckySpecialist commented 11 months ago

In general, initially I checked on a virtual machine with Ubuntu 22.04. Then I tried on a real Ubuntu 23.04. Perhaps you need a certain configuration with a set of installed applications to reproduce this. I will look for other configurations and try.

maxj97983 commented 11 months ago

@LuckySpecialist Can you please try in Ubuntu 20.04 version. With given configuration above.

LuckySpecialist commented 11 months ago

The problem was reproduced on Ubuntu 20.04, I passed the problem to the developers. Bug 59389 was issued earlier, now it is open again. Thanks for the feedback.

sskdv commented 11 months ago

Good afternoon. Please tell me, was it possible to solve or defeat the problem with saving files? The case when when saving a file it becomes zero in size?!

LuckySpecialist commented 10 months ago

Hi @sskdv, if you have the same problem as described in the issue, it is likely that to get around it, you do not need to run multiple copies of the application and wait for a fix in the future. If your scenario is different, you need to open a new issue.

tejada-c commented 8 months ago

My boss had an important file corrupted by this same bug and I had to recommend another application to work with because he was very disappointed. OnlyOffice is beautiful and an excellent project, but that error of opening a file twice in different windows and corrupting it is something that needs to be corrected soon. Greetings

LuckySpecialist commented 5 months ago

The problem has been fixed in this commit and will be included in the next release.

Rita-Bubnova commented 5 months ago

Desktop Editors v8.0.0 is released so I close this issue. Feel free to comment or reopen it if you got further questions.