Hi All
I have raised this question before, but was not able to solve it. I have however started looking at the issue again and thought it best to start a new thread. The one reason I gave up has been addressed (Setting Variables on Overview page), So I thought to try resolve again.
I have an Overview page with multiple oh-cell
components that link to various f-popup
when the oh-cell
is activated.
I have a wall mounted Android Tablet running the latest version of the Android App, usually open on the Overview page.
I have noticed that regularly the Android App stops responding and eventually closes.
I have narrowed this down to two âwidgetsâ which when open have some animation and charting, so assume that it is a resourcing issue - even though these components âshouldnâtâ be using resources until opened.
I have narrowed down to these two "widgets by removing them from the Overview page completely and when they are removed the issue does not occur.
As a part of diagnosing I have used the Developer Tools to investigate the page (while the oh-cell
is closed.
The component output is:
<div>
<div class="block" style="--cell-green: rgba(165,236,176,255); --cell-red: rgba(255,156,151,255); --cell-yellow: rgba(254,229,128,255); height: 100%; margin: 0px; padding: 0px; position: absolute; width: 100%;"/>
<div class="block" style="bottom: 5px; left: 0px; margin: 0px; padding: 0px; position: absolute; width: 100%;">
<a href="#" data-popup=".sunSynk-pop" class="button popup-open" action="variable" actionvariable="visibleSunSynkPop" actionvariablevalue="true" slot="default" style="height: 100%; width: 100%;">
<span>OPEN</span>
</a>
</div>
<div class="popup sunSynk-pop" style="--f7-popup-tablet-height: 720px; --f7-popup-tablet-width: 360px; background-color: rgb(220, 220, 220); border-radius: 30px; height: 720px; text-overflow: ellipsis; width: 360px;">
<!---->
</div>
</div>
This shows no evidence of the actual popup as far as I can tell.
Also, there is no evidence of the actual popup:
Until I âOPENâ the popup:
As an additional measure I have also ensured that the child f7-block
of the f7-popup
is not visible.
- component: f7-popup
config:
class: sunSynk-pop
style:
--f7-popup-tablet-height: 720px
--f7-popup-tablet-width: 360px
background-color: rgb(220,220,220)
border-radius: 30px
height: 720px
text-overflow: ellipsis
width: 360px
slots:
default:
- component: f7-block
config:
popupClose: .sunSynk-pop
style:
--f7-popup-tablet-height: 720px
--f7-popup-tablet-width: 360px
background-color: rgb(220,220,220)
border-radius: 30px
height: 720px
margin: 0
padding: 0
text-overflow: ellipsis
width: 360px
visible: =(vars.visibleSunSynkPop) == true
The original topic I created is: OH4: Overview Page with widgets causing Android App to Crash (Suspected)
The full widget code for the two âoffendingâ oh-cell
are as follows:
SunSynk Summary.txt (37.2 KB)
Mains TOTAL Energy.txt (13.0 KB)
And a simple template I used to test the âhiddenâ block is:
Template for Hide.txt (4.2 KB)
The animated widget looks as follows:
I accept that the tablet I am using may be running out of resources, I just cannot work out why that would be a problem if the âoffendingâ components are not being rendered at all?
Would really love to get some advise on how to debug and resolve this further.
Thanks
Mark