2

I am testing Force.com CLI. I can autenticate but any else. I get this error in OSX- El capitan

panic: runtime error: invalid memory address or nil pointer dereference

http://screencast.com/t/K87zZbHUFfj

Any idea?

  • This question doesn't really have anything to do with Apex or Lightning as far as I can tell. Somewhat humorous that the error message commands you to panic though. – Adrian Larson May 17 '16 at 15:20
1

The error message you received is not exclusive to the Force.com CLI, but it is due to the program attempting to access an invalid memory address or dereferencing a nil pointer and Go (the language the program is written in) throwing a runtime error.

According to the screenshot in your post, you receive the following error message after attempting to run the force log command:

panic: runtime error: invalid memory address or nil pointer dereference

[signal 0xb code=0x1 addr=0x0 pc=0x2b9d9]

According to the Go Documentation, the signal 0xb represents a SIGSEGV (segmentation violation).

Some common causes of this type of runtime error include:

  • Dereferencing a nil pointer
  • Attempting to access an array element that is out of bounds
  • Attempting to access memory for which the program does not have ownership
  • Attempting to access too much memory
  • Attempting to use an uninitialized pointer

One user had a similar problem when attempting to use the Force.com CLI on OS X El Capitan and was able to resolve the issue by changing the permissions on ~/.force/current/account to be readable by the current user, rather than just the root user.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.