Comments (1)
Thanks @Dr15Jones for this excellent report and reproducer; here's the test case updated for ROOT master
APIs:
#include <ROOT/RNTupleModel.hxx>
#include <ROOT/RField.hxx>
#include <ROOT/RNTuple.hxx>
#include <vector>
int main() {
auto model = ROOT::Experimental::RNTupleModel::Create();
model->AddField( ROOT::Experimental::RFieldBase::Create("ints","std::vector<int>").Unwrap());
model->AddField( ROOT::Experimental::RFieldBase::Create("floats","std::vector<float>").Unwrap());
auto writeOptions = ROOT::Experimental::RNTupleWriteOptions();
writeOptions.SetCompression(ROOT::RCompressionSetting::EAlgorithm::kLZMA, 4);
auto writer = ROOT::Experimental::RNTupleWriter::Recreate(std::move(model), "Events", "dummy.root", writeOptions);
std::vector<int> ints ={1,2,3};
void* pInts = &ints;
void** ppInts = &pInts;
std::vector<float> floats = {2.0, 4.0, 6.0};
void* pFloats = &floats;
void** ppFloats = &pFloats;
{
auto entry = writer->CreateEntry();
entry->BindRawPtr("ints", *ppInts);
entry->BindRawPtr("floats", *ppFloats);
writer->Fill(*entry);
}
writer.reset();
return 0;
}
I see the problem, we are hitting the exact case where the buffer size minus the compression header (which is not properly accounted for!) is not sufficient to hold the compressed content. I have a fix, PR will come soon.
from root.
Related Issues (20)
- Enable additional LLVM checks
- CMakeLists.txt CMAKE_BINARY_DIR not working correctly HOT 2
- Performance regression (slowdown) in ALICE event generation HOT 1
- Compilation issues with gcc 14.1.1, C++20, ROOT v6.30.06 HOT 7
- Infinite recursion in TFile::Open
- Memory leak in TTree __getattr__ pythonization HOT 1
- New CI label for nightly does not correctly report cmake configuration HOT 1
- `RDF::Describe` returns an incorrect file count
- Buffer overflow in TBranch::Init
- [RDF] Some tutorials fail to run when compiled due to jitting issues
- [io] Properly handle failures in custom streamers
- TGFileContainer crashes in pyroot HOT 3
- [ntuple] Cannot properly read late model extension (meta)data
- [ntuple][doc] document RNTuple Anchor format HOT 1
- JITted code changes the execution order of computation graph nodes
- [PyROOT] TProfile2D::Fill ambiguities preventing use of some signatures in pyROOT HOT 2
- [RF] SegFault in RooBernstein::fillBuffer HOT 1
- [RF] New RooFit EvalBackend returning incorrect result for binned likelihoods
- [RF] New RooFit EvalBackend cannot handle models with categorical parameters (crashes)
- Leaking memory though strings in PyROOT
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 root.