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

[MacOS] Upon Completing A Request icloudpd Displays A Resource Leak Warning Followed By Inducing The New CLI Prompt #668

Closed
scrutinizer11 opened this issue Jul 20, 2023 · 7 comments
Assignees
Labels

Comments

@scrutinizer11
Copy link

scrutinizer11 commented Jul 20, 2023

Overview

Immediately after completing the request, icloudpd invokes the new command line prompt, displays a warning and exits.

Steps to Reproduce

  1. run icloudpd --list-albums and authenticate
  2. Wait until the session wraps up and see what happens.

Expected Behavior

No uncalled actions.

Actual Behavior

The utility displays the warning "multiprocessing/resource_tracker.py:104: UserWarning: resource_tracker: process died unexpectedly, relaunching. Some resources might leak." and then calls up another prompt before exiting.

Context

macOS 10.14, icloudpd 1.15.1

icloudpd-err

@scrutinizer11 scrutinizer11 changed the title Upon Completing A Request icloudpd Starts The New CLI Prompt Displaying A Reource Upon Completing A Request icloudpd Displays A Resource Leak Warning Followed By Inducing The New CLI Prompt Jul 20, 2023
@AndreyNikiforov AndreyNikiforov self-assigned this Jul 20, 2023
@AndreyNikiforov
Copy link
Collaborator

AndreyNikiforov commented Jul 20, 2023

Reproduced the issue on mac M1 and icloudpd 1.15.1, but linux & windows are fine.

As a fast mitigation you can downgrade to 1.14.2 (or earlier):

pip3 install icloudpd==1.14.2

@AndreyNikiforov
Copy link
Collaborator

Seems to be related to tqdm and here. MacOS only. Need to test if only binary packages affected or it is just tqdm issue (==is pyinstaller adding anything to the story).

@genfersee
Copy link

genfersee commented Sep 25, 2023

I have the same issue. I am using version 1.15.1.

2023-09-25 08:14:31 INFO Downloading ??? original photos and videos to /Users/rrr/Library/Mobile Documents/com~apple~CloudDocs/Photos ... 0it [00:00, ?it/s]multiprocessing/resource_tracker.py:104: UserWarning: resource_tracker: process died unexpectedly, relaunching. Some resources might leak.

@AndreyNikiforov AndreyNikiforov changed the title Upon Completing A Request icloudpd Displays A Resource Leak Warning Followed By Inducing The New CLI Prompt [MacOS] Upon Completing A Request icloudpd Displays A Resource Leak Warning Followed By Inducing The New CLI Prompt Dec 3, 2023
AndreyNikiforov added a commit to AndreyNikiforov/icloud_photos_downloader that referenced this issue Dec 4, 2023
AndreyNikiforov added a commit that referenced this issue Dec 4, 2023
@petebocken
Copy link

This issue was fixed (or previously fixed and now a problem again)? I just updated to 1.17.0 and everything appears to be working again, but this displays every time when run:

me@computername icloudpd % ./icloudpd.sh
Usage: icloudpd <options>
Try 'icloudpd -h' for help.

Error: No such option: -B
multiprocessing/resource_tracker.py:123: UserWarning: resource_tracker: process died unexpectedly, relaunching.  Some resources might leak.
me@computername icloudpd % Usage: icloudpd <options>
Try 'icloudpd -h' for help.

Error: No such option: -B

@AndreyNikiforov
Copy link
Collaborator

confirming that the fix works for experimental binary only (icloudpd-ex), but not main binary (icloudpd).

@AndreyNikiforov
Copy link
Collaborator

pls see if 1.17.1 fixed the issue. reopen if not

@petebocken
Copy link

Yup, 1.17.1 fixed it. thanks!

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

No branches or pull requests

4 participants