when I assign the address to store the weight file: auto dataloader_raii = std::make_uniqueTMVA::DataLoader(“/data03/tianye/dir/dataset100”);
it will occur: Error in TFile::GetObjectChecked: The provided key name is invalid.
*** Break *** segmentation violation
===========================================================
There was a crash (#5 0x00007fd2ca83e174 in SigHandler(ESignals) () from /data03/root/lib/libCore.so).
This is the entire stack trace of all threads:
#0 0x00007fd2c7d182ca in wait4 () from /lib64/libc.so.6
#1 0x00007fd2c7c61953 in do_system () from /lib64/libc.so.6
#2 0x00007fd2ca841f9a in TUnixSystem::Exec(char const*) () from /data03/root/lib/libCore.so
#3 0x00007fd2ca842841 in TUnixSystem::StackTrace() () from /data03/root/lib/libCore.so
#4 0x00007fd2ca8462a0 in TUnixSystem::DispatchSignals(ESignals) () from /data03/root/lib/libCore.so
#5 0x00007fd2ca83e174 in SigHandler(ESignals) () from /data03/root/lib/libCore.so
#6 0x00007fd2ca8461a4 in sighandler(int) () from /data03/root/lib/libCore.so
#7
#8 0x00007fd2cb364727 in TMVA::MethodBase::MethodBaseDir() const () from /data03/root/lib/libTMVA.so
#9 0x00007fd2cb363fb4 in TMVA::MethodBase::BaseDir() const () from /data03/root/lib/libTMVA.so
#10 0x00007fd2cb358076 in TMVA::MethodBase::TrainMethod() () from /data03/root/lib/libTMVA.so
#11 0x00007fd2cb310c9f in TMVA::TrainAllMethods() () from /data03/root/lib/libTMVA.so
#12 0x000000000040f1ab in TMVAClassification(TString, int, float, float, int, int) ()
#13 0x0000000000410d68 in tmva_mdsl_fp_data(int, float, float, int, int) ()
#14 0x0000000000410e43 in main ()
The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum ROOT Forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at Sign in to GitHub · GitHub Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
#8 0x00007fd2cb364727 in TMVA::MethodBase::MethodBaseDir() const () from /data03/root/lib/libTMVA.so
#9 0x00007fd2cb363fb4 in TMVA::MethodBase::BaseDir() const () from /data03/root/lib/libTMVA.so
#10 0x00007fd2cb358076 in TMVA::MethodBase::TrainMethod() () from /data03/root/lib/libTMVA.so
#11 0x00007fd2cb310c9f in TMVA::TrainAllMethods() () from /data03/root/lib/libTMVA.so
#12 0x000000000040f1ab in TMVAClassification(TString, int, float, float, int, int) ()
#13 0x0000000000410d68 in tmva_mdsl_fp_data(int, float, float, int, int) ()
#14 0x0000000000410e43 in main ()
However, if I change the path into: auto dataloader_raii = std::make_uniqueTMVA::DataLoader(“dataset100”); it is running fine, what’s wrong in the code.