https://bugs.documentfoundation.org/show_bug.cgi?id=167205

--- Comment #4 from Warren <[email protected]> ---
I was able to reproduce the bug as reported using the steps in the initial
comments (2025-06-25 13:26:54 UTC) using the following environment

Version:        25.2.4.3 (X86_64)
Build:          33e196637044ead23f5c3226c
Environment:    CPU Threads: 8 OS Windows 7 Service Pack 1 X86_64 (6.1 build
7601)
User Interface: UI render: Skia/Raster; VCL:win
Locale:         en-US (en_US);  UI: en-US
Misc:           Calc:threaded


I was also able to reproduce by adding a number into a blank cell of the
31808530 cells by Copy and Paste.ods and trying to save. The position of the
new cell does not appear to matter as was able to replicate in one case by
entering a "1" in cell A31810 and in another case by entering "1" in cell
I31831.  I was also able to replicate if I enter "Text1" in cell A31810.

If I start with a new file and put Text1 in A1 and Autofill to the same points
as  "31808530 cells by Copy and Paste.ods" and then add one more item of
"Test1810 to cell A31810 the file saves OK. I then added 10 cells to the saved
file and it still saves fine if the contents are all text.

It appears that the behavior is different depending on the cell contents data
type but if the first 31808530 cells are decimal adding a number or text to
another cell will cause the save to fail.  

Possibly related: 

I also noticed that the Error dialog is using the previous file name (seed file
name) and not the proposed file name - new name with 31808531... ods

When I try to open the "corrupt" file the behavior depends on how the file is
opened as follows:

A. If Calc is closed and I double click the "corrupt" file Calc will start to
open and then display a dialog saying the file is corrupt with the option to
Repair the file

If you press No the dialog closes and Calc sort of opens with a completely
blank window with a title bar with no title, no status bar nothing at all in
the window and a small Error  Dialog that says "General Error. General
input/output error." - pressing the OK button on this Error dialog closes Calc. 

If you press yes to Repair the file appears to be repaired, macros are disabled
and the file opens. If you try to save the repaired file an Error dialog
appears saying "Error saving the document ..... General Error" Pressing Ok and
deleting the one cell and trying to save the file results in the same Error
message.

B. If you open Calc first and open the file by either selecting from the Recent
Documents list or File>Open selecting the file a dialog will display saying the
file is corrupt with the option to Repair the file:

If you press No (to repair) the Text Import dialog appears

If you press Yes (to repair) it appears to repair the file and once the repair
is complete the file will display. 

In both cases if you remove the contents of one cell right after the repair and
then save the file it appears to save correctly and the file can be reopened.   



I've attached my test files to aid reproducing

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to