Good evening all:
I have been using Arduinos of various stripes on a passel of XP, win7, and primarily OS X computers over the past year, but last night had an odd turn of events take place.
I was uploading a sketch to an Fio with a (Nokia 3310) bitmap display attached, making adjustments to the sketch, and re-uploading, to try to wrap my mind around bitmap programming.
While I was editing, with the Fio connected and being powered by a Sparkfun FTDI board, the IDE hung. After several minutes of waiting I forced it to quit. Ever since then I have not been able to get the IDE to start.
I would like to solicit help from the board to get my IDE back up and running.
The computer is a Mac Mini 2008 2.0 C2D running OS X 10.5.8. The IDE is version 022. The program is in the Applications folder, the sketches, libraries, etc are in ~/Documents/Arduino. I have run just about every revision of the IDE that has come out in the past year on this computer without a hitch.
When I start the IDE it takes off nicely, but stops with no open windows and a menu bar with only the Arduino menu on it (no File, etc.). I can open the preferences panel, but the window does nothing when I click OK. I can close the window using the close button or Cancel. Nothing happens when I choose About Arduino from the menu.
I have tried the following steps to resolve the issue, each at least once:
- Deleted the ~/Library/Arduino/preferences.txt file.
- Deleted a .plist file with Arduino in the name that was in ~/Library/Preferences.
- Deleted ~/Library/Preferences/com.apple.java.JavaPreferences.plist
- Repaired Permissions: nothing related to the IDE or Java had any errors.
- Verified the HD: no problems noted.
- Cold booted the computer once or twice.
- Trashed the IDE and installed a fresh copy to the Applications folder from the .dmg.
- Moved the sketches I had open at the time to a thumb drive in case they were corrupted.
- Moved a couple of libraries that showed modification dates as the day of the crash to a thumb drive in case they were corrupted.
- Ran System Update, which installed a couple of security updates as well as Java For Mac OS X 10.5 Update 8.
- Launched the IDE with system.log showing in the Console. No messages appear. Nothing in /Library/Logs/Java either. However, if I try to click OK in the preferences window the following text appears in the system.log:
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at processing.app.Preferences.applyFrame(Preferences.java:511)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at processing.app.Preferences$3.actionPerformed(Preferences.java:371)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at ch.randelshofer.quaqua.QuaquaButtonListener.mouseReleased(QuaquaButtonListener.java:81)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.Component.processMouseEvent(Component.java:5617)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.Component.processEvent(Component.java:5382)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.Container.processEvent(Container.java:2010)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.Component.dispatchEventImpl(Component.java:4083)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.Container.dispatchEventImpl(Container.java:2068)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.Component.dispatchEvent(Component.java:3918)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.Container.dispatchEventImpl(Container.java:2054)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.Window.dispatchEventImpl(Window.java:1801)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.Component.dispatchEvent(Component.java:3918)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.EventQueue.access$000(EventQueue.java:80)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.EventQueue$1.run(EventQueue.java:462)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.EventQueue$1.run(EventQueue.java:461)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.security.AccessController.doPrivileged(Native Method)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:84)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:95)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.EventQueue$2.run(EventQueue.java:476)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.EventQueue$2.run(EventQueue.java:475)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.security.AccessController.doPrivileged(Native Method)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:84)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.EventQueue.dispatchEvent(EventQueue.java:473)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
Apr 22 00:07:35 Mini [0x0-0x47047].cc.arduino.Arduino[1008]: at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
I did plug the Fio into a different Mac I also use (27" iMac 2.93 C2D, OS X 10.6.7, Arduino IDE 022), and was able to connect to the Fio just fine using the same FTDI adapter and upload the same sketches from the Mini via thumb drive (copied entire ~/Documents/Arduino folder over) except one. The IDE on that Mac complained that one sketch was corrupted and would not open it. The sketch opened fine in TextWrangler though, and looked normal.
At this point I am at an impasse. I have googled my fingers off looking for a similar situation or any help. It does not mean enough to me to justify a reinstall of the OS, but at the same time this particular machine has been my primary development machine and I would like to keep it that way.
I would greatly appreciate any help the forum could offer. Thanks to all in advance.
Mike