I just started with Arduino an it'S addicting.
The last few Days everything worked like charm. And Yesterday suddenly my Arduino IDE stoped working. When I start the app I get the splash-screen, showing the loading of the Library's and then it's hanging with the message "starting..."
Today I see nothing at all. Just the Arduino-Menubar, no splash-screen.
I can't find any logs. I uninstall the app with AppCleaner and reinstalled the 1.8.5 the nightly-built and an older version. Nothing worked. The Java Version was also updated yesterday to the most actual version.
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)
I know there was the opposite problem of the menu NOT showing with macOS High Sierra:
but that was fixed in Arduino IDE 1.8.5.
In Windows when there are start-up problems you can run arduino_debug.exe from the command line to get some debug information on the problem. If I remember correctly, on other operating systems you don't need to use arduino_debug (and I think it doesn't even exist on those builds), you just run the arduino executable from the command line instead.
Of course it's best to find the solution to your problem but if you do end up needing a workaround you could use the Arduino Web Editor:
thanks for you post. I did the try to launch the app from the Terminal. Oh, I was close to say nothing happens and then after 2 Minutes I got this Message in the Terminal:
/Applications/Arduino.app/Contents/MacOS/Arduino
2017-11-23 12:40:41.142 Arduino[10697:974485] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : [self textInputContext]=0x0 *NO* NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4099 "The connection from pid 0 was invalidated from this process." UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}, com.apple.inputmethod.EmojiFunctionRowItem
But thats all at the moment. I'll leave the Terminal open for a while. It may happens something else laster
So far. Anyone more Ideas? Should I link the Topic to github als well?
theChris1310:
after 2 Minutes I got this Message in the Terminal:
Well at least it's more information. Unfortunately it doesn't give me any brainstorms for a solution.
theChris1310:
should I link the Topic to github als well?
There is actually already an issue that looks like the same thing:
There is a bit more to their error message but I think the important part is the same. The "invalid library" part of that error is unrelated to the problem. I ended up locking that issue because the person who submitted it was bumping it, which is not cool when it causes 800 people to get an email, but if you end up with more information to add to it let me know here and I'll unlock it.
I know the Arduino IDE does some network stuff on startup. There is some of that for checking for IDE, library, and boards updates but also I think it does some stuff for network ports for certain boards. The latter was somewhat recent so you could try rolling back through IDE versions until you find one that works. Of course it's best to figure out how to get the latest version working but pinpointing exactly which IDE version the breakage starts at can provide a valuable clue to the cause. You might also try the beta build to see if it's already been fixed.
thanks again! Today I was able too look a bit deeper. I thought ist maybe a good Idea to give the Terminal a few minutes to display something. And....what a surprise. I got an error. Which I don't understand right now, but we getting closer.
/Applications/Arduino.app/Contents/MacOS/Arduino
2017-11-25 00:54:46.103 Arduino[1584:35488] kCFURLVolumeIsAutomountedKey missing for file://localhost/Volumes/MC_backup_chris/: Die Datei „MC_backup_chris“ konnte nicht geöffnet werden, da du nicht die Zugriffsrechte hast, um sie anzuzeigen.
Strange, because MC_backup_chris is my TimeMaschine Backupshare on my Server. I do not have permissions to read it as my user Chris, but as root.
So next step of course. sudo /Applications/Arduino.app/Contents/MacOS/Arduino And guess what. It started... at least a solution I could life with, for a while
Closing and reopen as chris-User didn't work. With a quick search what kCFURLVolumeIsAutomountedKey is exactly, it seams to be some strange Apple stuff. I found some Java Errors, some Xcode errors but didn't went further.
When I went to bed last night, I left the Terminal open, and found the following stuff this morning:
(started with User rights, no root.
/Applications/Arduino.app/Contents/MacOS/Arduino
2017-11-25 01:07:33.784 Arduino[1673:46800] kCFURLVolumeIsAutomountedKey missing for file://localhost/Volumes/MC_backup_chris/: Die Datei „MC_backup_chris“ konnte nicht geöffnet werden, da du nicht die Zugriffsrechte hast, um sie anzuzeigen.
2017-11-25 01:12:09.928 Arduino[1673:46684] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : [self textInputContext]=0x0 *NO* NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4099 "The connection from pid 0 was invalidated from this process." UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}, com.apple.inputmethod.EmojiFunctionRowItem
java.net.SocketException: Can't assign requested address (Error setting socket option)
at java.net.PlainDatagramSocketImpl.socketSetOption0(Native Method)
at java.net.PlainDatagramSocketImpl.socketSetOption(PlainDatagramSocketImpl.java:74)
at java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainDatagramSocketImpl.java:309)
at java.net.MulticastSocket.setNetworkInterface(MulticastSocket.java:554)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:320)
at javax.jmdns.impl.JmDNSImpl.openMulticastSocket(JmDNSImpl.java:463)
at javax.jmdns.impl.JmDNSImpl.<init>(JmDNSImpl.java:420)
at javax.jmdns.JmDNS.create(JmDNS.java:81)
at cc.arduino.packages.discoverers.NetworkDiscovery.inetAddressAdded(NetworkDiscovery.java:192)
at cc.arduino.packages.discoverers.network.NetworkChecker.run(NetworkChecker.java:62)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)