Pages: [1]   Go Down
Author Topic: **FIXED** Arduino 1.0.1 app crashing on OSX Lion 10.7.4  (Read 1504 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi - this crashing started with the previous version so I updated tonight. Still no upload to Arduino Uno. I am running OSX 10.7.4 on a MacBook Pro and have never had this issue before. The code compiles fine in the app, seems to upload but then crashes.

Details below:
Java Version
Code:
MacBookPro:Extensions ilium007$ java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3646)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)

Crash Report
Code:
Process:         JavaApplicationStub [1480]
Path:            /Applications/Arduino.app/Contents/MacOS/JavaApplicationStub
Identifier:      cc.arduino.Arduino
Version:         1.0.1 (0101)
Code Type:       X86 (Native)
Parent Process:  launchd [222]

Date/Time:       2012-05-28 20:42:12.674 +1000
OS Version:      Mac OS X 10.7.4 (11E53)
Report Version:  9

Interval Since Last Report:          421387 sec
Crashes Since Last Report:           12
Per-App Interval Since Last Report:  1175 sec
Per-App Crashes Since Last Report:   8
Anonymous UUID:                      6F146053-87C2-4D0F-85F4-AEBADB46DA26

Crashed Thread:  28  Java: Thread-6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000b223ab70

VM Regions Near 0xb223ab70:
    Stack                  00000000b203c000-00000000b213a000 [ 1016K] rw-/rwx SM=COW  
-->
    Stack                  00000000bc000000-00000000bf800000 [ 56.0M] ---/rwx SM=NUL  

Application Specific Information:
objc[1480]: garbage collection is OFF
 
Java information:
 Exception type: Bus Error (0xa) at pc=0000000021e4890c
 
 Java VM: Java HotSpot(TM) Client VM (20.6-b01-415 mixed mode macosx-x86)
 
