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

error at boot #896

Open
Olivierbkk opened this issue Feb 7, 2024 · 4 comments
Open

error at boot #896

Olivierbkk opened this issue Feb 7, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Olivierbkk
Copy link

I got this:
TypeError: Cannot read properties of null (reading 'get')
at file:///var/lib/homebridge/node_modules/homebridge-camera-ui/src/accessories/camera.js:280:57
at processTicksAndRejections (node:internal/process/task_queues:95:5)

and the HB keeps rebooting

@Olivierbkk Olivierbkk added the bug Something isn't working label Feb 7, 2024
@ikura
Copy link

ikura commented May 20, 2024

I have the same issue after upgrading node.js from v20.10 to v20.13 and homebridge to 1.8.2 (from 1.8.1 I think)

@ikura
Copy link

ikura commented May 20, 2024

I made a temporary fix by replacing line 280 of /var/lib/homebridge/node_modules/homebridge-camera-ui/src/accessories/camera.js with

      const cameraController = this.cameraUi.cameraController;

      var controller;
      if (cameraController == null) {
        controller = "CameraUI";
      } else {
        controller = cameraController.get(this.accessory.displayName);
      }

Now it's running ok for me, and snapshots appear to work correctly still.

@mkz212
Copy link
Contributor

mkz212 commented Jul 29, 2024

🎉 A new version of camera.ui

A new version of camera.ui is currently under active development. An initial alpha/beta release and previews are coming soon. Stay tuned for exciting updates: seydx/camera.ui#448 .

This version will no longer be developed / fixed. The new version contains many novelties and fixes (most important is for HKSV recording).

@Olivierbkk
Copy link
Author

@ikura
I forgot to mention but your fix works, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants