Go Down

Topic: Arduino-0017 Serial Monitor Crash (Read 963 times) previous topic - next topic

Byron

I am running Ubuntu 9.04 on AMD64 quad core.  I finally got the arduino-0017 applet running well enough to upload sketches; however, when I try to monitor serial data replies from my Duemilanove ATmega328P, the serial monitor and the applet crash.  The command line terminal used to launch arduino gives the following error message:

-----BEGIN------------------------------------------------------
./arduino
Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyUSB0










Binary sketch size: 1766 bytes (of a 30720 byte maximum)
Binary sketch size: 1766 bytes (of a 30720 byte maximum)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ff9ec0a9333, pid=23696, tid=140711381555536
#
# JRE version: 6.0_16-b01
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.2-b01 mixed mode linux-amd64 )
# Problematic frame:
# C  [librxtxSerial-2.1-7.so+0x8333]  read_byte_array+0x43
#
# An error report file with more information is saved as:
# /home/byron/Electronics/Arduino/arduino-0017/hs_err_pid23696.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
./arduino: line 20: 23696 Aborted                 java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base
-----END------------------------------------------------------------------

Additionally, an error log file is created with the following contents:

-----BEGIN--------------------------------------------------------------
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ff9ec0a9333, pid=23696, tid=140711381555536
#
# JRE version: 6.0_16-b01
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.2-b01 mixed mode linux-amd64 )
# Problematic frame:
# C  [librxtxSerial-2.1-7.so+0x8333]  read_byte_array+0x43
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x00007ff9f407f000):  JavaThread "Thread-108" [_thread_in_native, id=23984, stack(0x00007ff9ebd9d000,0x00007ff9ebe9e000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0xffffffffebe9c668

Registers:
RAX=0xffffffffebe9c660, RBX=0x000000000000001f, RCX=0x0000000000000001, RDX=0x00007ffa60198000
RSP=0x00007ff9ebe9bd60, RBP=0x00000000ffffffff, RSI=0x00007ff9ec0ab980, RDI=0x00007ff9ec0ab88a
R8 =0x0000000000000ffc, R9 =0x00007ffa5f69f828, R10=0x00007ffa5f6a3538, R11=0x00007ffa5f6977e0
R12=0x00007ff9f407f000, R13=0x00007ff9fa1c0788, R14=0x00007ff9ebe9bf40, R15=0x00007ff9f407f000
RIP=0x00007ff9ec0a9333, EFL=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000005
 TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007ff9ebe9bd60)
0x00007ff9ebe9bd60:   00007ff9f407f000 00007ff9fa1c8008
0x00007ff9ebe9bd70:   00007ff9f407f000 00007ff9ec0abdc3
0x00007ff9ebe9bd80:   00007ff9ec0ab982 00000000408205b8
0x00007ff9ebe9bd90:   00000001ffffffff 00007ff9ebe9beb7
0x00007ff9ebe9bda0:   0000001febe9bdf0 00007ff9f43ef1b8
0x00007ff9ebe9bdb0:   00007ff9f43ef1b0 00007ff9f43ef1a8
0x00007ff9ebe9bdc0:   000000b400000002 ffffffffebe9c660
0x00007ff9ebe9bdd0:   0000000000000040 00007ffa0000008c
0x00007ff9ebe9bde0:   00007ff9f43ef1c0 00007ffa5f68dd70
0x00007ff9ebe9bdf0:   00007ff9f407f000 0000000000000000
0x00007ff9ebe9be00:   00007ff9f407f000 0000000000000000
0x00007ff9ebe9be10:   00007ff9f407f000 00007ffa5f34c5ca
0x00007ff9ebe9be20:   00007ff9f407f000 000000b65f096521
0x00007ff9ebe9be30:   00007ff9f407f000 00007ff9ec0ab982
0x00007ff9ebe9be40:   00007ff9f407f000 00007ff9ebe9bf40
0x00007ff9ebe9be50:   00000000ffffffff 00000000408205b8
0x00007ff9ebe9be60:   00007ff9f407f1b8 000000000000001f
0x00007ff9ebe9be70:   00007ff9f407f1b8 00007ff9f407f000
0x00007ff9ebe9be80:   00007ff9fa1c0788 00007ff9ebe9bf40
0x00007ff9ebe9be90:   00007ff9f407f000 00007ff9ec0a9908
0x00007ff9ebe9bea0:   00007ff9ebe9bf40 00007ff9f407f000
0x00007ff9ebe9beb0:   00007ff9ebe9bf20 00007ff9fa1c0790
0x00007ff9ebe9bec0:   00007ff9ebe9bf20 00007ffa5abc3f50
0x00007ff9ebe9bed0:   00007ff9f407f000 00007ffa5abce3a3
0x00007ff9ebe9bee0:   00007ff9ebe9bee0 00007ff9fa1c0788
0x00007ff9ebe9bef0:   00007ff9ebe9bf40 00007ff9fa4c1ae8
0x00007ff9ebe9bf00:   0000000000000000 00007ff9fa1c0790
0x00007ff9ebe9bf10:   0000000000000000 00007ff9ebe9bf40
0x00007ff9ebe9bf20:   00007ff9ebe9bf98 00007ffa5abb890e
0x00007ff9ebe9bf30:   0000000000000000 00007ffa5abc0a56
0x00007ff9ebe9bf40:   00007ffa3cba20b0 00007ff9f43a7948
0x00007ff9ebe9bf50:   00007ffa3cba2180 00007ff9ebe9bf48

Instructions: (pc=0x00007ff9ec0a9333)
0x00007ff9ec0a9323:   24 30 e8 46 cc ff ff 8b 6c 24 30 48 89 44 24 68
0x00007ff9ec0a9333:   8b 40 08 48 8b 54 24 68 48 c7 44 24 58 00 00 00

Stack: [0x00007ff9ebd9d000,0x00007ff9ebe9e000],  sp=0x00007ff9ebe9bd60,  free space=1019k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [librxtxSerial-2.1-7.so+0x8333]  read_byte_array+0x43

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  gnu.io.RXTXPort.readByte()I+0
j  gnu.io.RXTXPort$SerialInputStream.read()I+61
j  processing.app.Serial.serialEvent(Lgnu/io/SerialPortEvent;)V+114
j  gnu.io.RXTXPort.sendEvent(IZ)Z+382
v  ~StubRoutines::call_stub
j  gnu.io.RXTXPort.eventLoop()V+0
j  gnu.io.RXTXPort$MonitorThread.run()V+12
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
=>0x00007ff9f407f000 JavaThread "Thread-108" [_thread_in_native, id=23984, stack(0x00007ff9ebd9d000,0x00007ff9ebe9e000)]
 0x00000000406aa800 JavaThread "DestroyJavaVM" [_thread_blocked, id=23697, stack(0x00007ffa5ea53000,0x00007ffa5eb54000)]
 0x0000000040bf9800 JavaThread "TimerQueue" daemon [_thread_blocked, id=23715, stack(0x00007ff9ebe9e000,0x00007ff9ebf9f000)]
 0x0000000040aad000 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=23713, stack(0x00007ff9ec2b0000,0x00007ff9ec3b1000)]
 0x0000000040aac000 JavaThread "AWT-Shutdown" [_thread_blocked, id=23712, stack(0x00007ff9ec3b1000,0x00007ff9ec4b2000)]
 0x0000000040845000 JavaThread "AWT-XAWT" daemon [_thread_blocked, id=23711, stack(0x00007ff9f22d4000,0x00007ff9f23d5000)]
 0x000000004071e800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=23710, stack(0x00007ff9f29ee000,0x00007ff9f2aef000)]
 0x00000000406c4800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=23708, stack(0x00007ff9f80ad000,0x00007ff9f81ae000)]
 0x00007ff9f4076000 JavaThread "CompilerThread1" daemon [_thread_blocked, id=23707, stack(0x00007ff9f81ae000,0x00007ff9f82af000)]
 0x00007ff9f4074000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=23706, stack(0x00007ff9f82af000,0x00007ff9f83b0000)]
 0x00007ff9f4072000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=23705, stack(0x00007ff9f83b0000,0x00007ff9f84b1000)]
 0x00007ff9f4054000 JavaThread "Finalizer" daemon [_thread_blocked, id=23704, stack(0x00007ff9f84f0000,0x00007ff9f85f1000)]
 0x00007ff9f4052000 JavaThread "Reference Handler" daemon [_thread_blocked, id=23703, stack(0x00007ff9f85f1000,0x00007ff9f86f2000)]

