# Error in ROOT

**URL:** <https://root-forum.cern.ch/t/error-in-root/21794>\
**Category:** ROOT\
**Created:** [September 1, 2016, 11:01am UTC](https://root-forum.cern.ch/t/error-in-root/21794 "2016-09-01T11:01:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mai.elsawy](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@mai.elsawy](https://root-forum.cern.ch/u/mai.elsawy)\
**Post date:** [September 1, 2016, 11:01am UTC](https://root-forum.cern.ch/t/error-in-root/21794/1 "2016-09-01T11:01:44Z")

</div>

Hi ,

Please can you help me in solving this error.

Sometimes it appears and sometimes not so i need to understand what is that?

thanks,

Mai

```auto
root [3] TBrowser b
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Error in <RootX11ErrorHandler>: GLXBadContext (XID: 6291709, XREQ: 149)
```

---

<div class="post-metadata">

**Author:** ![mato](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mato/32/12317_2.png) [@mato](https://root-forum.cern.ch/u/mato)\
**Post date:** [September 1, 2016, 12:05pm UTC](https://root-forum.cern.ch/t/error-in-root/21794/2 "2016-09-01T12:05:19Z")

</div>

Hi, Can you please provide additional information. On which machine? remote login? what version of ROOT? from where you got the installation? etc.

---

<div class="post-metadata">

**Author:** ![mai.elsawy](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@mai.elsawy](https://root-forum.cern.ch/u/mai.elsawy)\
**Post date:** [September 1, 2016, 1:59pm UTC](https://root-forum.cern.ch/t/error-in-root/21794/3 "2016-09-01T13:59:10Z")

</div>

Hi,

This happen when i am using root from LXPLUS account , i am using my mac mashine , Version 5.34/36

thanks,

Mai

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [September 1, 2016, 2:27pm UTC](https://root-forum.cern.ch/t/error-in-root/21794/4 "2016-09-01T14:27:24Z")

</div>

do you access lxplus with:

```auto
 ssh -Y lxplus
```

?

---

<div class="post-metadata">

**Author:** ![mato](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mato/32/12317_2.png) [@mato](https://root-forum.cern.ch/u/mato)\
**Post date:** [September 1, 2016, 3:31pm UTC](https://root-forum.cern.ch/t/error-in-root/21794/5 "2016-09-01T15:31:26Z")

</div>

You will need to upgrade to the latest latest version of XQuartz. See topic [X11 forwarding through ssh on lxplus](https://root-forum.cern.ch/t/x11-forwarding-through-ssh-on-lxplus/19836/1)

---

<div class="post-metadata">

**Author:** ![mai.elsawy](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@mai.elsawy](https://root-forum.cern.ch/u/mai.elsawy)\
**Post date:** [September 2, 2016, 9:34am UTC](https://root-forum.cern.ch/t/error-in-root/21794/6 "2016-09-02T09:34:06Z")

</div>

Hi,

Yes i am using ssh -X -Y

i will try to check the latest version of XQuartz

thanks,

Mai

---

<div class="post-metadata">

**Author:** ![mai.elsawy](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@mai.elsawy](https://root-forum.cern.ch/u/mai.elsawy)\
**Post date:** [September 2, 2016, 9:39am UTC](https://root-forum.cern.ch/t/error-in-root/21794/7 "2016-09-02T09:39:05Z")

</div>

Hi,

The version release is the latest (i think)  
XQuartz 2.7.10\_beta2 (xorg-server 1.18.3)

what should i do now?

thanks,

Mai

---

<div class="post-metadata">

**Author:** ![mato](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mato/32/12317_2.png) [@mato](https://root-forum.cern.ch/u/mato)\
**Post date:** [September 2, 2016, 9:49am UTC](https://root-forum.cern.ch/t/error-in-root/21794/8 "2016-09-02T09:49:47Z")

</div>

Did you run the command

```auto
defaults write org.macosforge.xquartz.X11 enable_iglx -bool true
```

and rebooted your Mac to activate the new Quartz?

---

<div class="post-metadata">

**Author:** ![mai.elsawy](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@mai.elsawy](https://root-forum.cern.ch/u/mai.elsawy)\
**Post date:** [September 2, 2016, 10:39am UTC](https://root-forum.cern.ch/t/error-in-root/21794/9 "2016-09-02T10:39:40Z")

</div>

Hi,

No, i mean my current XQuartz version is XQuartz 2.7.10\_beta2 (xorg-server 1.18.3) , so i dont think i need to update it.

Also when i was trying to run my macro i got the below error, so i need to sort out where is the problem , is that related to ROOT , or XQuartz or my code itself.

sorry i am just a beginner so i need some details.

thanks,

Mai

root [1] Monopole t  
(Monopole &) @0x7fef1abff028  
root [2] t.Loop()  
Warning in TFile::Append: Replacing existing TH1: hist\_f51 (Potential memory leak).

\*\*\* Break \*\*\* segmentation violation

# =========================================================== There was a crash. This is the entire stack trace of all threads:

# #0 0x00007fef1a0487be in waitpid () from /lib64/libc.so.6 #1 0x00007fef19fda5c9 in do\_system () from /lib64/libc.so.6 #2 0x00007fef1aa9aa49 in TUnixSystem::StackTrace() () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCore.so #3 0x00007fef1aa9c94c in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCore.so #4 #5 0x00007fef0fe0c24f in Monopole::SelectFirstSC(float&) () from /afs/cern.ch/user/m/melsawy/private/Monopole\_Ntuple/CMSSW\_8\_0\_13/src/MonopoleAnalysis/NtupleAnalyzer/test/Monopole\_C.so #6 0x00007fef0fe0c459 in Monopole::Loop() () from /afs/cern.ch/user/m/melsawy/private/Monopole\_Ntuple/CMSSW\_8\_0\_13/src/MonopoleAnalysis/NtupleAnalyzer/test/Monopole\_C.so #7 0x00007fef0fdf004c in ?? () #8 0x00007fef1ada7200 in ?? () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/external/gcc/5.3.0/lib64/libstdc++.so.6 #9 0x00007fff623a5f20 in ?? () #10 0x00007fff623a5bd0 in ?? () #11 0x00007fef173a2d9b in cling::Interpreter::RunFunction(clang::FunctionDecl const\*, cling::Value\*) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCling.so #12 0x00007fef173a8fc9 in cling::Interpreter::EvaluateInternal(std::string const&, cling::CompilationOptions, cling::Value\*, cling::Transaction\*\*) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCling.so #13 0x00007fef173a9187 in cling::Interpreter::process(std::string const&, cling::Value\*, cling::Transaction\*\*) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCling.so #14 0x00007fef1742da2b in cling::MetaProcessor::process(char const\*, cling::Interpreter::CompilationResult&, cling::Value\*) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCling.so #15 0x00007fef1732ccce in TCling::ProcessLine(char const\*, TInterpreter::EErrorCode\*) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCling.so #16 0x00007fef1a9f399e in TApplication::ProcessLine(char const\*, bool, int\*) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCore.so #17 0x00007fef1adc323f in TRint::ProcessLineNr(char const\*, char const\*, int\*) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libRint.so #18 0x00007fef1adc350b in TRint::HandleTermInput() () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libRint.so #19 0x00007fef1aa9c11c in TUnixSystem::CheckDescriptors() () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCore.so #20 0x00007fef1aa9d1fa in TUnixSystem::DispatchOneEvent(bool) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCore.so #21 0x00007fef1a9e2bd4 in TSystem::InnerLoop() () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCore.so #22 0x00007fef1a9e17df in TSystem::Run() () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCore.so #23 0x00007fef1a9f103f in TApplication::Run(bool) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCore.so #24 0x00007fef1adc48d3 in TRint::Run(bool) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libRint.so #25 0x00000000004010dc in main ()

# The lines below might hint at the cause of the crash. If they do not help you then please submit a bug report at [root.cern.ch/bugs](http://root.cern.ch/bugs). Please post the ENTIRE stack trace from above as an attachment in addition to anything else that might help us fixing this issue.

# #5 0x00007fef0fe0c24f in Monopole::SelectFirstSC(float&) () from /afs/cern.ch/user/m/melsawy/private/Monopole\_Ntuple/CMSSW\_8\_0\_13/src/MonopoleAnalysis/NtupleAnalyzer/test/Monopole\_C.so #6 0x00007fef0fe0c459 in Monopole::Loop() () from /afs/cern.ch/user/m/melsawy/private/Monopole\_Ntuple/CMSSW\_8\_0\_13/src/MonopoleAnalysis/NtupleAnalyzer/test/Monopole\_C.so #7 0x00007fef0fdf004c in ?? () #8 0x00007fef1ada7200 in ?? () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/external/gcc/5.3.0/lib64/libstdc++.so.6 #9 0x00007fff623a5f20 in ?? () #10 0x00007fff623a5bd0 in ?? () #11 0x00007fef173a2d9b in cling::Interpreter::RunFunction(clang::FunctionDecl const\*, cling::Value\*) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCling.so #12 0x00007fef173a8fc9 in cling::Interpreter::EvaluateInternal(std::string const&, cling::CompilationOptions, cling::Value\*, cling::Transaction\*\*) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCling.so #13 0x00007fef173a9187 in cling::Interpreter::process(std::string const&, cling::Value\*, cling::Transaction\*\*) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCling.so #14 0x00007fef1742da2b in cling::MetaProcessor::process(char const\*, cling::Interpreter::CompilationResult&, cling::Value\*) () from /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/lib/libCling.so

---

<div class="post-metadata">

**Author:** ![mato](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mato/32/12317_2.png) [@mato](https://root-forum.cern.ch/u/mato)\
**Post date:** [September 2, 2016, 12:46pm UTC](https://root-forum.cern.ch/t/error-in-root/21794/10 "2016-09-02T12:46:32Z")

</div>

Sorry, again did you run the command “defaults write org.macosforge.xquartz.X11 enable\_iglx -bool true” in a terminal? and rebooted your Mac to activate the new Quartz?

The crash you are reporting is now different. The problem is in Monopole::SelectFirstSC(float&) and this is not a ROOT code.
