Problems while exiting root .q with canvas (2)

Ciao,

I have the very same same problem as described here:

https://root-forum.cern.ch/t/problems-while-exiting-root-q-with-canvas/36167/3

If I call a function that creates a TCanvas, and I close this canvas, I get a root crash when I “.q” ROOT:

root [0] .L Analysis/DAQ_light.C+
Info in <TMacOSXSystem::ACLiC>: creating shared library /Volumes/amssw/duranti/POXsimu_install/./Analysis/DAQ_light_C.so
root [1] DAQ()
root [2] .q
2019-12-09 10:50:31.535 root.exe[27017:4477869] Fatal error: requested non-existing drawable 99
2019-12-09 10:50:31.535 root.exe[27017:4477869] This window not found among allocated/deleted drawables

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::SetDoubleBuffer(int) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/graf2d/gpad/src/TCanvas.cxx:1946
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::Close(char const*) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/graf2d/gpad/src/TCanvas.cxx:1083
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::~TCanvas() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/graf2d/gpad/src/TCanvas.cxx:685
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::~TCanvas() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/graf2d/gpad/src/TCanvas.cxx:652
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TList::Delete(char const*) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/cont/src/TList.cxx:505
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TROOT::EndOfProcessCleanups() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/base/src/TROOT.cxx:1268
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TUnixSystem::Exit(int, bool) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/unix/src/TUnixSystem.cxx:2149
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::Terminate(int) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/base/src/TApplication.cxx:1254
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::ProcessLine(char const*, bool, int*) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/base/src/TApplication.cxx:0
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/rint/src/TRint.cxx:761
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::HandleTermInput() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/rint/src/TRint.cxx:608
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TUnixSystem::CheckDescriptors() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/unix/src/TUnixSystem.cxx:1311
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/macosx/src/TMacOSXSystem.mm:378
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TSystem::InnerLoop() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/base/src/TSystem.cxx:413
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TSystem::Run() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/base/src/TSystem.cxx:363
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::Run(bool) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/base/src/TApplication.cxx:1179
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::Run(bool) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/rint/src/TRint.cxx:463
[/amssw/duranti/root-6.18.00_install/bin/root.exe] main /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/main/src/rmain.cxx:32
[/usr/lib/system/libdyld.dylib] start (no debug info)
[<unknown binary>] (no debug info)
Root > .q

and I have to issue a “.q” for each closed canvas. If I close ALL the canvases, instead, ROOT exits without any crash.

Here the very very minimal macro to reproduce the problem:

#include "TCanvas.h"

void PlotHits(){

  TCanvas* c = new TCanvas();
  
  return;
}

/////////////////////////////////////////////////////////////

void DAQ() {

  PlotHits();
  PlotHits();

  return;
}

this happens both compiling or not the macro:

root [0] .L Analysis/DAQ_light.C+
Info in <TMacOSXSystem::ACLiC>: creating shared library /Volumes/amssw/duranti/POXsimu_install/./Analysis/DAQ_light_C.so
root [1] DAQ()
root [2] .q
2019-12-09 10:50:31.535 root.exe[27017:4477869] Fatal error: requested non-existing drawable 99
2019-12-09 10:50:31.535 root.exe[27017:4477869] This window not found among allocated/deleted drawables

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)

...
root [0] .L Analysis/DAQ_light.C
root [1] DAQ()
root [2] .q
2019-12-09 10:57:18.547 root.exe[27423:4518687] Fatal error: requested non-existing drawable 99
2019-12-09 10:57:18.547 root.exe[27423:4518687] This window not found among allocated/deleted drawables

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)

Matteo


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.18/00
Platform: MacOsX Mojave 10.14.6
Compiler: Apple clang version 11.0.0 (clang-1100.0.33.8)


It seems fine with a more recent version of root:

% root
   ------------------------------------------------------------------
  | Welcome to ROOT 6.19/01                        https://root.cern |
  | (c) 1995-2019, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for macosx64 on Dec 02 2019, 11:38:41                      |
  | From heads/master@v6-19-01-2081-gb9f6035b8a                      |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |
   ------------------------------------------------------------------

root [0] .L DAQ.C
root [1] DAQ()
root [2] .q
$

Try with:

#include "TSystem.h"
// ...
  TCanvas* c = new TCanvas();
  c->Update();
  gSystem->ProcessEvents(); // one
  gSystem->ProcessEvents(); // two

Ciao,

  • it crashes also adding the suggestion from Wile_E_Coyote

  • it crashing event without any macro:

