openhab / openhab-ios

The repository of the iOS client
Eclipse Public License 2.0
192 stars 128 forks source link

Many errors in openhab.log file #677

Open EjvindHald opened 2 years ago

EjvindHald commented 2 years ago

New bug checklist I am using the newest test flight version of the iOS app. The problem has been there for several months.

Describe the bug The log file openhab.log shows many various error messages when using the iOS app. Some are Java crash, some mentions 'Broken pipe' and others are related to REST API.

To Reproduce I am sorry to say I cannot reproduce it consistently. I have tried to find a pattern, but have not been able to. The very same usage of the app works fine one day, but seem to cause log errors the next day. The sitemap itself works fine in Chrome where it never causes any errors in the log file.

Expected behavior No log file entries as a result of using iOS app.

Screenshots n/a

App (please complete the following information):

Smartphone (please complete the following information): iPhone 12

openHAB (please complete the following information):

Additional context Sorry for not being able to provide more info, but I only have these symptoms.

kstuken commented 2 years ago

I can confirm this. Lots "broken pipe" and "could not send message" errors in the log when using the iOS app.

After upgrading to OH3.3 the logging has somewhat evolved, I am now getting a lot of a new error that I had never seen under OH3.2 before: 2022-08-29 21:40:19.114 [ERROR] [ab.core.ui.icon.internal.IconServlet] - Failed sending the icon byte stream as a response: null 2022-08-29 21:40:19.116 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /icon/temperaturenew_set

usually followed by multiple 2022-08-29 21:41:51.385 [WARN ] [ache.cxf.phase.PhaseInterceptorChain] - Interceptor for {http://internal.id.core.openhab.org/}UUIDResource has thrown exception, unwinding now

I initially thought there might be an error related to some particular icons and tried reducing the size of those, but that did not really change much. The error pops up with all kind of icons, including the ones I down-sampled.

I have a large sitemap, 1.3k lines. The error seems to pop up more frequently when I open sub-pages that have plenty of items on them. But eg the above error just occured as I was using a Setpoint to lower a temperature by 20 degrees; very sluggish responsiveness of the app, and it looked like after every click / lowering by 1 degree the app reloaded the icon of the item (and when I checked after that I found error messages in the log pertaining to exactly that icon)