cross-instance copy/paste fails: col >= 0 && col < gnm_sheet_get_max_cols
Observations:
Consider this very simple .gnumeric file. Beware that Sheet1 has 128 columns whereas Sheet2 has 256 columns:
Open that in a command window. Call this the "blue" instance.
Then open another instance in another command window. Call this the "yellow" instance. In this instance, go to Sheet2, and go to column IV, the very last column, the only column that has data in it. Select IV1:IV6 and Copy.
Go back to the blue instance. Go to Sheet1. Select A1, then Paste.
In the blue command window, observe 12 copies of the following error message:
** (/usr/src/gnome/gnumeric/src/.libs/gnumeric:3300): WARNING **: 07:48:54.158: File is most likely corrupted.
The problem was detected in xml_sax_cell.
The failed check was: col >= 0 && col < gnm_sheet_get_max_cols (sheet)
Also observe that the copy/paste failed. No information is pasted.
Remarks:
This issue is not observed when pasting from any given instance to itself -- only when pasting from one instance to another.
This is 100% reproducible chez moi.
Platform:
This is observed using a very recent gnumeric version '1.12.48' compiled from freshly-pulled git sources.
:; uname -srmo
Linux 4.19.42+ x86_64 GNU/Linux
:; lsb_release -a
LSB Version: core-9.20170808ubuntu1-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:desktop-4.1-amd64:desktop-4.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:graphics-4.1-amd64:graphics-4.1-noarch:multimedia-3.2-amd64:multimedia-3.2-noarch:multimedia-4.0-amd64:multimedia-4.0-noarch:multimedia-4.1-amd64:multimedia-4.1-noarch:printing-9.20170808ubuntu1-noarch:qt4-3.1-amd64:qt4-3.1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
:; /usr/src/gnome/gnumeric/src/gnumeric --version
gnumeric version '1.12.48'
datadir := '/usr/src/gnome/install/share/gnumeric/1.12.48'
libdir := '/usr/src/gnome/gnumeric'
:; git log
commit c7a5f4b78ae00e1f79a8f80b1e0ed437f3dd709a
Date: Thu Jun 11 20:39:54 2020 -0400