Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running a module with python binding, fails due to std::TTreeReaderArray<float> #204

Open
gkaratha opened this issue Oct 28, 2019 · 0 comments

Comments

@gkaratha
Copy link

Dear experts,

I face this very strange error [*] which does not seem to come from my code. I have a code that reads genParticles and sorts them according to their mother so to have the whole chain[**]. For that I use c++ worker with a python binding. The code was working fine up to thursday but since tomorrow while the code compiles it fails when i run nanopy command. So I started to make several checks and i commend it out all the logic (both in cpp and python) except the loading. It turns out that this line is responsible: ROOT.gROOT.ProcessLine(".L%s/interface/GenDecayCppWorker.h"%base)

What is important to know is that when I changed the loaded c++ from my code to a code that was already existing (mhtjuProducerCppWorker) [***], I still see exactly the same error . So I am not sure if that comes from my code anymore or it is a more general problem... Also in the error msg there is not a mention of my codes. Any ideas? Thanks in advance. If it is relevant i use CMSSW_10_4_0 with arch slc7_amd64_gcc700.

Talking to @peruzzim (thanks) he suggests it to report that and also gave me the correct thread.

Best regards,
George

[*] part of the lines
input_line_185:1:21: error: no class named 'TTreeReaderArray' in namespace 'std'
template class std::TTreeReaderArray;

*** Error in `python': free(): corrupted unsorted chunks: 0x00000000079e1010 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x81679)[0x7ff2b3514679]
/cvmfs/cms.cern.ch/slc7_amd64_gcc700/cms/cmssw/CMSSW_10_4_0/external/slc7_amd64_gcc700/lib/libTreePlayer.so(_ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10unique_ptrIN4ROOT8Internal17TNamedBranchProxyESt14default_deleteISB_EEESaISF_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSH_18_Mod_range_hashingENSH_20_Default_ranged_hashENSH_20_Prime_rehash_policyENSH_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev+0x59)[0x7ff2a1068309]

[**] https://github.com/gkaratha/nanoAOD-tools/blob/NanoToolsBPark/python/postprocessing/modules/bpark/genDecayConstructor.py

[***] ROOT.gROOT.ProcessLine(".L %s/interface/mhtjuProducerCppWorker.h"%base)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant