Bug 48544 - Зависает, если нет камер для работы
Summary: Зависает, если нет камер для работы
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: howdy (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Leontiy Volodin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-22 11:53 MSK by Evgeny Shesteperov
Modified: 2023-12-05 15:03 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeny Shesteperov 2023-11-22 11:53:58 MSK
Версия

-   howdy-3.0.0-alt10.beta1.gitc5b1766

Шаги воспроизведения

Установить Howdy-GTK:

    # apt-get install -y howdy-gtk

Убедиться, что система не видит никаких камер:

    # stat /dev/v4l
    stat: не удалось выполнить statx для '/dev/v4l': Нет такого файла или каталога

Запустить Howdy GTK:

    # howdy-gtk --user test

Нажать Далее.

Нажать Далее.

Ожидаемый результат: Cообщение о том, что камеры не найдены.

Фактический результат: Сообщение
Тестирование камеры. Подождите, пожалуйста... длится вечно. В терминале
вывод:

    Traceback (most recent call last):
      File "/usr/libexec/howdy-gtk/onboarding.py", line 122, in execute_slide2
        device_ids = os.listdir("/dev/v4l/by-path")
    FileNotFoundError: [Errno 2] Нет такого файла или каталога: '/dev/v4l/by-path'
Comment 1 Repository Robot 2023-12-05 15:03:34 MSK
howdy-3.0.0-alt11.beta1.gitc5b1766 -> sisyphus:

 Tue Dec 05 2023 Anton Golubev <golubevan@altlinux> 3.0.0-alt11.beta1.gitc5b1766
 - howdy-gtk: Add default args to exit functions (ALT #48543)
 - Don't pkexec if already root
 - Handle the case if there are no cameras via except (ALT #48544)
 - Show real camera ID in the 'Video' tab (ALT #48542)
 - Don't add a model if the user list is empty (ALT #48529)
 - More correct preview when stretching the window (ALT #48527)
 - Remove reading of non-existent '_variables' file (ALT #48500)
 - Update the container when the slide changes (ALT #48502)
 - Also use PKEXEC_UID to get username (ALT #48503)