Recurring OpenHAB crashes


  • Platform information:
    • Hardware: RPi4
    • OS: openSUSE Leap 15.3
    • Java Runtime Environment: OpenJDK Runtime Environment Zulu11.48+21-CA (build 11.0.11+9-LTS)
    • openHAB version: 3.3.0 (started occurring with 3.1.0)


About two months ago OpenHAB started to crash regularly, eventually causing hardware watchdog reboots (I haven’t checked if those are due to the dog not being tickled or high load or what). I have now, as far as I can tell, narrowed down the problem to this:

13:13:15.070 [WARN ] [ommon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 
java.lang.InternalError: a fault occurred in a recent unsafe memory access operation in compiled Java code
        at org.rrd4j.core.RrdPrimitive.writeDouble( ~[?:?]
        at org.rrd4j.core.RrdDoubleMatrix.set( ~[?:?]
        at ~[?:?]
        at org.rrd4j.core.Archive.finalizeStep( ~[?:?]
        at org.rrd4j.core.Archive.archive( ~[?:?]
        at org.rrd4j.core.RrdDb.archive( ~[?:?]
        at org.rrd4j.core.Datasource.process( ~[?:?]
        at ~[?:?]
        at org.rrd4j.core.Sample.update( ~[?:?]
        at ~[?:?]
        at ~[?:?]
        at org.openhab.core.internal.scheduler.CronSchedulerImpl.lambda$0( ~[?:?]
        at org.openhab.core.internal.scheduler.CronSchedulerImpl.lambda$1( ~[?:?]
        at org.openhab.core.internal.scheduler.SchedulerImpl.lambda$12( ~[?:?]
        at org.openhab.core.internal.scheduler.SchedulerImpl.lambda$1( ~[?:?]
        at java.util.concurrent.Executors$ ~[?:?]
        at ~[?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:?]
        at java.util.concurrent.ThreadPoolExecutor$ [?:?]
        at [?:?]

From looking at different instances of the above error, scattered all over the logs, the common denominator seems to be:


This was occurring with 3.1.x, but after upgrading to the 3.3.0 RPM today, I still see these crashes (even though they don’t seem to have caused a watchdog reboot yet).

I have discarded SD card or memory issues by cloning the card and running it on a different RPi4 unit.

Any ideas?

It’s a java-internal memory access error I’ve never seen before.
If I was to guess it’s because of your OS/Java combo, you’re probably the only person to have ever used that. I suggest you move to openHABian instead.