openhab / openhab-android

openHAB client for Android
https://play.google.com/store/apps/details?id=org.openhab.habdroid
Eclipse Public License 2.0
599 stars 315 forks source link

after long time open it tries to load, but no sucess. menu still works #1767

Open thomas-roos opened 4 years ago

thomas-roos commented 4 years ago

Actual behaviour

I have an wall tablet, which has only openhab app running. After some time the sitemap is not displayed. Just showing the loading circle. App itself is not hanging, menu changes are possible. Only changing the server url back and forth it's working correct for a while.

Expected behaviour

app should not lose it's connection over time. Reconnection shouldn't be any problem

Steps to reproduce

  1. wait

Can you reproduce the issue in demo mode?

-> don't know yet, trying. But since its connection related I bet it's not reproduceably in demo mode

Environment data

Client

Server

openHAB Cloud

Logs

App log

Click to expand ``` Please add the app log if the issue is not a pure UI issue or it cannot be reproduced in demo mode. Open the app, go to `Settings` => `View log` and insert the log here. ```

openHAB Server log

no entry

thomas-roos commented 4 years ago

Device information Fingerprint: TERRA/TERRA_PAD_1005POKO/TERRA_PAD_1005POKO:8.1.0/O11019/vID100103:user/release-keys Model: TERRA_PAD_1005POKO Manufacturer: WORTMANN AG Brand: TERRA Device: TERRA_PAD_1005POKO Product: TERRA_PAD_1005POKO OS: 8.1.0

--------- beginning of events 01-12 19:17:14.010 29935 29935 I am_on_resume_called: [0,org.openhab.habdroid.ui.MainActivity,RESUME_ACTIVITY] 01-12 19:19:19.159 29935 29935 I am_on_paused_called: [0,org.openhab.habdroid.ui.MainActivity,handlePauseActivity] 01-12 19:19:19.198 29935 29935 I am_on_stop_called: [0,org.openhab.habdroid.ui.MainActivity,sleeping] 01-12 19:40:25.639 29935 29935 I am_on_resume_called: [0,org.openhab.habdroid.ui.MainActivity,RESUME_ACTIVITY] 01-12 19:43:07.865 29935 29935 I am_on_paused_called: [0,org.openhab.habdroid.ui.MainActivity,handlePauseActivity] 01-12 19:43:07.909 29935 29935 I am_on_stop_called: [0,org.openhab.habdroid.ui.MainActivity,sleeping] 01-12 19:46:34.966 29935 29935 I am_on_resume_called: [0,org.openhab.habdroid.ui.MainActivity,RESUME_ACTIVITY] 01-12 19:50:15.376 29935 29935 I am_on_paused_called: [0,org.openhab.habdroid.ui.MainActivity,handlePauseActivity] 01-12 19:50:15.416 29935 29935 I am_on_stop_called: [0,org.openhab.habdroid.ui.MainActivity,sleeping] 01-12 20:12:56.074 29935 29935 I am_on_resume_called: [0,org.openhab.habdroid.ui.MainActivity,RESUME_ACTIVITY] 01-12 20:14:57.917 29935 29935 I am_on_paused_called: [0,org.openhab.habdroid.ui.MainActivity,handlePauseActivity] 01-12 20:14:57.957 29935 29935 I am_on_stop_called: [0,org.openhab.habdroid.ui.MainActivity,sleeping] 01-12 22:23:53.724 29935 29935 I am_on_resume_called: [0,org.openhab.habdroid.ui.MainActivity,RESUME_ACTIVITY] 01-12 22:28:47.914 29935 29935 I am_on_paused_called: [0,org.openhab.habdroid.ui.MainActivity,handlePauseActivity] 01-12 22:28:47.951 29935 29935 I am_on_stop_called: [0,org.openhab.habdroid.ui.MainActivity,sleeping] 01-12 22:28:56.145 29935 29935 I am_on_resume_called: [0,org.openhab.habdroid.ui.MainActivity,RESUME_ACTIVITY] 01-12 22:29:10.631 29935 29935 I am_on_paused_called: [0,org.openhab.habdroid.ui.MainActivity,handlePauseActivity] 01-12 22:29:11.019 29935 29935 I am_on_resume_called: [0,org.openhab.habdroid.ui.PreferencesActivity,LAUNCH_ACTIVITY] 01-12 22:29:11.794 29935 29935 I am_on_stop_called: [0,org.openhab.habdroid.ui.MainActivity,handleStopActivity] 01-12 22:29:21.954 29935 29935 I am_on_paused_called: [0,org.openhab.habdroid.ui.PreferencesActivity,handlePauseActivity] 01-12 22:29:21.989 29935 29935 I am_on_resume_called: [0,org.openhab.habdroid.ui.MainActivity,RESUME_ACTIVITY] 01-12 22:29:22.330 29935 29935 I am_on_stop_called: [0,org.openhab.habdroid.ui.PreferencesActivity,destroy]

thomas-roos commented 4 years ago

I was wrong - demomode is also affected! demomodeprotocol.txt

thomas-roos commented 4 years ago

and switching demo off and on fix the problem.

mueller-ma commented 4 years ago

and switching demo off and on fix the problem.

So you don't experience this issue anymore?

thomas-roos commented 4 years ago

no no no - issue is just fixed for a few hours. Either you switch demo mode off and on or switching url back and forth.

mueller-ma commented 4 years ago

Can you turn on debug logging in the settings and send me a log after this issue has been occurred?

thomas-roos commented 4 years ago

ChangePortToWrongAndBackAndErrorIsGone.txt SwitchingOnDebugLogWhileErrorIsPresent.txt

thomas-roos commented 4 years ago

LogWhileErrorAfterAbout8h.txt This morning the error was there - here is the log. If there is anything I can try, please tell me. I love openhab and this app and like to get it running stable!

mueller-ma commented 4 years ago

I can think of two improvements that should fix this issue:

thomas-roos commented 4 years ago

Tested 2.11.14-beta and bug still is there. As said even in demo mode it occurs. I don't have a clue how you implement demo mode, but might this info helps. thx

mueller-ma commented 4 years ago

Demo mode is just a regular connection to the demo server (http://demo.openhab.org:8080/basicui/app).

thomas-roos commented 4 years ago

fixed by version: https://github.com/openhab/openhab-android/releases/tag/2.11.15-beta thanks!

thomas-roos commented 4 years ago

sorry, it's not fixed - took just longer time.