nymea / nymea-app

A nymea frontend app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unselecting and reselecting the things page crashs the app

Danfro opened this issue · comments

I do have the things page and the energy view enabled for the main view.

  1. enter "configure main view"
  2. unselect "things"
  3. reselect "things"
  4. press "done"
    expected: the configuration page is closed and the app returns to the main view
    actual behavior: the app crashs

Tested on snap version on Ubuntu 22.04 and OpenStore version on Ubuntu Touch, nymea server on raspi with Ubuntu server 20.04

Log from UT app here:

application-click-io.guh.nymeaapp_nymea-app_1.5.1.log

Hmm... Can't reproduce this... There must be more to it then just unselecting/selecting the things view... It likely depends on something like other enabled views, configured things... Can you please try to find out more?

i.e. can you also reproduce this with the demo server?

Ok, pressing "done" without changing anything does make the app crash.
I did start the snap from terminal to get some output there.

The log contains the following lines:

qrc:/ui/MainPage.qml:121: TypeError: Type error
qrc:/ui/mainviews/energy/PowerProductionBalanceHistory.qml:526: TypeError: Cannot read property 'timestamp' of null
qml: InterfaceTile, inlineButtonControl 2 image: Unhandled interface powersocket
qml: ButtonControls button 1 image: Unhandled interface powersocket
qrc:/ui/mainviews/energy/ConsumerStats.qml:449: TypeError: Type error
qrc:/ui/mainviews/energy/ConsumerStats.qml:477: TypeError: Type error
qrc:/ui/MainPage.qml:121: TypeError: Type error
qml: InterfaceTile, inlineButtonControl 2 image: Unhandled interface powersocket
qml: ButtonControls button 1 image: Unhandled interface powersocket
Speicherzugriffsfehler (Speicherabzug geschrieben)

My solar inverter is not connected. That did come up with zero as total power when I had it connected. So might be a timestamp issue there too.

I don't think it has anything to do with the solar inverter.. But yes, it must be something about the constellation of things configured in the system. Can you reproduce this with the demo server?