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.

Thanks for confirming it’s not OpenHAB code (I had a suspicion it wasn’t). It appears to have been an incompatibility between the installed Java version and an OS update. I upgraded the Java package and the problem went away.

Why do you use such an exotic OS ? It’s just creating a need to solve problems you would not have or others had before you and solved them for you if you went with the standard, openHABian that is.

I would hardly call OpenSUSE an “exotic” OS.

On Raspi, definitely so. Anything but Raspi OS is there.
Make yourself aware what you see is effects of that choice.