Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unselecting and reselecting the things page crashs the app #910

Open
Danfro opened this issue Nov 17, 2022 · 3 comments
Open

unselecting and reselecting the things page crashs the app #910

Danfro opened this issue Nov 17, 2022 · 3 comments

Comments

@Danfro
Copy link
Contributor

Danfro commented Nov 17, 2022

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

@mzanetti
Copy link
Member

mzanetti commented Nov 17, 2022

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?

@Danfro
Copy link
Contributor Author

Danfro commented Nov 17, 2022

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.

@mzanetti
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants