“Error ‘Could not locate DTrace server’”
Oct 29th, 2007 by rb
Mhm. Intersting. When I try to use ‘Instruments’ to, for example, x-ray Chess, only some sensors, like ObjectAlloc work. Other sensors, like File Activity or Reads / Writes print the message “Error ‘Could not locate DTrace server’ in the timeline. The activity monitor also does not work. Unfortunately there seems to be no information in the net available yet.
Also, when I installed the Developer Tools, the installation aborted with an unspecified error message, however all tools seem to be installed.
Update
I’m not sure which steps exactly fixed the problem, but it seems to work again: I manually installed some of the packages out of the Packages-directory within the XCode folder, did a repair permissions and installed XCodeTools all over again.
Now I also get a new “DTrace Error - error on enabled probe ID x (ID xxx:yyy:zzz) invalid address (0x…) in action #y”. This however only appears to happen with certain probes, when I try to launch a new application from within Instruments. When attaching to an already running process everything looks fine. I have not fully understood it yet, but I guess (according to some Solaris-newsgroups) this is in some way caused by too many events / overhead / whatever related to the sensor-input. Changing the buffer size and stack-depth to 256 in the DTrace options delays the crash for a (very, very short) moment, but does not prevent it.