# Strange bug when using EnableImplicitMT() with TVirtualFitter.GetFitter()

**URL:** <https://root-forum.cern.ch/t/strange-bug-when-using-enableimplicitmt-with-tvirtualfitter-getfitter/57884>\
**Category:** ROOT\
**Tags:** roofit, python, hist, root\
**Created:** [January 18, 2024, 4:42am UTC](https://root-forum.cern.ch/t/strange-bug-when-using-enableimplicitmt-with-tvirtualfitter-getfitter/57884 "2024-01-18T04:42:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhiyuanlcern](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zhiyuanlcern/32/31409_2.png) [@zhiyuanlcern](https://root-forum.cern.ch/u/zhiyuanlcern)\
**Post date:** [January 18, 2024, 4:42am UTC](https://root-forum.cern.ch/t/strange-bug-when-using-enableimplicitmt-with-tvirtualfitter-getfitter/57884/1 "2024-01-18T04:42:45Z")

</div>

_ROOT Version:_ 6.28/04  
_Platform:_ linuxx8664gcc  
_Compiler:_ g++ (GCC) 11.3.0

* * *

I notieced a strange bug or issue while using ROOT.EnableImplicitMT() together with ROOT.TVirtualFitter.GetFitter().GetConfidenceIntervals(h) (where h is a histogram) in python. Without the multithread enabled, this runs perfectly; while activating multithread returns:

```auto
 R.TVirtualFitter.GetFitter().GetConfidenceIntervals(h)
TypeError: none of the 2 overloaded methods succeeded. Full details:
  attempt to access a null-pointer
  void TVirtualFitter::GetConfidenceIntervals(int n, int ndim, const double* x, double* ci, double cl = 0.94999999999999996) =>
    TypeError: takes at least 4 arguments (1 given)

```

The only trigger to this bug is whether I use EnableImplicitMT.

Cheers,  
Jordan

---

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [January 18, 2024, 8:27am UTC](https://root-forum.cern.ch/t/strange-bug-when-using-enableimplicitmt-with-tvirtualfitter-getfitter/57884/2 "2024-01-18T08:27:53Z")

</div>

Dear @zhiyuanlcern ,

Thanks for reaching out to the forum! That looks weird indeed, would you be able to provide us with a full reproducer so we can debug further?

Cheers,  
Vincenzo

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [February 1, 2024, 8:28am UTC](https://root-forum.cern.ch/t/strange-bug-when-using-enableimplicitmt-with-tvirtualfitter-getfitter/57884/3 "2024-02-01T08:28:15Z")

</div>

Closed on February 1, 2024, 8:28am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