$> root
root [0] TCanvas* c = new TCanvas()
(TCanvas *) 0x7fafa1df2730
root [1] TCanvas* d = new TCanvas()
(TCanvas *) 0x7fafa416c660
root [2] .q
2019-12-09 12:32:16.158 root.exe[34451:4939586] Fatal error: requested non-existing drawable 99
2019-12-09 12:32:16.158 root.exe[34451:4939586] This window not found among allocated/deleted drawables

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::SetDoubleBuffer(int) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/graf2d/gpad/src/TCanvas.cxx:1946
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::Close(char const*) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/graf2d/gpad/src/TCanvas.cxx:1083
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::~TCanvas() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/graf2d/gpad/src/TCanvas.cxx:685
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::~TCanvas() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/graf2d/gpad/src/TCanvas.cxx:652
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TList::Delete(char const*) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/cont/src/TList.cxx:505
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TROOT::EndOfProcessCleanups() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/base/src/TROOT.cxx:1268
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TUnixSystem::Exit(int, bool) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/unix/src/TUnixSystem.cxx:2149
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::Terminate(int) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/base/src/TApplication.cxx:1254
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::ProcessLine(char const*, bool, int*) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/base/src/TApplication.cxx:0
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/rint/src/TRint.cxx:761
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::HandleTermInput() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/rint/src/TRint.cxx:608
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TUnixSystem::CheckDescriptors() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/unix/src/TUnixSystem.cxx:1311
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/macosx/src/TMacOSXSystem.mm:378
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TSystem::InnerLoop() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/base/src/TSystem.cxx:413
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TSystem::Run() /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/base/src/TSystem.cxx:363
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::Run(bool) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/base/src/TApplication.cxx:1179
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::Run(bool) /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/core/rint/src/TRint.cxx:463
[/amssw/duranti/root-6.18.00_install/bin/root.exe] main /Volumes/CaseSensitive2/amssw_cold/duranti/root-6.18.00/main/src/rmain.cxx:32
[/usr/lib/system/libdyld.dylib] start (no debug info)
[<unknown binary>] (no debug info)

if I close one of the two canvases before quitting ROOT…

  • Now I’ll compile and try 6.19…

Thanks,
Matteo

Sorry,

I don’t even know where to take it…

By cloning the git repo?

Matteo

See te “Building” section here:

Ciao,

the same:

$> root
root [0] TCanvas* c = new TCanvas()
(TCanvas *) 0x7f9a855c3980
root [1] TCanvas* d = new TCanvas()
(TCanvas *) 0x7f9a850e4f50
root [2] .q
2019-12-09 18:21:23.622 root.exe[7008:6539304] Fatal error: requested non-existing drawable 99
2019-12-09 18:21:23.622 root.exe[7008:6539304] This window not found among allocated/deleted drawables

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libGpad.so] TCanvas::SetDoubleBuffer(int) /Volumes/CaseSensitive2/amssw/duranti/root/graf2d/gpad/src/TCanvas.cxx:1946
[/amssw/duranti/root-6.19.01_install/lib/libGpad.so] TCanvas::Close(char const*) /Volumes/CaseSensitive2/amssw/duranti/root/graf2d/gpad/src/TCanvas.cxx:1083
[/amssw/duranti/root-6.19.01_install/lib/libGpad.so] TCanvas::~TCanvas() /Volumes/CaseSensitive2/amssw/duranti/root/graf2d/gpad/src/TCanvas.cxx:685
[/amssw/duranti/root-6.19.01_install/lib/libGpad.so] TCanvas::~TCanvas() /Volumes/CaseSensitive2/amssw/duranti/root/graf2d/gpad/src/TCanvas.cxx:652
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TList::Delete(char const*) /Volumes/CaseSensitive2/amssw/duranti/root/core/cont/src/TList.cxx:505
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TROOT::EndOfProcessCleanups() /Volumes/CaseSensitive2/amssw/duranti/root/core/base/src/TROOT.cxx:1268
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TUnixSystem::Exit(int, bool) /Volumes/CaseSensitive2/amssw/duranti/root/core/unix/src/TUnixSystem.cxx:2149
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TApplication::Terminate(int) /Volumes/CaseSensitive2/amssw/duranti/root/core/base/src/TApplication.cxx:1254
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TApplication::ProcessLine(char const*, bool, int*) /Volumes/CaseSensitive2/amssw/duranti/root/core/base/src/TApplication.cxx:0
[/amssw/duranti/root-6.19.01_install/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) /Volumes/CaseSensitive2/amssw/duranti/root/core/rint/src/TRint.cxx:761
[/amssw/duranti/root-6.19.01_install/lib/libRint.so] TRint::HandleTermInput() /Volumes/CaseSensitive2/amssw/duranti/root/core/rint/src/TRint.cxx:608
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TUnixSystem::CheckDescriptors() /Volumes/CaseSensitive2/amssw/duranti/root/core/unix/src/TUnixSystem.cxx:1311
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) /Volumes/CaseSensitive2/amssw/duranti/root/core/macosx/src/TMacOSXSystem.mm:378
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TSystem::InnerLoop() /Volumes/CaseSensitive2/amssw/duranti/root/core/base/src/TSystem.cxx:413
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TSystem::Run() /Volumes/CaseSensitive2/amssw/duranti/root/core/base/src/TSystem.cxx:363
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TApplication::Run(bool) /Volumes/CaseSensitive2/amssw/duranti/root/core/base/src/TApplication.cxx:1179
[/amssw/duranti/root-6.19.01_install/lib/libRint.so] TRint::Run(bool) /Volumes/CaseSensitive2/amssw/duranti/root/core/rint/src/TRint.cxx:463
[/amssw/duranti/root-6.19.01_install/bin/root.exe] main /Volumes/CaseSensitive2/amssw/duranti/root/main/src/rmain.cxx:32
[/usr/lib/system/libdyld.dylib] start (no debug info)
[<unknown binary>] (no debug info)
Root > .q
$> root-config --version
6.19/01

maybe the problem is with Mojave?

Matteo

Fine for me on Mac:

$ root
   ------------------------------------------------------------------
  | Welcome to ROOT 6.19/01                        https://root.cern |
  | (c) 1995-2019, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for macosx64 on Dec 02 2019, 11:38:41                      |
  | From heads/master@v6-19-01-2081-gb9f6035b8a                      |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |
   ------------------------------------------------------------------

root [0] TCanvas* c = new TCanvas()
(TCanvas *) 0x7fbe72901d00
root [1] TCanvas* d = new TCanvas()
(TCanvas *) 0x7fbea25ee710
root [2] .q
$

There was a fix some time ago to correct a similar/this issue.
I do not think Mojave is the problem. That’s really weird. If you have
reinstalled ROOT and you run the newly installed ROOT it should work.
You have run $ROOTSYS/bin/thisroot.sh I guess ?

If you give different names to the two canvases it should be ok. But that bug was fixed.

Ciao,

of course I run the thisroot.sh script…

$> root
   ------------------------------------------------------------
  | Welcome to ROOT 6.18/00                  https://root.cern |
  |                               (c) 1995-2019, The ROOT Team |
  | Built for macosx64 on Jun 25 2019, 09:22:23                |
  | From tags/v6-18-00@v6-18-00                                |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------

root [0] TCanvas* d = new TCanvas("pluto")
(TCanvas *) 0x7fc0f7e3e0f0
root [1] TCanvas* c = new TCanvas("pippo")
(TCanvas *) 0x7fc0f789ce00
root [2] .q
2019-12-10 11:50:36.906 root.exe[22442:7049543] Fatal error: requested non-existing drawable 99
2019-12-10 11:50:36.906 root.exe[22442:7049543] This window not found among allocated/deleted drawables

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::SetDoubleBuffer(int) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::Close(char const*) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::~TCanvas() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::~TCanvas() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TList::Delete(char const*) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TROOT::EndOfProcessCleanups() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TUnixSystem::Exit(int, bool) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::Terminate(int) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::ProcessLine(char const*, bool, int*) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::HandleTermInput() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TUnixSystem::CheckDescriptors() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TSystem::InnerLoop() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TSystem::Run() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::Run(bool) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::Run(bool) (no debug info)
[/amssw/duranti/root-6.18.00_install/bin/root.exe] main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)
[<unknown binary>] (no debug info)
Root > 
$> source /amssw/duranti/root-6.19.01_install/bin/thisroot.sh 
$> root
   ------------------------------------------------------------
  | Welcome to ROOT 6.19/01                  https://root.cern |
  |                               (c) 1995-2019, The ROOT Team |
  | Built for macosx64 on Dec 09 2019, 18:09:00                |
  | From tags/v6-19-01@v6-19-01                                |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------

