Skip to content

Camera is permanently active once used for a capture until the application is closed #22

Description

@dgervalle

Once you use the camera capture feature, the camera stay active (green led on) by Viz until Viz is closed.

Expectation would be that closing the capture window, the camera is no more used.

Activity

  1. changed the title [-]Camera is permanently active once used for a capture until the application[/-] [+]Camera is permanently active once used for a capture until the application is closed[/+] on Oct 29, 2025
  2. alienator88 commented on Oct 29, 2025

    @alienator88
    Owner

    Ah good catch, let me look at it.

  3. alienator88 commented on Oct 29, 2025

    @alienator88
    Owner

    I pulled the new version temporarily, I'll submit it again with a fix for the camera staying on.

  4. alienator88 commented on Oct 29, 2025

    @alienator88
    Owner

    Fixed. Pushing out the same version again with both fixes.
    You'll need to redownload manually since you're already on that newer version.

  5. dgervalle commented on Oct 29, 2025

    @dgervalle
    Author

    Well, IMO, almost closed, but still happen when you close the capture window too fast !
    I don't have right to reopen this issue however :(

  6. alienator88 commented on Oct 29, 2025

    @alienator88
    Owner

    Can you list reproduction steps I can take directly?
    I didn't see anything on my end.

  7. dgervalle commented on Oct 29, 2025

    @dgervalle
    Author

    Just be too fast closing the capture window once the video is shown after opening it by clicking on the webcam button in the menu.
    If you are fast enough, closing does not terminate the camera capture, the green led stays on. When slightly slower, all goes as expected.

  8. alienator88 commented on Oct 29, 2025

    @alienator88
    Owner

    That's what I've been trying, I open the capture view and close it as fast as I can move the mouse to it.
    It shuts off the LED every time on my end..hmm..
    What is slightly slower in this scenario? Like what is the shortest amount you can wait between opening the capture window and closing it to where the LED still shuts off? Like a second, 2 seconds?

  9. dgervalle commented on Oct 29, 2025

    @dgervalle
    Author

    I don't really know what to say. On my end, when the camera window appear, it takes about 2 seconds for the camera to start, than the video starts to fade in, and if I close at that moment, as soon as I see the video, it's staying on, but if I wait until the light adjustment is done, it's ok.

  10. alienator88 commented on Oct 29, 2025

    @alienator88
    Owner

    What kind of computer are you running on? Specs?

    The reason is likely that the window hasn't fully finished rendering. I added a notification observer that listens for when the window is closed to disable the camera. If the window is closed before the notification observer is setup, it has no way of knowing that it was closed.

  11. dgervalle commented on Oct 29, 2025

    @dgervalle
    Author

    I am on a MacBook Pro M3 Max released 2 years ago (Mac15,9), the windows open instantly, but it's initially black with the starting camera icon, if I close it before the camera is fully initialized, including the light adjustment fully done, which takes between 2 and 3 seconds, you miss the catch apparently.

  12. alienator88 commented on Oct 29, 2025

    @alienator88
    Owner

    Are you testing with the built-in camera?
    One thing I didn't take into account is I have an external webcam.

  13. dgervalle commented on Oct 29, 2025

    @dgervalle
    Author

    Yes, I do

  14. alienator88 commented on Oct 29, 2025

    @alienator88
    Owner

    Can you try the new release? Had to push it out before you tested because homebrew bumped my cask to 2.3.2 right as I removed it so now people can't install it. I pushed 2.3.3, with hopefully a fix for you too.

    I still couldn't reproduce the problem on my end. Not sure why, my camera loads in really fast on external and built-in.

  15. dgervalle commented on Oct 29, 2025

    @dgervalle
    Author

    That's even more puzzling with 2.3.3, now if I am very fast so the camera led is green but the screen is still black or slow enough for the camera to be fully setup, it works, but in between, when I close while the camera is tuning the brightness, it fails.

  16. alienator88 commented on Oct 29, 2025

    @alienator88
    Owner

    Definitely puzzling. I'm out of ideas here, it's just very hard to fix a bug when I can't see it and test on it :(

  17. dgervalle commented on Oct 29, 2025

    @dgervalle
    Author

    I completely understand your situation, and I am sorry if I have not provided enough information. My expertise in Swift development is quite limited. I’ve included the log file (viz.log) that I captured during a failed session stop (up to 23:54:30), followed by a successful one. I hope this helps spark some ideas for you, but I fear that some errors may be concealed. I hope it could give you more ideas. I would definitely understand if you want to give up. Please let me know if I can do more to help.

  18. alienator88 commented on Oct 29, 2025

    @alienator88
    Owner

    I will mess around with it more when I have some time.
    That log helps though, I'll poke around and see what I find.
    I'll likely need you to test a few more builds since I can't test the fixes 😂

  19. dgervalle commented on Oct 29, 2025

    @dgervalle
    Author

    Sure, you're welcome with any new build to be tested, and I fully understand the challenge. Let me know if need anything else that could help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions