ROOT 6.06 on mac osX 10.11.6 startup very slow

Hi
I have found that occasionally ROOT takes in excess of 30s to startup and to load libraries and/or
macros.
I have found a similar question in this forum, but this occurrence is of different origin, as the suggestion
made there to solve it did not work for me.

The issue seems to be related to a problem with the clipboard (cpaste) service on mac.

If I run ROOT from user root, I get the following message, which seems(?) related to the problem:

deSangroMacBookPro:~ root# time root -q -b
2016-12-14 19:00:19.717 root[60993:3901389] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-14 19:00:19.718 root[60993:3901389] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-14 19:00:19.718 root[60993:3901389] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-14 19:00:19.718 root[60993:3901389] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-14 19:00:19.720 root[60993:3901389] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-14 19:00:19.720 root[60993:3901389] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-14 19:00:19.720 root[60993:3901389] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-14 19:00:19.720 root[60993:3901389] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-14 19:00:19.721 root[60993:3901389] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-14 19:00:19.721 root[60993:3901389] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-14 19:00:19.721 root[60993:3901389] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-14 19:00:19.724 root[60993:3901389] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data

| Welcome to ROOT 6.06/00 root.cern.ch |
| © 1995-2014, The ROOT Team |
| Built for macosx64 |
| From tag v6-06-00, 9 December 2015 |

Try ‘.help’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/’.q’

root [0]

real 0m30.532s
user 0m0.275s
sys 0m0.142s
deSangroMacBookPro:~ root#

As you can see, it takes 30s to complete the startup, and it takes a long time to compile/load any macro as well.

I tried to restart the notebook, but did not fix the problem.

Any ideas what could be the problem and how to fix it?

thanks Riccardo

Dear Riccardo,

Is this with ROOT binaries compiled by your self or downloaded?
Any chance to try with a more recent version of ROOT? 6.08, for example?

G Ganis

Dear Ganis,
thanks for the prompt reply.
I compiled root myself with clang/cmake.
What it is very puzzling is that, as I mentioned in my post, the problem is not always there.

For example, here is the output of the same command issued this morning from my office, instead of from home
(don’t mind the machine name: it’s still my laptop, only connected to the lab network):

desangrodesktop:~ root# time root -l -q -b
2016-12-15 10:37:53.328 root[1618:39467] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-15 10:37:53.329 root[1618:39467] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-15 10:37:53.329 root[1618:39467] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-15 10:37:53.329 root[1618:39467] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-15 10:37:53.331 root[1618:39467] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-15 10:37:53.331 root[1618:39467] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-15 10:37:53.331 root[1618:39467] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-15 10:37:53.331 root[1618:39467] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-15 10:37:53.331 root[1618:39467] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-15 10:37:53.332 root[1618:39467] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-15 10:37:53.332 root[1618:39467] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2016-12-15 10:37:53.334 root[1618:39467] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
root [0]

real 0m0.361s
user 0m0.271s
sys 0m0.105s

So the error message is there, but this time is not causing any delays in the startup. It must then be something else causing the delay.

I’ll try root 6.08.
Riccardo

As a followup on my experience with the slow startup of root, I tried using root 6.08 out of the box for
Mac OS 10.11 and nothing changed. I summarise the tests I did here:

1- When connected to the internet on the work network, problem? NO.
2- When connected to the internet on my home network, problem? YES
3- When at home I disconnect from the internet (disable wireless), problem? NO
4-If I reconnect to home network, problem? YES

I will also add, just to make sure I mention it:

5- The problem is not only related to starting up root, it is also very slow compiling macros (.L macro.C++).

It is clear to me that root is using the network, at this point.
Maybe it needs some protocol on a port that may be shut off by my internet provider, and some process needs to timeout.
I don’t think that the problem may be related to the speed of my connection as I have an optical fibre service, and I measured up to 60/20Mbps download/upload.

Any ideas on where to look further?
thanks for any help

Try: [Linux]ROOT6 very slow startup
and/or: Root slow at startup when NOT connected to the internet

Dear Pepe,
thank you for you reply.

[quote=“Pepe Le Pew”]Try: [Linux]ROOT6 very slow startup
and/or: https://root-forum.cern.ch/t/root-slow-at-startup-when-not-connected-to-the-internet/10147/24[/quote]

The second link worked for me! :smiley:
In particular the command suggested in the last post of the thread:

sudo scutil --set HostName name_of_my_mac.local

I hope this doesn’t screw up the start up when I am working in the network back at work !
Riccardo