Warning in <TFile::Init>: no StreamerInfo found in /amssw/duranti/GGSSoftware_install/lib/libGGSDataObjects_rdict.pcm therefore preventing schema evolution when reading this file.
Warning in <TFile::Init>: no StreamerInfo found in /amssw/duranti/GGSSoftware_install/lib/libGGSReader_rdict.pcm therefore preventing schema evolution when reading this file.
Error in <TMacOSXSystem::Load>: version mismatch, /amssw/duranti/GGSSoftware_install/lib/libGGSReader.dylib = 61800, ROOT = 61901
root [0] TCanvas* c = new TCanvas("pippo")
(TCanvas *) 0x7fd5f3eb5e20
root [1] TCanvas* d = new TCanvas("pluto")
(TCanvas *) 0x7fd5f8c61a40
root [2] .q
2019-12-10 11:52:21.675 root.exe[22574:7057688] Fatal error: requested non-existing drawable 99
2019-12-10 11:52:21.675 root.exe[22574:7057688] This window not found among allocated/deleted drawables

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libGpad.so] TCanvas::SetDoubleBuffer(int) (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libGpad.so] TCanvas::Close(char const*) (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libGpad.so] TCanvas::~TCanvas() (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libGpad.so] TCanvas::~TCanvas() (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TList::Delete(char const*) (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TROOT::EndOfProcessCleanups() (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TUnixSystem::Exit(int, bool) (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TApplication::Terminate(int) (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TApplication::ProcessLine(char const*, bool, int*) (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libRint.so] TRint::HandleTermInput() (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TUnixSystem::CheckDescriptors() (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TSystem::InnerLoop() (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TSystem::Run() (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libCore.so] TApplication::Run(bool) (no debug info)
[/amssw/duranti/root-6.19.01_install/lib/libRint.so] TRint::Run(bool) (no debug info)
[/amssw/duranti/root-6.19.01_install/bin/root.exe] main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)
[<unknown binary>] (no debug info)
Root > 

Matteo

It seems to me that you have some “.rootrc” and/or “rootlogon.C” which create this problem.

Can you try:

  1. to start root with option “-n” … if it works it will means there is something in your rootlogon.C which creates the problem.
  2. Also can you also try to name your canvases ?

Ciao,

  1. the same:
bozzo@MacBookTouchBar-Pro-di-Matteo-Duranti-2:POXsimu_install> root -n
root [0] TCanvas* d = new TCanvas()
(TCanvas *) 0x7ffe70c9d0e0
root [1] TCanvas* c = new TCanvas()
(TCanvas *) 0x7ffe743856a0
root [2] .q
2019-12-10 13:51:04.302 root.exe[35574:7621650] Fatal error: requested non-existing drawable 99
2019-12-10 13:51:04.302 root.exe[35574:7621650] This window not found among allocated/deleted drawables

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::SetDoubleBuffer(int) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::Close(char const*) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::~TCanvas() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::~TCanvas() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TList::Delete(char const*) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TROOT::EndOfProcessCleanups() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TUnixSystem::Exit(int, bool) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::Terminate(int) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::ProcessLine(char const*, bool, int*) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::HandleTermInput() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TUnixSystem::CheckDescriptors() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TSystem::InnerLoop() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TSystem::Run() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::Run(bool) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::Run(bool) (no debug info)
[/amssw/duranti/root-6.18.00_install/bin/root.exe] main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)
Root >
  1. Is what I did in my previous try, isn’t?
    However, even with the title:
bozzo@MacBookTouchBar-Pro-di-Matteo-Duranti-2:POXsimu_install> root -n
root [0] TCanvas* c = new TCanvas("pippo", "pippo")
(TCanvas *) 0x7f84fd6a13f0
root [1] TCanvas* d = new TCanvas("pluto", "pluto")
(TCanvas *) 0x7f84fd6ec930
root [2] .q
2019-12-10 13:56:55.298 root.exe[35848:7655384] Fatal error: requested non-existing drawable 99
2019-12-10 13:56:55.298 root.exe[35848:7655384] This window not found among allocated/deleted drawables

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::SetDoubleBuffer(int) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::Close(char const*) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::~TCanvas() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libGpad.so] TCanvas::~TCanvas() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TList::Delete(char const*) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TROOT::EndOfProcessCleanups() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TUnixSystem::Exit(int, bool) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::Terminate(int) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::ProcessLine(char const*, bool, int*) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::HandleTermInput() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TUnixSystem::CheckDescriptors() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TSystem::InnerLoop() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TSystem::Run() (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libCore.so] TApplication::Run(bool) (no debug info)
[/amssw/duranti/root-6.18.00_install/lib/libRint.so] TRint::Run(bool) (no debug info)
[/amssw/duranti/root-6.18.00_install/bin/root.exe] main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)
Root > 

Thanks,
Matteo

Ah yes sorry …
so I have no idea what’s going wrong with your environment.

Are you using the machine remotely ?

Ciao,

no, is my laptop…

Can this help you?

cmake  -DCMAKE_CXX_STANDARD="14" -Dgdml="ON" -Dhttp="ON" -Dlibcxx="ON" -Droofit="ON" -Dfortran=ON ../root-6.18.00
$> root-config --features
cxx14 asimage astiff builtin_afterimage builtin_clang builtin_davix builtin_freetype builtin_ftgl builtin_glew builtin_llvm builtin_vdt clad cling cocoa davix exceptions explicitlink fftw3 fitsio fortran gdml http imt libcxx mathmore mysql opengl pch pgsql pythia8 python roofit webgui root7 shared sqlite ssl thread tmva tmva-cpu tmva-pymva vdt xml xrootd
$> root-config --config
BLAS_Accelerate_LIBRARY=/System/Library/Frameworks/Accelerate.framework Backtrace_INCLUDE_DIR=/usr/include CFITSIO_INCLUDE_DIR=/usr/local/include CFITSIO_LIBRARY=/usr/local/lib/libcfitsio.dylib CLANG_EXECUTABLE_VERSION=5.0 CMAKE_CACHE_MAJOR_VERSION=3 CMAKE_CACHE_MINOR_VERSION=15 CMAKE_CACHE_PATCH_VERSION=4 CURL_INCLUDE_DIR=/usr/include CURL_LIBRARY_RELEASE=/usr/lib/libcurl.dylib DAVIX_INCLUDE_DIR=/amssw/duranti/root-6.18.00_build/builtins/davix/DAVIX-prefix/include/davix DAVIX_INCLUDE_DIRS=/amssw/duranti/root-6.18.00_build/builtins/davix/DAVIX-prefix/include/davix DAVIX_LIBRARY=/amssw/duranti/root-6.18.00_build/builtins/davix/DAVIX-prefix/lib/libdavix.a DL_LIBRARY_PATH=/usr/lib/libdl.dylib FFTW_INCLUDE_DIR=/usr/local/include FFTW_LIBRARY=/usr/local/lib/libfftw3.dylib GIF_INCLUDE_DIR=/usr/local/include GIF_LIBRARY=/usr/local/lib/libgif.dylib GL2PS_INCLUDE_DIR=/usr/local/include GL2PS_LIBRARY=/usr/local/lib/libgl2ps.dylib GSL_CBLAS_LIBRARY=/usr/local/Cellar/gsl/2.6/lib/libgslcblas.dylib GSL_CBLAS_LIBRARY_DEBUG=/usr/local/Cellar/gsl/2.6/lib/libgslcblas.dylib GSL_INCLUDEDIR=/usr/local/Cellar/gsl/2.6/include GSL_INCLUDE_DIR=/usr/local/Cellar/gsl/2.6/include GSL_INCLUDE_DIRS=/usr/local/Cellar/gsl/2.6/include GSL_LIBRARY=/usr/local/Cellar/gsl/2.6/lib/libgsl.dylib GSL_LIBRARY_DEBUG=/usr/local/Cellar/gsl/2.6/lib/libgsl.dylib GSL_LIBRARY_DIRS=/usr/local/Cellar/gsl/2.6/lib GSL_STATIC_INCLUDE_DIRS=/usr/local/Cellar/gsl/2.6/include GSL_STATIC_LIBRARY_DIRS=/usr/local/Cellar/gsl/2.6/lib GSL_VERSION=2.6 JPEG_INCLUDE_DIR=/usr/local/include JPEG_LIBRARY=/usr/local/lib/libjpeg.dylib JPEG_LIBRARY_RELEASE=/usr/local/lib/libjpeg.dylib LIBCLANG_LIBRARY_VERSION=5.0 LIBXML2_INCLUDE_DIR=/usr/include/libxml2 LIBXML2_LIBRARY=/usr/lib/libxml2.dylib LLVM_DYLIB_SYMBOL_VERSIONING=OFF LLVM_INCLUDE_EXAMPLES=OFF LLVM_INCLUDE_RUNTIMES=ON LLVM_INCLUDE_TOOLS=ON LLVM_INCLUDE_UTILS=ON LLVM_VERSION_PRINTER_SHOW_HOST_TARGET_INFO=ON LZ4_INCLUDE_DIR=/usr/local/include LZ4_LIBRARY=/usr/local/lib/liblz4.dylib LZMA_INCLUDE_DIR=/usr/local/include LZMA_LIBRARY=/usr/local/lib/liblzma.dylib MYSQL_INCLUDE_DIR=/usr/local/opt/mysql/include/mysql NUMPY_INCLUDE_DIR=/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include OPENGL_INCLUDE_DIR=/System/Library/Frameworks/OpenGL.framework OPENGL_gl_LIBRARY=/System/Library/Frameworks/OpenGL.framework OPENGL_glu_LIBRARY=/System/Library/Frameworks/OpenGL.framework OPENSSL_CRYPTO_LIBRARY=/usr/local/Cellar/openssl/1.0.2t/lib/libcrypto.dylib OPENSSL_INCLUDE_DIR=/usr/local/Cellar/openssl/1.0.2t/include OPENSSL_SSL_LIBRARY=/usr/local/Cellar/openssl/1.0.2t/lib/libssl.dylib PCRE_INCLUDE_DIR=/usr/local/include PCRE_PCRE_LIBRARY_DEBUG=/usr/local/lib/libpcre.dylib PCRE_PCRE_LIBRARY_RELEASE=/usr/local/lib/libpcre.dylib PC_CURL_INCLUDEDIR=/usr/include PC_CURL_LIBRARIES=curl PC_CURL_VERSION=7.54.0 PC_LIBXML_INCLUDEDIR=/usr/include PC_LIBXML_INCLUDE_DIRS=/usr/include/libxml2 PC_LIBXML_LIBRARIES=xml2 PC_LIBXML_STATIC_INCLUDE_DIRS=/usr/include/libxml2 PC_LIBXML_VERSION=2.9.4 PC_SQLITE_INCLUDEDIR=/usr/include PC_SQLITE_LIBRARIES=sqlite3 PC_SQLITE_STATIC_LIBRARIES=sqlite3 PC_SQLITE_VERSION=3.24.0 PNG_LIBRARY=/usr/local/lib/libpng.dylib PNG_LIBRARY_RELEASE=/usr/local/lib/libpng.dylib PNG_PNG_INCLUDE_DIR=/usr/local/include PYTHIA8_INCLUDE_DIR=/usr/local/include PYTHIA8_LIBRARY=/usr/local/lib/libpythia8.dylib PYTHON_INCLUDE_DIR=/usr/include/python2.7 PYTHON_LIBRARY=/usr/lib/libpython2.7.dylib PYTHON_LIBRARY_RELEASE=/usr/lib/libpython2.7.dylib PostgreSQL_INCLUDE_DIR=/usr/local/include PostgreSQL_LIBRARY=/usr/local/lib/libpq.dylib SQLITE_INCLUDE_DIR=/usr/include SQLITE_LIBRARIES=/usr/lib/libsqlite3.dylib TBB_INCLUDE_DIR=/usr/local/include TBB_LIBRARY=/usr/local/lib/libtbb.dylib TBB_LIBRARY_RELEASE=/usr/local/lib/libtbb.dylib TIFF_INCLUDE_DIR=/usr/local/include TIFF_LIBRARY=/usr/local/lib/libtiff.dylib TIFF_LIBRARY_RELEASE=/usr/local/lib/libtiff.dylib UUID_INCLUDE_DIR=/usr/include VDT_INCLUDE_DIR=/amssw/duranti/root-6.18.00_build/include XROOTD_INCLUDE_DIR=/usr/local/include/xrootd XROOTD_XrdCl_LIBRARY=/usr/local/lib/libXrdCl.dylib XROOTD_XrdClient_LIBRARY=/usr/local/lib/libXrdClient.dylib XROOTD_XrdUtils_LIBRARY=/usr/local/lib/libXrdUtils.dylib ZLIB_INCLUDE_DIR=/usr/include ZLIB_LIBRARY_RELEASE=/usr/lib/libz.dylib xxHash_INCLUDE_DIR=/usr/local/include xxHash_LIBRARY=/usr/local/lib/libxxhash.dylib

Matteo

If you have some offending “.rootrc” and/or “rootlogon.C", or you have some old ROOT version setup, it might be that the building of the new ROOT went wrong.