Skip to content

Directory becomes "empty" after 1st access resulting in "PTP No Device (-52)" error #1069

Open
@Sija

Description

Describe the bug
When accessing a directory with device unplugged (via gp_camera_folder_list_folders), I'm getting PTP No Device (-52) error on the 1st try, but then on subsequent calls it returns successfully with an empty directory structure.

Name the camera
I've seen it happen on many cameras (PTP Generic, Canon)

libgphoto2 and gphoto2 version
libgphoto2 2.5.31

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions