Comments (2)
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.
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)
- [ROOT_5159] Improve TTree documentation about SetMakeClass() HOT 1
- [ROOT-10802] We need a clear explanation of cycle numbers in our docs HOT 1
- [ROOT-5572] Handling of '.?' in TRegexp HOT 1
- [ROOT-6317] using namespace statement does not provoke autoload
- Jupyter ROOT (both C++ and Python) notebooks unresponsive because of RCanvas
- Error value and context of call to FT_Set_Char_Size in TTF::SetTextSize should be in error message HOT 4
- Build fails with CLING_DEBUG=1 set
- Provide `file.root` request in THttpServer HOT 1
- Problem when creating dictionary in Osx 12.7, Xcode 14.2 HOT 9
- A "printf" change the behaviour of a macro ... HOT 7
- The example th2polyUSA.C needs re-labelling HOT 2
- std::source_location not found when running with c++20 enabled HOT 2
- The implicit `using namespace std;` can have nasty side effects on Windows. HOT 2
- THStack draws first histogram transparently if filled with white and noclear option used HOT 9
- [DF] ProgressBar destroys formatted output streams
- conflict with installed nlohman/json HOT 5
- [RF] Crashes / bugs in importing JSON workspaces
- RNTuple collection writer only works in sequential writing with one REntry
- [io] crash due to overflow in buffer length variable
- Reduce memory allocation size for compression buffer
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.