logbook-card icon indicating copy to clipboard operation
logbook-card copied to clipboard

Logbook card crashes whole UI with Add Card dialog

Open trisweb opened this issue 1 year ago • 2 comments

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):

  • HA Version: 2024.4.4
  • Browser: Chrome and Firefox
  • Card version 2.5.5

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 avatar May 01 '24 03:05 trisweb

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

Chrome profile: Trace-20240417T213437.zip

trisweb avatar May 01 '24 03:05 trisweb

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 ...

royto avatar May 01 '24 20:05 royto