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

regression in sdram capture on EOS 2000d #1061

Open
msmeissn opened this issue Nov 21, 2024 · 3 comments
Open

regression in sdram capture on EOS 2000d #1061

msmeissn opened this issue Nov 21, 2024 · 3 comments
Assignees
Labels
Canon tagging canon reports

Comments

@msmeissn
Copy link
Contributor

msmeissn commented Nov 21, 2024

Describe the bug

Canon EOS 2000D can not do SDRAM capture anymore. Reports PTP device busy.

Name the camera

Canon EOS 2000D

libgphoto2 and gphoto2 version

2.5.31.1 git

To Reproduce

@msmeissn
Copy link
Contributor Author

bisects to
6a1a3fa is the first bad commit

commit 6a1a3fa
Author: axxel [email protected]
Date: Tue Oct 22 11:59:30 2024 +0200

ptp2: cleanup of find_child() and [folder|file]_list_func() functions

Those 3 functions were calling ptp_list_folder to update the object cache
and then iterating over the object cache to find the children of some
specific handle, thereby calling ptp_object_want() which could potentially
remove objects from the list they were iterating over. This was explicitly
marked as "DANGEROUS", which it was.

This patch introduces a return parameter to ptp_list_folder, to let the
caller know, which handles it found. This does two things: a) it is a
potential performance improvement and b) the caller can iterate over a
fixed list of handles, instead of a potentially changing list of objects.
This also did away with the 'retry' logic that tried to deal with this
situation.

I further removed the special fetching of the root folder entries from
the camera_init function and other places and I removed the code
duplication between file_list_func and folder_list_func.

@msmeissn
Copy link
Contributor Author

hmm, does not happen al the time, so bisect is mood

@msmeissn msmeissn self-assigned this Nov 21, 2024
@msmeissn msmeissn added the Canon tagging canon reports label Nov 21, 2024
@msmeissn
Copy link
Contributor Author

another bisect also kind of found commit 6a1a3fa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Canon tagging canon reports
Projects
None yet
Development

No branches or pull requests

1 participant