I've been seeing this error recently when trying to read from larger files. I haven't tried a bunch of different sizes, but the largest I've successfully read was 63Mb, while a file with 832Mb fails with the following code:
use oxyroot::RootFile;
fn main() {
let tree = RootFile::open("large_file.root").unwrap().get_tree("kin").unwrap();
// read large_file.root's "kin" tree
let e_beam_iter = tree.branch("E_Beam").unwrap().as_iter::<f32>().unwrap();
// this is fine
let data: Vec<f32> = e_beam_iter.collect(); // this fails
}
This file isn't corrupt, it loads fine via python's uproot, but I'm not sure what's going wrong here. I can send the data file if there is some way you'd prefer to receive an 800Mb file.
I couldn't reproduce the issue using a 1.2GB file (a single tree with one branch of f32). Could you share a ROOT script that generates a large problematic file?
I've been seeing this error recently when trying to read from larger files. I haven't tried a bunch of different sizes, but the largest I've successfully read was 63Mb, while a file with 832Mb fails with the following code:
The backtrace reads:
This file isn't corrupt, it loads fine via python's uproot, but I'm not sure what's going wrong here. I can send the data file if there is some way you'd prefer to receive an 800Mb file.