question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash when poor or no connection with widgets

See original GitHub issue

Home Assistant Android version: 2022.3.0-full

Android version: 12

Phone model: Pixel 5

Home Assistant version: 2022.3.8

Last working Home Assistant release (if known): ??

Description of problem: I have several widgets. One of them to display an entity and 22 service calls. Quite a few times, when I loose connection with the HA or recover it (when I have poor coverage, in the garage, when toggling back from Airplane Mode to normal mode …), I have one or several crashes.

Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):


Screenshot of problem: Screenshot_20220404-071458~2

Additional information:

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
jpelgromcommented, Jun 20, 2022

it should treat the crashes more gracefully and be transparent to the user, with no visible crash

I agree, and the PR mentioned in my previous comment + the linked PR should prevent two crashes you were experiencing and makes it possible to recover from them.

Furthermore, the “edition” of a widget is not working correctly, both for “entity states” and “service buttons” are broken when editing.

Please open a new issue for this with more details so we can look into it. Possibly a duplicate of #2604?

1reaction
soccerarenadevcommented, Jun 20, 2022

Unfortunately this can’t really be resolved right now except for starting fresh: https://companion.home-assistant.io/docs/troubleshooting/faqs#starting-fresh-with-the-android-app. You will have to set up your widgets again. Please try this and let us know if there are still background crashes. this.

I’ve done this. And so far, so good.

However, I assume that despite “fixing the DB” from the app, it should treat the crashes more gracefully and be transparent to the user, with no visible crash.

Furthermore, the “edition” of a widget is not working correctly, both for “entity states” and “service buttons” are broken when editing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WidgetKit Crash | Apple Developer Forums
Happened to me today as well. It seems to be an error that Xcode missed before compiling, resulting in a bad function in...
Read more >
Android glitch: how to stop Google apps and widgets from ...
Android users are having a pretty bad few days. A system-wide glitch is causing dozens of apps and widgets to crash immediately.
Read more >
Find problem apps by rebooting to safe mode on Android
Restarting itself. Freezing. Crashing. Running slow. Restart in safe mode. Important: Safe mode removes some Home screen widgets.
Read more >
Apple widgets crash with weird network setup – Jaanus
The widgets work fine when the Internet is either “on”, meaning you have full fine connectivity, or “off”, where you don't have a...
Read more >
Question - Photos crashing and weather widget unresponsive..
They barely fixed the poor cell signal issue. ... No crashing with Google Photos or editing for me - use them both every...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found