OpenHAB keeps crashing every few days (often overnight).
I get these errors in the docker logs (so not openhab.log).
I see stuff about memory and ipcamera, but I’m not sure what to do about it. Can anyone help?
Running OpenHAB Latest in Docker container on Pi4
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
io.reactivex.exceptions.UndeliverableException: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | java.lang.OutOfMemoryError: Java heap space
at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:367)
at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:69)
at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
SLF4J: Failed toString() invocation on an object of type [io.netty.channel.socket.nio.NioSocketChannel]
Reported exception:
java.lang.NoClassDefFoundError: Could not initialize class io.netty.buffer.ByteBufUtil$HexUtil
Exception in thread "OH-scheduler-759" at io.netty.buffer.ByteBufUtil.hexDump(ByteBufUtil.java:161)
at io.netty.channel.DefaultChannelId.asShortText(DefaultChannelId.java:240)
at io.netty.channel.AbstractChannel.toString(AbstractChannel.java:412)
at org.slf4j.helpers.MessageFormatter.safeObjectAppend(MessageFormatter.java:291)
at org.slf4j.helpers.MessageFormatter.deeplyAppendParameter(MessageFormatter.java:263)
at org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:225)
at org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:160)
at org.slf4j.helpers.MessageFormatter.format(MessageFormatter.java:151)
at io.netty.util.internal.logging.LocationAwareSlf4JLogger.warn(LocationAwareSlf4JLogger.java:202)
at io.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:490)
at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:89)
at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:83)
at io.netty.channel.MultithreadEventLoopGroup.register(MultithreadEventLoopGroup.java:86)
at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:339)
at io.netty.bootstrap.Bootstrap.doResolveAndConnect(Bootstrap.java:164)
at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:148)
at org.openhab.binding.ipcamera.internal.onvif.OnvifConnection.sendOnvifRequest(OnvifConnection.java:580)
at org.openhab.binding.ipcamera.internal.onvif.OnvifConnection.connect(OnvifConnection.java:947)
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler.tryConnecting(IpCameraHandler.java:1770)
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler.resetAndRetryConnecting(IpCameraHandler.java:1800)
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler.cameraCommunicationError(IpCameraHandler.java:1455)
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler$2.operationComplete(IpCameraHandler.java:670)
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler$2.operationComplete(IpCameraHandler.java:1)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:590)
at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:583)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:559)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:492)
at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:636)
at io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:629)
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:118)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe$1.run(AbstractNioChannel.java:262)
at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)
at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:153)
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:566)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.OutOfMemoryError: Java heap space [in thread "nioEventLoopGroup-19-3"]
java.lang.OutOfMemoryError: Java heap space
Caused by: Attached Guest Language Frames (6)
Exception in thread "SocketListener(172-19-0-1.local.)" java.lang.IllegalStateException: Timer already cancelled.
at java.base/java.util.Timer.sched(Timer.java:409)
at java.base/java.util.Timer.schedule(Timer.java:205)
at javax.jmdns.impl.DNSTaskStarter$DNSTaskStarterImpl$StarterTimer.schedule(DNSTaskStarter.java:219)
at javax.jmdns.impl.tasks.Responder.start(Responder.java:98)
at javax.jmdns.impl.DNSTaskStarter$DNSTaskStarterImpl.startResponder(DNSTaskStarter.java:395)
at javax.jmdns.impl.JmDNSImpl.startResponder(JmDNSImpl.java:1784)
at javax.jmdns.impl.JmDNSImpl.handleQuery(JmDNSImpl.java:1574)
at javax.jmdns.impl.SocketListener.run(SocketListener.java:75)