royto / logbook-card

Logbook card for Home Assistant UI Lovelace
GNU General Public License v3.0
203 stars 9 forks source link

Logbook card crashes whole UI with Add Card dialog #119

Open trisweb opened 6 months ago

trisweb commented 6 months ago

Describe the bug The preview of the custom logbook card appears to crash the browser upon opening the Add Card dialog.

Tested in HA 2024.4.4

To Reproduce Steps to reproduce the behavior:

  1. Go to Add Card
  2. Wait 2-3 seconds
  3. Browser freezes, then page crashes

Expected behavior Self evident.

Screenshots Screenshot from 2024-04-30 22-20-58 Screenshot from 2024-04-30 22-32-32

Environment (please complete the following information):

Card configuration Not applicable

Additional context Javascript profiles available for both Chrome and Firefox; very clear infinite loop inside logbook-card.js is visible on the surface level, but I have not looked deeper.

Screenshot from 2024-04-30 22-36-51

I've uninstalled the plugin for now to restore home assistant's utility.

trisweb commented 6 months ago

Firefox profile: Firefox 2024-04-30 22.35 profile.json.gz

Chrome profile: Trace-20240417T213437.zip

royto commented 6 months ago

Hello @trisweb,

I didn't have the issue on my instance (HA 2024.4.4). Did you have the issue before ?

The card use the first entity as entity to render the card in the card picker. Maybe it is relative to that ... What is weird is that depending of the dashboard i choose, i don't have the same entity used ...