Error messages on Mac

Hi All

I have just started using my Arduino UNO R3 Controller board

I am having trouble connecting the board to my Mac and can't seem to find a solution for it

I keep getting this error message </private/var/folders/hl/81y7bwc556x1h4wwg2c0n0qr0000gn/T/AppTranslocation/D9D9E0C9-4BE7-4553-A4A7-35B276E44C9C/d/Arduino.app/Contents/Java/arduino-builder returned 139>

If anyone could help that would be great

Show us the entire error log and post it in code tags.

This is all I have so far. I was just trying to connect my pc to my board

Make sure you read the tutorial on how to get the best out of this forum, that is not an error log in code tags.
Your comment is not helpful. Did you successfully download the IDE, what ver, do you have an Intel or Silicon Mac? What do you mean by

just trying to connect my pc to my board

because that will not do anything. Leaving stuff out does you no good.

I don't know what an empty sketch does, try loading the standard Blink sketch. Did you download the correct software for your Mac, old Intel or new Silicon Mac?

it does nothing but will compile and upload


@jonnycass can you provide more details ?

  • Mac type and OS version?
  • IDE version and where did you get it from, how did you install it?
  • Arduino UNO R3: Genuine from Arduino or cheap alternative?
1 Like

Hi @J-M-L
I have a MacBook Air with Mac OS Sequoia 15.0
The IDE is version 1.8.9 as we have been told to install this by my university. I installed it via this website.
I believe it is a genuine one but I cannot confirm completely as University bought it for us. would it help if I put a picture of the kit here

The path suggests that the Arduino app is being run in a "translocated" state, a security feature in macOS (known as "Gatekeeper path randomisation" ) that prevents unverified apps from running. This can sometimes lead to issues with permissions or accessing certain resources (you can read about it here for example)

Is your Mac managed in anyway by the university or are you a full admin with all rights and authorisations?

No it's my own personal Mac. I will have a look at this and let you know how I get on

Ok so I've tried this and it has worked, However I am still getting an error message. I have included a screenshot of what it's saying below.

why would you post an image of text ? I can't read it (poor eyesight and I'm on my iPhone)
copy the message and paste it within code tags

did not notice that. Try to install the latest and greatest Arduino OS and not an old release - if you need the 1.x IDE and not the 2.x then grab Arduino IDE 1.8.19

Not sure why the school would want the 1.8.9 specifically

Please enable verbose output during compilation under file/preferences in the IDE. Next compile and post the full error message (using code tags as described in How to get the best out of this forum); it might shine some light on the issue.

I'm not a Mac user so can't help much further.


You might have to dig a little in those search results: arduino-builder returned 139 - Google Search

Sorry I am very new to all this. Here is the code it is saying. I can try to install the latest version and see if that works

/Users/jonathancass/Desktop/Arduino.app/Contents/Java/arduino-builder returned 139

I have installed the very latest version (2.3.3) and it seems to be working fine. I am getting no error messages when uploading, and the orange LED's are flashing when it uploads. I think it's because I have the silicon processor, not the intel one. Thank you for all of your help

FYI, on a Mac, all the icons you see for apps are actually a folder with the name something.app -- in this case Arduino.app -- which is a package

Inside each package is a directory named Contents; and inside is a tree of, well, content. Since this is IDE 1.x, there's a bunch of Java. Here it is trying to run a program called arduino-builder, which should be a Java program, but maybe not. Regardless, all programs return a numeric code from 0 to 255 when they exit. Zero is "all good, normal exit", and everything else means something. Usually, programs use low numbers (1, 2, 3...) for their own codes, and 128 and up is reserved for the system. In particular, it will be "128 + signal number". To see the signals, at the shell

$ kill -l
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP
 6) SIGABRT      7) SIGBUS       8) SIGFPE       9) SIGKILL     10) SIGUSR1
11) SIGSEGV     12) SIGUSR2     13) SIGPIPE     14) SIGALRM     15) SIGTERM

For example, if you stop a program by pressing Ctrl-C, that's SIGINT (Interrupt), and the exit code will be 130.

139 == 128 + 11 == SIGSEGV, or a "Signal: Segmentation Violation", aka segmentation fault, which relates to memory access. The instant a program violates these rules, the OS kills it. Long story short, the program is broken in some way. A fully proper reinstall might fix it. Note that the IDE itself is working OK; it's a sub-program that is failing.

But the better bet is to switch to IDE version 2.x. Good to see that worked.

It seems then all right

Double check with your teachers why they would want such an outdated version of the IDE (more than 5 years ago) and make sure this is not detrimental to your ability to do your homework .