Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10075

RDataFrame::Histo1D::GetPtr problem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Clarified
    • Affects Version/s: 6.17/01
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Environment:
    • Development:

      Description

      Dear all,

      I've noticed strange behavior of RDataFrame. During the process of clarifying it I've got one more strange thing, so here they are:
      1. Problem with Histo1D->Draw():

      auto rd = new ROOT::RDataFrame("events", "result.root");
      rd->Histo1D(*hm, "nTracks")->Draw();
      

      Will create empty canvas, but

      auto rd = new ROOT::RDataFrame("events", "result.root");
      auto hr = rd->Histo1D(*hm, "nTracks");
      hr->Draw();
      

      works fine.

      2. Let extract histogram:

       auto hr1 = rd->Histo1D(*hm, "nTracks").GetPtr();
       hr1->Draw()
       
       *** Break *** segmentation violation
       
      Thread 8 (Thread 0x7f62a9b34700 (LWP 14321)):
      #0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
      #1  0x00007f62b0127792 in tbb::internal::futex_wait (comparand=2, futex=0x7f62afcd4e2c) at ../../include/tbb/machine/linux_common.h:60
      #2  tbb::internal::binary_semaphore::P (this=0x7f62afcd4e2c) at ../../src/tbb/semaphore.h:206
      #3  rml::internal::thread_monitor::commit_wait (c=..., this=0x7f62afcd4e20) at ../../src/tbb/../rml/server/thread_monitor.h:259
      #4  tbb::internal::rml::private_worker::run (this=0x7f62afcd4e00) at ../../src/tbb/private_server.cpp:277
      #5  0x00007f62b01277d9 in tbb::internal::rml::private_worker::thread_routine (arg=<optimized out>) at ../../src/tbb/private_server.cpp:223
      #6  0x00007f62bcbe66db in start_thread (arg=0x7f62a9b34700) at pthread_create.c:463
      #7  0x00007f62bd5b288f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      ....
      #6  0x00005569df82ebc3 in ?? ()
      #7  0x00007f62a00550b5 in ?? ()
      #8  0x00005569d97ad840 in ?? ()
      #9  0x00007f62b897a270 in ?? () from /usr/local/lib/libCling.so
      #10 0x00005569d949af50 in ?? ()
      #11 0x00005569dfe94d48 in ?? ()
      #12 0x00007f62b8a0d840 in ?? () from /usr/local/lib/libCling.so
      #13 0x00007ffc5e830c30 in ?? ()
      #14 0x00007f62a0055000 in ?? ()
      #15 0x00007f62b89e7110 in cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value*) const () from /usr/local/lib/libCling.so
      #16 0x00007f62b897ca07 in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) () from /usr/local/lib/libCling.so
      #17 0x00007f62b897e06f in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /usr/local/lib/libCling.so
      #18 0x00007f62b897e317 in cling::Interpreter::process(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Value*, cling::Transaction**, bool) () from /usr/local/lib/libCling.so
      #19 0x00007f62b8a3e3cd in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from /usr/local/lib/libCling.so
      #20 0x00007f62b88fc27e in HandleInterpreterException (metaProcessor=0x5569d9bbcc70, input_line=<optimized out>, compRes=
      0x7ffc5e830c1c: cling::Interpreter::kSuccess, result=result
      entry=0x7ffc5e830c30) at .../root/core/metacling/src/TCling.cxx:2136
       

      but this works fine:

      auto hr2 = rd->Histo1D(*hm, "nTracks").GetValue();
      hr2.Draw();
      

      Hope I make something wrong, in other case hope it will help you to fix it.

      Yesterday I rebuild root from the sources with -std=c++1y flag.

      Good luck!
      Boris

        Attachments

          Activity

            People

            • Assignee:
              eguiraud Enrico Guiraud
              Reporter:
              brumyant Boris Rumyantsev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: