Closed maxj97983 closed 5 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.
@LuckySpecialist ,
https://github.com/ONLYOFFICE/DesktopEditors/assets/141709637/22fceb01-4523-4961-af25-2f97d9e73b40
If you need any other information, Feel free to ask.
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.
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?
Hello @LuckySpecialist , Yes, All the settings of the application is set default. "Open file" options sets to "In its own tab".
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.
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
Is your system installed on HDD or SSD?
My system is on HDD but this problem is same with SSD as well.
And where the system is installed on SSD files also open with multiple copies of the main window?
Yes, files are open in different window with or without SSD. But this scenario happens only, when files open just after reboot the system.
And if you select all the files and press Enter, does the problem with opening multiple copies of the main window remain?
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.
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?
You can try one more option to generate this issue.
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.
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.
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.
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...
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
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.
@LuckySpecialist Can you please try in Ubuntu 20.04 version. With given configuration above.
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.
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?!
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.
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
The problem has been fixed in this commit and will be included in the next release.
Desktop Editors v8.0.0 is released so I close this issue. Feel free to comment or reopen it if you got further questions.
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 -
Additional information
Please provide the solution to recover the corrupted files. And please correct this issue as soon as possible.