Comments (3)
Thanks for reporting! What exatly do you meean by "no longer"? Do you have a reference version where it worked last? Did you run git bisect to locate the bad commit? Could you please also provide the code snippet how to generate the file such that I can add it to the acceptance tests? Thanks again.
from matio.
We are upgrading from Matio 1.5.9 to 1.5.27 which is a big step :)
I did not use git bisect, but I investigated the code, and if I've well understood the v4 format, sparse data are stored in a "table" with one line by non-zero values and an extra line that contains the sparse dimension.
The condition on dimensions is now checking that there are at least two rows, that is not true in case of sparse that contains only null values.
see mat4.c:368 in 1.5.27
if ( matvar->dims[0] < 2 ) {
return MATIO_E_FILE_FORMAT_VIOLATION;
}
I think that commit introduced the bug aefd09e
The file has been generated by Scilab, which does not use matio to generate mat files in v4 format.
Here is the Scilab code:
spbs = sparse(0);
file = TMPDIR + "/spbs.mat";
savematfile(file, "-v4", "spbs");
from matio.
Bug confirmed and fixed by 9befe4c.
from matio.
Related Issues (20)
- Not able to build on Ubuntu 22.04.2 LTS HOT 1
- Compression failure caused by incorrect ChunkSize HOT 2
- Buliding with afl++ gives linker error `ld: unknown option: --retain-symbols-file` HOT 6
- A problem with corrupted files HOT 7
- Microsoft Windows minimal CMake configuration HOT 2
- HDF5 error on reading compressed v7.3 matfiles HOT 1
- cmake can not verify HDF5 version when building with VS 2022 HOT 1
- Methods to access data stored in nested variables in.mat file. HOT 2
- Failed to read from 7.3 mat file generated from hdf5storage python package HOT 6
- Does matio have documents just like API HOT 1
- Is matio capable of handle GBK string? HOT 1
- Using undefined types “matvar_internal” HOT 1
- cannot compile successfully on Windows HOT 1
- MinGW Build Regression HOT 4
- LFS support on MinGW broken HOT 4
- `READ_DATA` macro needs checks before float to int casts HOT 1
- saving structure in v7 format with compression HOT 7
- CAN it replace or just input one column date? HOT 1
- After make command get this error: missing binary operator before token "(" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matio.