Coder Social home page Coder Social logo

Comments (2)

vepadulano avatar vepadulano commented on June 1, 2024

After some more investigation, I am not sure I can reproduce the issue as I imagined it initially. Here is my attempt

#include <ROOT/RNTuple.hxx>

#include <iostream>
#include <string>

using RNTupleReader = ROOT::Experimental::RNTupleReader;

int main() {

    std::string ntupleName{"Events"};

    // A chain of directories, 259 characters long 
    std::string directory{"directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory/directory"};
    // Filename exactly 255 chars long (1 less than the maximum allowed by the OS)
    std::string name255{"filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar10filechar1012345"}; 
    std::string filePath{directory + "/" + name255}; // 260 + 255
    auto ntuple = RNTupleReader::Open(ntupleName, filePath);
}

With result

$: ./reproducer.out 
Warning in <[ROOT.NTuple] Warning /home/vpadulan/Programs/rootproject/rootsrc/tree/ntuple/v7/src/RPageStorageFile.cxx:265 in void ROOT::Experimental::Detail::RPageSourceFile::InitDescriptor(const ROOT::Experimental::RNTuple&)>: Pre-release format version: RC 2

from root.

hahnjo avatar hahnjo commented on June 1, 2024

The issue title and description are slightly wrong, the issue comes from long strings in the file, and one example is TFile writing the full path when creating the file. But it's not limited to that, you can easily reproduce the issue with the test I added in tree/ntuple/v7/test/ntuple_minifile.cxx by just appending one single character to LongString (which will be used as the title because that was easier to test)

from root.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.