Skip to content

jssc crashed Java 11 #1257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wimjongman opened this issue Nov 14, 2020 · 4 comments
Closed

jssc crashed Java 11 #1257

wimjongman opened this issue Nov 14, 2020 · 4 comments
Labels
Milestone

Comments

@wimjongman
Copy link
Member

wimjongman commented Nov 14, 2020

I have started devmode to figure out what the issue is with the uploader. I started sloeber from the IDE. Creating a sketch and compiling works fine but the avrdude upload crashes the jvm due to a jssc crash.

I have found this issue:
arduino/Arduino#6788

dumps:
javadump.txt
javacore.20201101.221210.14140.0002.txt

Main stack dump snippet

3XMTHREADINFO "Worker-3: avrdude" J9VMThread:0x00000000008DE700, omrthread_t:0x000002F3AF11CC30, java/lang/Thread:0x00000000E2050028, state:R, prio=5
3XMJAVALTHREAD (java/lang/Thread getId:0x48, isDaemon:false)
3XMTHREADINFO1 (native thread ID:0xAB90, native priority:0x5, native policy:UNKNOWN, vmstate:R, vm thread flags:0x00000020)
3XMCPUTIME CPU usage total: 0.203125000 secs, user: 0.015625000 secs, system: 0.187500000 secs, current category="Application"
3XMHEAPALLOC Heap bytes allocated since last GC cycle=200400 (0x30ED0)
3XMTHREADINFO3 Java callstack:
4XESTACKTRACE at jssc/SerialNativeInterface.openPort(Native Method)
4XESTACKTRACE at jssc/SerialPort.openPort(SerialPort.java:158)
4XESTACKTRACE at io/sloeber/core/api/Serial.connect(Serial.java:168)

wimjongman added a commit that referenced this issue Nov 14, 2020
Replaced with a newer jssc version
@wimjongman
Copy link
Member Author

I found a newer version of the jssc wrapper that solved my issue.

https://github.com/java-native/jssc

I also noticed that cdt has their own serial bundle. I guess we should switch.

@jantje
Copy link
Member

jantje commented Nov 14, 2020

I'm fine with that :-)
If we can use the cdt one that would be great

wimjongman added a commit that referenced this issue Nov 15, 2020
Replaced with a newer jssc version
merged with current master
wimjongman added a commit that referenced this issue Dec 16, 2020
Replaced with a newer jssc version
merged with current master
jantje pushed a commit that referenced this issue Dec 17, 2020
Replaced with a newer jssc version
merged with current master
@wimjongman
Copy link
Member Author

I think this one is done. Correct?

@wimjongman wimjongman added this to the 4.4.0 milestone Mar 25, 2021
@jantje
Copy link
Member

jantje commented Mar 25, 2021

I think so.
I'm trying to get my buildserver back up so nightly will be 4.4 hopefully soon

@jantje jantje added the status: fixed in 4.4.0 fixed in 4.4.0 label Jun 4, 2021
@jantje jantje closed this as completed Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants