Arduino quits unexpectedly on Snow Leopard

Hi there,

I recently received my Arduino starter kit and I'm trying to get everything up and running. I downloaded the latest OSX version of Arduino and installed the USB driver but when I try to launch the Arduino app I always get the OSX dialog box saying "Arduino quit unexpectedly". Anyone else experiencing problems on Snow Leopard or got a suggestion for a solution? Many thanks in advance.

A

I used to get that if I double clicked a .pde file. The way round it was to just click on the application.
You could also try opening the info box and seeing if there is an option to run in 32bit mode.

Thanks for your reply Mike. Clicking directly on the app does not work and the get info box doesn't have a check box for "Open in 32-bit mode" so unfortunately the problem still exists :'(

You can try looking at the Console (in Applications > Utilities) to see if there's an error message. Check the system.log or console.log (or maybe something else).

Thanks Mellis,

I checked the log but cannot make any sense of it. Maybe somebody else can. I’ve copied the contents of the log below. Appreciate any help.

Process: JavaApplicationStub [321]
Path: /Applications/Arduino.app/Contents/MacOS/JavaApplicationStub
Identifier: cc.arduino.Arduino
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: launchd [76]

Date/Time: 2010-03-03 22:21:00.668 +0100
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread: 4

Thread 0: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x969b88da mach_msg_trap + 10
1 libSystem.B.dylib 0x969b9047 mach_msg + 68
2 com.apple.CoreFoundation 0x992ca77f __CFRunLoopRun + 2079
3 com.apple.CoreFoundation 0x992c9864 CFRunLoopRunSpecific + 452
4 com.apple.CoreFoundation 0x992c9691 CFRunLoopRunInMode + 97
5 …ple.JavaApplicationLauncher 0x0000758e startupJava(LauncherArgsStruct*) + 342
6 …ple.JavaApplicationLauncher 0x000068cf launchJavaApplication + 1355
7 cc.arduino.Arduino 0x00001e8a 0x1000 + 3722
8 cc.arduino.Arduino 0x00001cec 0x1000 + 3308
9 cc.arduino.Arduino 0x00001c19 0x1000 + 3097

Thread 1:
0 libSystem.B.dylib 0x969de182 __workq_kernreturn + 10
1 libSystem.B.dylib 0x969de718 _pthread_wqthread + 941
2 libSystem.B.dylib 0x969de336 start_wqthread + 30

Thread 2: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x969df0ea kevent + 10
1 libSystem.B.dylib 0x969df804 _dispatch_mgr_invoke + 215
2 libSystem.B.dylib 0x969decc3 _dispatch_queue_invoke + 163
3 libSystem.B.dylib 0x969dea68 _dispatch_worker_thread2 + 234
4 libSystem.B.dylib 0x969de4f1 _pthread_wqthread + 390
5 libSystem.B.dylib 0x969de336 start_wqthread + 30

Thread 3:
0 libzip.jnilib 0x000e0c32 0xdf000 + 7218
1 libzip.jnilib 0x000e9db5 ZIP_ReadEntry + 387
2 libclient.dylib 0x018a841c 0x1800000 + 689180
3 libclient.dylib 0x018a80a2 0x1800000 + 688290
4 libclient.dylib 0x01855251 0x1800000 + 348753
5 libclient.dylib 0x01854294 0x1800000 + 344724
6 libclient.dylib 0x018f1318 0x1800000 + 987928
7 libclient.dylib 0x0191ad43 0x1800000 + 1158467
8 libclient.dylib 0x0191f02b 0x1800000 + 1175595
9 ??? 0x0380e9f3 0 + 58780147
10 ??? 0x03800227 0 + 58720807
11 libclient.dylib 0x0191931a 0x1800000 + 1151770
12 libclient.dylib 0x01919036 0x1800000 + 1151030
13 libclient.dylib 0x01918fdb 0x1800000 + 1150939
14 libclient.dylib 0x01918a1b 0x1800000 + 1149467
15 libclient.dylib 0x019187ab 0x1800000 + 1148843
16 libclient.dylib 0x0191b64b 0x1800000 + 1160779
17 libclient.dylib 0x01920b02 0x1800000 + 1182466
18 libclient.dylib 0x01920a92 0x1800000 + 1182354
19 libclient.dylib 0x018f2a25 0x1800000 + 993829
20 libclient.dylib 0x018f1fae 0x1800000 + 991150
21 libclient.dylib 0x018f1e03 0x1800000 + 990723
22 libclient.dylib 0x018f1c29 0x1800000 + 990249
23 libclient.dylib 0x018f2bd9 0x1800000 + 994265
24 libclient.dylib 0x018e92e0 0x1800000 + 955104
25 libclient.dylib 0x0180e414 0x1800000 + 58388
26 libclient.dylib 0x018016d3 0x1800000 + 5843
27 libclient.dylib 0x019f6d49 JNI_CreateJavaVM_Impl + 185
28 …ple.JavaApplicationLauncher 0x0000828e startJavaApplication + 3134
29 …ple.JavaApplicationLauncher 0x0000764e runJava(LauncherArgsStruct*) + 78
30 …ple.JavaApplicationLauncher 0x000075f8 java_main_stub(void*) + 22
31 libSystem.B.dylib 0x969e5fbd _pthread_start + 345
32 libSystem.B.dylib 0x969e5e42 thread_start + 34

Thread 4 Crashed:
0 libclient.dylib 0x018fee4e 0x1800000 + 1044046
1 libclient.dylib 0x018fe86c 0x1800000 + 1042540
2 libclient.dylib 0x018fe7ed 0x1800000 + 1042413
3 libclient.dylib 0x018fe78b 0x1800000 + 1042315
4 libclient.dylib 0x018fe619 0x1800000 + 1041945
5 libSystem.B.dylib 0x96a2454c mach_msg_server + 380
6 libclient.dylib 0x0180eb75 0x1800000 + 60277
7 libclient.dylib 0x0180e935 0x1800000 + 59701
8 libclient.dylib 0x01ac54f5 JVM_RaiseSignal + 441397
9 libSystem.B.dylib 0x96aaee52 _pthread_body + 27

Thread 4 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x018fee3b ecx: 0x00000000 edx: 0x0000001e
edi: 0x0007e000 esi: 0x00000000 ebp: 0xb0986d38 esp: 0xb0986d24
ss: 0x0000001f efl: 0x00010206 eip: 0x018fee4e cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
cr2: 0x00000000

Binary Images:
0x1000 - 0x1fff +cc.arduino.Arduino ??? (???) <5E54AC31-1068-E190-4963-CAF51A6A915A> /Applications/Arduino.app/Contents/MacOS/JavaApplicationStub
0x5000 - 0xfff7 com.apple.JavaApplicationLauncher 13.1.0 (13.1.0) <4AC23F10-15F8-A81C-A1A0-89FA16CC14FB> /System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Versions/A/JavaApplicationLauncher
0x17000 - 0x1eff7 com.apple.JavaVM 13.1.0 (13.1.0) <2842C4EE-869D-81E6-E771-062F583A1044> /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
0x80000 - 0x88ff7 libverify.dylib ??? (???) <0E0C6835-68C5-A72F-8CA0-77857B632513> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libverify.dylib
0x8d000 - 0x94ff7 JavaNativeFoundation ??? (???) <1107BBC2-DFC1-CF1F-44EE-27F7D4349BE6> /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
0xb0000 - 0xcdff7 libjava.jnilib ??? (???) /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libjava.jnilib
0xdf000 - 0xebff7 libzip.jnilib ??? (???) <1317EACC-2494-70C3-4B43-FC9D04579EAF> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libzip.jnilib
0x1800000 - 0x1b50ffb libclient.dylib ??? (???) /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0-leopard/Libraries/libclient.dylib
0x2800000 - 0x2bf6fe7 libclient.dylib ??? (???) <6B8B4A7E-2844-3AD6-239E-122121D37485> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Libraries/libclient.dylib
0x8fe00000 - 0x8fe4162b dyld 132.1 (???) <211AF0DD-42D9-79C8-BB6A-1F4BEEF4B4AB> /usr/lib/dyld
0x90003000 - 0x900abffb com.apple.QD 3.33 (???) <196CDBA6-5B87-2767-DD57-082D71B0A5C7> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x900ac000 - 0x900adff7 com.apple.audio.units.AudioUnit 1.6.1 (1.6.1) <3A08510C-07F7-1A09-D6ED-1A488203ACCC> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x9016a000 - 0x90182ff7 com.apple.CFOpenDirectory 10.6 (10.6) <1537FB4F-C112-5D12-1E5D-3B1002A4038F> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x9020d000 - 0x9022bff7 com.apple.CoreVideo 1.6.0 (43.1) <1FB01BE0-B013-AE86-A063-481BB547D2F5> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x9022c000 - 0x9024cfe7 com.apple.opencl 12 (12) <2DB56F60-577B-6724-5708-7B082F62CC0F> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x90407000 - 0x904b4fe7 libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib
0x904b5000 - 0x905abff7 libGLProgrammability.dylib ??? (???) <82D03736-D30C-C013-BBB1-20ED9687D47F> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x9062e000 - 0x90640ff7 com.apple.MultitouchSupport.framework 204.9 (204.9) /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x906c4000 - 0x906dfff7 libPng.dylib ??? (???) <3F8682CD-C05B-607D-96E7-767646C77DB8> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x906f1000 - 0x906f1ff7 com.apple.CoreServices 44 (44) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x90905000 - 0x909e2ff7 com.apple.vImage 4.0 (4.0) <64597E4B-F144-DBB3-F428-0EC3D9A1219E> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x90a3c000 - 0x90a3eff7 libRadiance.dylib ??? (???) <462903E2-2E77-FAE5-4ED6-829AAB1980A4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x90eee000 - 0x91323ff7 libLAPACK.dylib ??? (???) <5E2D2283-57DE-9A49-1DB0-CD027FEFA6C2> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x91324000 - 0x91344fe7 libresolv.9.dylib

Do you have plenty of RAM? Just occasionally crashes like this can be due to a shortage of ram/swap... Also check the release notes for known issues. Alas the stacktrace lacks symbols which isn't very useful!

Do you use other large Java apps without problem?

Hi Mark,

Yes I've loads of ram (2GB) and I cannot see anything in the release notes related to the problem. I've never had any similar problems and I can run Eclipse without any problem at all.

Thanks for your help, Adrian

In your Java Preferences (in Applications > Utilities) what do you have listed under Java Applications? I have Java SE 6, 64-bit first, and Java SE 6, 32-bit second. It looks like your system may be using some things from Java 5, which could cause problems. Which version of Snow Leopard are you running? Have you installed all / most software updates?

How right you are Mellis! I had Java SE 6 32-bit and J2SE 5.0 32-bit. I unchecked the J2SE 5.0 and the Arduino application launched. Thanks very much for all the help!