Other Threads:
 0x00007ff9f404b000 VMThread [stack: 0x00007ff9f86f2000,0x00007ff9f87f3000] [id=23702]
 0x00000000406c7000 WatcherThread [stack: 0x00007ff9f3eff000,0x00007ff9f4000000] [id=23709]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
PSYoungGen      total 27520K, used 12769K [0x00007ffa3bfb0000, 0x00007ffa3de60000, 0x00007ffa5abb0000)
 eden space 23616K, 54% used [0x00007ffa3bfb0000,0x00007ffa3cc28648,0x00007ffa3d6c0000)
 from space 3904K, 0% used [0x00007ffa3da90000,0x00007ffa3da90000,0x00007ffa3de60000)
 to   space 3904K, 0% used [0x00007ffa3d6c0000,0x00007ffa3d6c0000,0x00007ffa3da90000)
PSOldGen        total 62976K, used 12167K [0x00007ff9fe7b0000, 0x00007ffa02530000, 0x00007ffa3bfb0000)
 object space 62976K, 19% used [0x00007ff9fe7b0000,0x00007ff9ff391e68,0x00007ffa02530000)
PSPermGen       total 37824K, used 17555K [0x00007ff9f93b0000, 0x00007ff9fb8a0000, 0x00007ff9fe7b0000)
 object space 37824K, 46% used [0x00007ff9f93b0000,0x00007ff9fa4d4e50,0x00007ff9fb8a0000)

Dynamic libraries:
40000000-40009000 r-xp 00000000 08:01 7020612                            /usr/lib/jvm/java-6-sun-1.6.0.16/jre/bin/java
40108000-4010a000 rwxp 00008000 08:01 7020612                            /usr/lib/jvm/java-6-sun-1.6.0.16/jre/bin/java
406a2000-40d59000 rwxp 406a2000 00:00 0                                  [heap]
7ff9eb365000-7ff9eb4e2000 rwxs 00000000 00:09 4816916                    /SYSV00000000 (deleted)
7ff9eb503000-7ff9eb506000 rwxp 7ff9eb503000 00:00 0
7ff9eb506000-7ff9eb604000 rwxp 7ff9eb506000 00:00 0
7ff9eb604000-7ff9eb607000 rwxp 7ff9eb604000 00:00 0
7ff9eb607000-7ff9eb705000 rwxp 7ff9eb607000 00:00 0
7ff9eb705000-7ff9eb765000 rwxs 00000000 00:09 4718611                    /SYSV00000000 (deleted)
7ff9eb765000-7ff9eb779000 r-xp 00000000 08:01 29843577                   /lib/libresolv-2.9.so
7ff9eb779000-7ff9eb979000 ---p 00014000 08:01 29843577
Thanks,
Byron

funziona

Hey
Check http://feelslikeburning.com/2009/08/21/how-to-get-arduino-0017-working-on-64-bit-linux-including-ubuntu-9-04/
;)

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy