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>
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?
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?
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 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
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.
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 .