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

JavaScript heap out of memory after pairing mode start #24332

Closed
mpuff opened this issue Oct 14, 2024 · 2 comments
Closed

JavaScript heap out of memory after pairing mode start #24332

mpuff opened this issue Oct 14, 2024 · 2 comments
Labels
problem Something isn't working stale Stale issues

Comments

@mpuff
Copy link

mpuff commented Oct 14, 2024

What happened?

I wanted to pair a Ikea light bulb, it is outside of the Houde, a little bit away from the coordinator, but already 5 other bulbs around the house they are working, after starting the pairing mode, I looked at my synology why zigbee2mqtt always crashing, I found out, when I start the pairing mode and try to pair the bulb away from the coordinator, the cpu and ram goes up a lot, cpu usage is going up 120% and ram up to 6GB until I get the error JavaScript heap out of memory.

What did you expect to happen?

that zigbee2mqtt is limiting the usage of cpu and ram usage at pairing mode

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.40.2

Adapter firmware version

20240716

Adapter

SLZB-06P7

Setup

docker

Debug log

[2024-10-14 14:31:05] warning: z2m: Device '0xec1bbdfffe7286cc' left the network
[2024-10-14 14:31:44] error: zh:controller: Interview failed for '0xec1bbdfffe7286cc with error 'Error: Interview failed because can not get active endpoints ('0xec1bbdfffe7286cc')'
[2024-10-14 14:31:44] error: z2m: Failed to interview '0xec1bbdfffe7286cc', device has not successfully been paired
[2024-10-14 14:31:52] error: z2m: MQTT error: write ECONNRESET
<--- Last few GCs --->
[7:0x7f9b3c0e40c0] 377731 ms: Scavenge (reduce) 4089.5 (4098.4) -> 4089.1 (4098.6) MB, 0.7 / 0.0 ms (average mu = 0.144, current mu = 0.146) allocation failure;
[7:0x7f9b3c0e40c0] 377735 ms: Scavenge (reduce) 4090.4 (4099.4) -> 4089.8 (4099.6) MB, 0.5 / 0.0 ms (average mu = 0.144, current mu = 0.146) allocation failure;
[7:0x7f9b3c0e40c0] 377775 ms: Scavenge (reduce) 4090.9 (4099.9) -> 4090.6 (4100.2) MB, 1.9 / 0.0 ms (average mu = 0.144, current mu = 0.146) allocation failure;
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Using '/app/data' as data directory

@mpuff mpuff added the problem Something isn't working label Oct 14, 2024
@mpuff
Copy link
Author

mpuff commented Oct 14, 2024

I did pair the bulb inside the house, this was working and than I installed outside.
normally, it should pair via the other bulbs outside, I also have a led driver 1m near the bulb.

Copy link
Contributor

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the stale Stale issues label Dec 14, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working stale Stale issues
Projects
None yet
Development

No branches or pull requests

1 participant