Current thread (0000000004d1d800):  JavaThread "Thread-6" [_thread_in_native, id=-1307340800, stack(00000000b2039000,00000000b2139000)]
Stack: [00000000b2039000,00000000b2139000]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  gnu.io.RXTXPort.interruptEventLoop()V+0
j  gnu.io.RXTXPort.removeEventListener()V+55
j  gnu.io.RXTXPort.close()V+91
j  processing.app.Serial.dispose()V+57
j  processing.app.debug.Uploader.flushSerialBuffer()V+64
j  processing.app.debug.AvrdudeUploader.uploadViaBootloader(Ljava/lang/String;Ljava/lang/String;)Z+854
j  processing.app.debug.AvrdudeUploader.uploadUsingPreferences(Ljava/lang/String;Ljava/lang/String;Z)Z+154
j  processing.app.Sketch.upload(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;+14
j  processing.app.Sketch.exportApplet(Ljava/lang/String;Z)Z+53
j  processing.app.Sketch.exportApplet(Z)Z+8
j  processing.app.Editor$DefaultExportHandler.run()V+29
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

Console logs
Code:
28/05/12 8:42:12.490 PM [0x0-0x52052].cc.arduino.Arduino: Binary sketch size: 1,084 bytes (of a 32,256 byte maximum)
28/05/12 8:42:12.661 PM [0x0-0x52052].cc.arduino.Arduino: Invalid memory access of location 0xb223ab70 eip=0x21e4890c
28/05/12 8:42:13.241 PM com.apple.launchd.peruser.501: ([0x0-0x52052].cc.arduino.Arduino[1480]) Job appears to have crashed: Segmentation fault: 11

Any help would be greatly appreciated as I now can't upload anything to the Arduino.
« Last Edit: May 28, 2012, 06:30:19 am by ilium007 » Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Fixed - this is insane. I just dont get how this can happen.

Thanks to this thread: http://arduino.cc/forum/index.php?topic=76633.0

I downloaded Arduino 022 and replaced the following files in my /Local/Java/Extensions folder and everything worked.

librxtxSerial.jnilib
RXTXcomm.jar
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Weird.  Did you already have those files in your /Library/Java/Extensions folder?  What if you delete them?  (The Arduino software should come with its own copy of those files.)
Logged

Canada
Offline Offline
Full Member
***
Karma: 0
Posts: 246
Code Monkey
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Fixed - this is insane. I just dont get how this can happen.

Thanks to this thread: http://arduino.cc/forum/index.php?topic=76633.0

I downloaded Arduino 022 and replaced the following files in my /Local/Java/Extensions folder and everything worked.

librxtxSerial.jnilib
RXTXcomm.jar

Can you run "cksum" on each on of these files, both the v0.22 and the v1.0 versions you have, and report back here with the results?
« Last Edit: May 28, 2012, 03:54:05 pm by The Clever Monkey » Logged

I yield() for co-routines.

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Fixed - this is insane. I just dont get how this can happen.

Thanks to this thread: http://arduino.cc/forum/index.php?topic=76633.0

I downloaded Arduino 022 and replaced the following files in my /Local/Java/Extensions folder and everything worked.

librxtxSerial.jnilib
RXTXcomm.jar

Can you run "cksum" on each on of these files, both the v0.22 and the v1.0 versions you have, and report back here with the results?

I can but remember I said it was the version of these files in  /Library/Java/Extensions that have been causing the issues. I hazard a guess that if I were to put the 1.0.1 versions of the files in this directory then it would all work as well.
Logged

Canada
Offline Offline
Full Member
***
Karma: 0
Posts: 246
Code Monkey
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Fixed - this is insane. I just dont get how this can happen.

Thanks to this thread: http://arduino.cc/forum/index.php?topic=76633.0

I downloaded Arduino 022 and replaced the following files in my /Local/Java/Extensions folder and everything worked.

librxtxSerial.jnilib
RXTXcomm.jar

Can you run "cksum" on each on of these files, both the v0.22 and the v1.0 versions you have, and report back here with the results?

I can but remember I said it was the version of these files in  /Library/Java/Extensions that have been causing the issues. I hazard a guess that if I were to put the 1.0.1 versions of the files in this directory then it would all work as well.

I was interested in sorting out what actually got installed in the different places.
Logged

I yield() for co-routines.

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Fixed - this is insane. I just dont get how this can happen.

Thanks to this thread: http://arduino.cc/forum/index.php?topic=76633.0

I downloaded Arduino 022 and replaced the following files in my /Local/Java/Extensions folder and everything worked.

librxtxSerial.jnilib
RXTXcomm.jar

Can you run "cksum" on each on of these files, both the v0.22 and the v1.0 versions you have, and report back here with the results?

I can but remember I said it was the version of these files in  /Library/Java/Extensions that have been causing the issues. I hazard a guess that if I were to put the 1.0.1 versions of the files in this directory then it would all work as well.

I was interested in sorting out what actually got installed in the different places.

Cool - ill get the info you are chasing but in an OSX app like this nothing actually gets 'installed' the app contents are just what is in the DMG download file. So the file checksums are whatever is in the download.
Logged

Canada
Offline Offline
Full Member
***
Karma: 0
Posts: 246
Code Monkey
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Fixed - this is insane. I just dont get how this can happen.

Thanks to this thread: http://arduino.cc/forum/index.php?topic=76633.0

I downloaded Arduino 022 and replaced the following files in my /Local/Java/Extensions folder and everything worked.

librxtxSerial.jnilib
RXTXcomm.jar

Can you run "cksum" on each on of these files, both the v0.22 and the v1.0 versions you have, and report back here with the results?

I can but remember I said it was the version of these files in  /Library/Java/Extensions that have been causing the issues. I hazard a guess that if I were to put the 1.0.1 versions of the files in this directory then it would all work as well.

I was interested in sorting out what actually got installed in the different places.

Cool - ill get the info you are chasing but in an OSX app like this nothing actually gets 'installed' the app contents are just what is in the DMG download file. So the file checksums are whatever is in the download.

I'm pretty familiar with OS X, so when I say  "installed" I mean "somehow got put there". I guess I'm just interested in why it crashed -- I'm curious which version of the ones caused the crash. Personally, I'd just remove the ones in the System area and let Arduino pick up its own.
Logged

I yield() for co-routines.

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I'm pretty familiar with OS X, so when I say  "installed" I mean "somehow got put there". I guess I'm just interested in why it crashed -- I'm curious which version of the ones caused the crash. Personally, I'd just remove the ones in the System area and let Arduino pick up its own.

Yeah I'm wondering if these components were deployed to the system location by anger app I have deployed in the past such as other FTDI drivers or something.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I removed the /Library/Java/Extensions files and re-deployed Arduino.app 1.0.1 and it all worked fine. Must have been the versions of the files in that directory originally that were causing the errors.

cksum results[/b]

v1.0.1
Code:
MacBookPro:Downloads ilium007$ cksum Arduino.app/Contents/Resources/Java/librxtxSerial.jnilib
1364831212 271860 Arduino.app/Contents/Resources/Java/librxtxSerial.jnilib

Code:
MacBookPro:Downloads ilium007$ cksum Arduino.app/Contents/Resources/Java/RXTXcomm.jar
2257183049 59467 Arduino.app/Contents/Resources/Java/RXTXcomm.jar

v022
Code:
MacBookPro:Downloads ilium007$ cksum /Volumes/Arduino/Arduino.app/Contents/Resources/Java/librxtxSerial.jnilib
1364831212 271860 /Volumes/Arduino/Arduino.app/Contents/Resources/Java/librxtxSerial.jnilib

and

Code:
MacBookPro:Downloads ilium007$ cksum /Volumes/Arduino/Arduino.app/Contents/Resources/Java/RXTXcomm.jar
2257183049 59467 /Volumes/Arduino/Arduino.app/Contents/Resources/Java/RXTXcomm.jar
« Last Edit: May 29, 2012, 04:11:49 am by ilium007 » Logged

Canada
Offline Offline
Full Member
***
Karma: 0
Posts: 246
Code Monkey
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I'm pretty familiar with OS X, so when I say  "installed" I mean "somehow got put there". I guess I'm just interested in why it crashed -- I'm curious which version of the ones caused the crash. Personally, I'd just remove the ones in the System area and let Arduino pick up its own.

Yeah I'm wondering if these components were deployed to the system location by anger app I have deployed in the past such as other FTDI drivers or something.

I've installed and reinstalled FTDI a few times on OS X, and I have only one jnilib in the global Java extensions. But, yeah, something put it in there and it probably should have not.
Logged

I yield() for co-routines.

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The only other thing I can think of is the XBee Java API code.
Logged

Pages: [1]   Go Up
Jump to: