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.

Homebridge stopped working - Error: Cannot create a string longer than 0xffffff0 characters

See original GitHub issue

I had Homebridge working for a while and suddenly it stopped working giving errors below. I initially thought it might an issue with one of the plug-ins or accessories, so unistalled all of them and removed the config.json and still see the same error

[12/4/2020, 23:13:47] Error: Cannot create a string longer than 0xffffff0 characters
    at Object.slice (buffer.js:606:37)
    at Buffer.toString (buffer.js:803:14)
    at Object.readFileSync (fs.js:408:41)
    at LocalStorage.parseDirSync (/usr/lib/node_modules/homebridge/node_modules/node-persist/src/local-storage.js:637:35)
    at LocalStorage.parseDataDirSync (/usr/lib/node_modules/homebridge/node_modules/node-persist/src/local-storage.js:572:21)
    at LocalStorage.initSync (/usr/lib/node_modules/homebridge/node_modules/node-persist/src/local-storage.js:145:14)
    at HAPStorage.storage (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/model/HAPStorage.ts:23:25)
    at Function.HAPStorage.storage (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/model/HAPStorage.ts:11:26)
    at Function.AccessoryInfo.load (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/model/AccessoryInfo.ts:204:28)
    at Bridge.Accessory._this.publish (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:890:41)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Superegcommented, Dec 6, 2020

no need. Already tracked that for our next release

0reactions
atajikcommented, Dec 6, 2020

haha, fair point, do you want me to re-open the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Homebridge stopped working - Error: Cannot create a ...
Homebridge stopped working - Error: Cannot create a string longer than 0xffffff0 characters.
Read more >
Cannot create a string from buffer longer than 0xffffff0 characters
I'm closing this as working as expected. It's indeed not possible to create strings that long, the limit is just shy of 256...
Read more >
Cannot create a string longer than 0x1fffffe8 characters in ...
I'm creating a video player application and ...
Read more >
ERROR: Cannot create a string longer than 0x3fffffe7 characters
I am using the FTP download node and I have a zip file I am trying to download and I get the following...
Read more >
Cannot create a string longer than - Edge Impulse Forum
Error while loading features: Model could not be read: Cannot create a string longer than 0x1fffffe8 characters.
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