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

When accesing HACS google chrome (or other chromium browser) completly freezes #3671

Closed
6 tasks done
tdeboss opened this issue May 5, 2024 · 4 comments · Fixed by hacs/frontend#728
Closed
6 tasks done
Milestone

Comments

@tdeboss
Copy link

tdeboss commented May 5, 2024

Web browser

Google Chrome, Edge and Chromium

Web browser version

124.0.6367.119 (64bit)

System Health details

System Information

version core-2024.5.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.25-haos
arch x86_64
timezone Europe/Belgrade
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4981
Installed Version 1.34.0
Stage running
Available Repositories 1399
Downloaded Repositories 23
HACS Data ok
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.2
update_channel stable
supervisor_version supervisor-2024.04.4
agent_version 1.6.0
docker_version 25.0.5
disk_total 93.8 GB
disk_used 9.1 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons ESPHome (2024.4.2), Node-RED (17.0.12), Network UPS Tools (0.13.0), Z-Wave JS UI (3.6.0), Advanced SSH & Web Terminal (17.2.0), openWakeWord (1.10.0), Piper (1.5.0), Home Assistant Google Drive Backup (0.112.1), Studio Code Server (5.15.0)
Dashboards
dashboards 4
resources 18
views 4
mode storage
Recorder
oldest_recorder_run April 27, 2024 at 15:30
current_recorder_run May 5, 2024 at 22:53
estimated_db_size 63.83 MiB
database_engine sqlite
database_version 3.44.2
Spotify
api_endpoint_reachable ok

Checklist

Describe the issue

When I try to do anything in HACS it completely freezes. Untill today afternoon, everything worked Ok, but even after multiple reboots of my host machine and my client machine nothing seems to work. The same happens even in incognito mode.
Everything else in HASS works as expected, but as soon as i enter HACS, all chrome windows freeze completely in max. 10 seconds and I need to kill Chrome process to close Chrome.

Reproduction steps

  1. Do normal things in Home Assistant
  2. Enter HACS view
  3. I tried with a few repositories for example: HUE icons etc.
  4. Everything completely freezes, will not download, will not change tabs, will not close Chrome "the normal way", have to end task in windows.

Screenshots

Nothing to screenshot, just a freezed chrome.

Javascript logs from your browser console

Can't do anything, since everything completely freezes

Diagnostics dump

2024-05-05 22:53:45.404 DEBUG (MainThread) [custom_components.hacs] There are 6 scheduled recurring tasks
2024-05-05 22:53:45.404 INFO (MainThread) [custom_components.hacs] Loading removed repositories
2024-05-05 22:53:45.480 INFO (MainThread) [custom_components.hacs] Loading known repositories
2024-05-05 22:53:45.480 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for theme
2024-05-05 22:53:45.480 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for integration
2024-05-05 22:53:45.481 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for template
2024-05-05 22:53:45.481 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for plugin
2024-05-05 22:53:45.608 INFO (MainThread) [custom_components.hacs] Stage changed: running
2024-05-05 22:53:45.634 DEBUG (MainThread) [custom_components.hacs] The queue is empty
2024-05-05 22:53:45.634 DEBUG (MainThread) [custom_components.hacs] Did not store data for 'hacs.critical'. Content did not change
2024-05-05 22:53:45.634 DEBUG (MainThread) [custom_components.hacs] Nothing in the queue

@tdeboss tdeboss added the issue:frontend For issues with the frontend/UI label May 5, 2024
@hacs-bot
Copy link

hacs-bot bot commented May 5, 2024

Make sure you have read the issue guidelines and that you filled out the entire template.

If you have an issue identical to this, do not add comments like "same here", "i have this too", instead add a 👍 reaction to the issue description. Thanks! 👍

@ludeeus
Copy link
Member

ludeeus commented May 6, 2024

Tried Chrome and Edge (current and beta) on MacOS and Windows 11. Im unable to reproduce this.
Please add a screen recording, and the last 10 websocket messages from the network tab.

@ludeeus ludeeus removed the issue:frontend For issues with the frontend/UI label May 6, 2024
@tdeboss
Copy link
Author

tdeboss commented May 6, 2024 via email

@MrEbbinghaus
Copy link

MrEbbinghaus commented May 13, 2024

@ludeeus
The issue is this regex expression in the HACS frontend:
https://github.com/hacs/frontend/blob/77bc3289409a9c2a4c4e6decf40f6d0d9139df01/src/tools/markdown.ts#L18

/(!)?\[*.*\]\((?!.*:\/\/).*\/*.*\.\w*\)/g

In my case, the ToC of BubbleCard takes forever to parse:

**[`Installation`](#installation)** | **[`Configuration`](#configuration)** | **[`Pop-up`](#pop-up)** | **[`Horizontal buttons stack`](#horizontal-buttons-stack)** | **[`Button`](#button)** | **[`Custom button`](#custom-button)** | **[`Cover`](#cover)** | **[`Separator`](#separator)** | **[`Empty column`](#empty-column)** | **[`Actions`](#tap-double-tap-and-hold-actions)** | **[`Full example`](#full-example)** | **[`Styling`](#styling)** | **[`Conflicts`](#custom-components-conflicts)** | **[`Help`](#help)** | **[`Contribution`](#contribution)**

From the Devtools:
image

You can see a regex debugger here:
https://regex101.com/r/Hfxv4i/1 (use the default flavor)

CleanShot 2024-05-13 at 14 28 17

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

Successfully merging a pull request may close this issue.

3 participants