[Bug] Pixel 11 Pro Fold fails to connect: "OpenSession after reset: LIBUSB_ERROR_NOT_FOUND (PID: 2321, 1376, 1365, 2334, 19316, 603)"
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start at the USB device setup and OpenSession reset path that produces LIBUSB_ERROR_NOT_FOUND, then inspect how SwiftMTP handles macOS ptpcamerad probing; the issue identifies a suspected race but does not name source files or tests. Reproduce with the Pixel 11 Pro Fold in File Transfer mode and compare with OpenMTP on the same setup. Done means SwiftMTP maintains the MTP session and transfers files without Android dropping back to charging only.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
When connecting a Google Pixel 11 Pro Fold via USB-C in "File Transfer" mode, SwiftMTP detects the device and briefly starts loading files for 1-2 seconds before immediately failing with the error:
Device setup failed, please reconnect or restart device: OpenSession after reset: LIBUSB_ERROR_NOT_FOUND (PID: 2321, 1376, 1365, 2334, 19316, 603)
Immediately after this error occurs, Android detects the USB reset/interruption and automatically drops the MTP session, reverting back to "No data transfer" (Charging only).
Additionally, clicking "Check for Updates..." in the Info & Update tab fails with Check failed.
Steps to Reproduce
- Connect Google Pixel 11 Pro Fold to Mac via USB-C.
- Select "File Transfer / Android Auto" mode on Android.
- Open SwiftMTP (tested on both v1.2.3 and v1.2.4).
- The device begins loading files for 1-2 seconds, then drops with
LIBUSB_ERROR_NOT_FOUND.
Environment
- SwiftMTP Version: v1.2.4 (also reproducible on v1.2.3)
- Device: Google Pixel 11 Pro Fold (Android 15)
- macOS Version: macOS (Apple Silicon)
- Connection: Direct USB-C to USB-C cable
PIDs & Technical Details
- Error reported PIDs:
(PID: 2321, 1376, 1365, 2334, 19316, 603) - Inspecting the processes on macOS shows that PID
19316(and in previous attempts35204) corresponds to macOS/usr/libexec/ptpcamerad(which launchd automatically spawns whenever a USB camera/MTP device is plugged in), while other PIDs are standard background apps holding unrelated IOHID/USB descriptors. - Because
libusb_reset_device/OpenSessionis invoked while macOSptpcameradprobes the device, a race condition occurs, causing the session to fail and Android to disconnect. - Comparison: OpenMTP on the same machine and cable connects and transfers files without dropping the session.
- Ngôn ngữ chính
- Swift
- Star
- 481
- Fork
- 11
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Neighbor-Z/SwiftMTP
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Neighbor-Z/SwiftMTP#22 · 1 bình luận ·
-
Crash on Nintendo SwitchĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Neighbor-Z/SwiftMTP#3 · 4 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
Neighbor-Z/SwiftMTP#21 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Neighbor-Z/SwiftMTP#20 · 2 bình luận ·
Tất cả issue của Neighbor-Z/SwiftMTP
Issue tương tự
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
manaflow-ai/cmux#68791 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
codual-ai/designlane#56 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
apple
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
erkamyaman/unslop-anything#375 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openwatersio/slackwater-ios#976 ·
Maintainer thường phản hồi trong vòng 1 ngày