Segmentation Fault - Java Runtime Crash

Hello,
I’m getting the below error after running a Java application for approximately 12 hours. It seems the Java Runtime is un-allocating memory but then trying to reach for that pointer and crashing.

04/10/2021 20:42:08 JVM 46152692 44638

04/10/2021 20:42:08 JVM signo = 11 code = 1 (SEGV_MAPERR) addr = 0x60 46152692 44637

04/10/2021 20:42:08 JVM 46152692 44636

04/10/2021 20:42:08 JVM *** SEGMENTATION FAULT *** 46152692 44635

04/10/2021 20:42:08 JVM 46152692 44634

04/10/2021 20:42:08 JVM

What can we do for this issue?

Hi Justin,

Can you please make a backup of this Ewon using eBuddy and check the box for “Include Support Files”?

Thanks,

Kyle

Hi Justin,

Can you please make a backup of this Ewon using eBuddy and check the box for “Include Support Files”?

Thanks,

Kyle

Hi Kyle,
I have another one doing this, but I cannot get it to show up on eBuddy. Also your support number, (312) 598 2803, just goes straight to a recording of “Do you want to book a call back?”.

I can access the ewon remotely, is there a file I can download that will give you the data you need?

MOVED TO STAFF NOTE (480.5 KB)

Hi Justin,

We do have a debug firmware that you could install that will try to detect when Java crashes and then write a core dump to an SD card. If you could get that and send it to us, we might have a better idea of what’s going on. (I will email it directly to you)

In the meantime, I will attach a BASIC script that you can use as a workaround that will detect the JVM crash and restart it. Make sure to change the LAN IP and user/password of the Ewon in the script.
JavaMonitor.txt (1.8 KB)

Was this working in the field for some amount of time before this started happening or is it something that has been happening all along?

Thanks Kyle,
I have that script loaded in my test ewon, now I’m just waiting for it to fail and reboot.

Could you email me that firmware again? I don’t think that I received it.

I just emailed it to you again. Let me know if you don’t get it.

Hi Kyle,

I’m getting this error when running that script. Caused by line 24.
image

Oh. My main class has a different name, so I needed to change the restart command.

OK, thanks for the update. Is everything working now?

Now getting the old error again. The main class issue caused a different problem that I think I have corrected, in trying to call a class that doesn’t exist.

[ERROR] invalid parameter (5) 24 : OPEN “exp:$dtEV” FOR TEXT INPUT AS 1

I’m not sure why that line would be causing an error. I can’t reproduce it. Please send a new backup of the Ewon including support files, as well as the Java source so I can take a look at it.