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

Freeze on MTP transfer #256

Closed
Salamandar opened this issue Sep 26, 2016 · 3 comments
Closed

Freeze on MTP transfer #256

Salamandar opened this issue Sep 26, 2016 · 3 comments
Labels
Milestone

Comments

@Salamandar
Copy link

Salamandar commented Sep 26, 2016

Well I was transfering some 11GB on my phone and at 10GB Sunflower froze. Fortunately it was launched in a terminal and the traceback is :

Exception in thread Thread-15:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/share/sunflower/application/operation.py", line 1122, in run
    self._copy_file_list()
  File "/usr/share/sunflower/application/operation.py", line 1074, in _copy_file_list
    self._copy_file(file_name, source_path)
  File "/usr/share/sunflower/application/operation.py", line 945, in _copy_file
    dh.write(data)
  File "/usr/share/sunflower/application/plugins/file_list/gio_wrapper.py", line 73, in write
    self._resource.write(buff)
Error: Erreur libmtp : Erreur inconnue.

EDIT : Hm, and ctrl+C in the terminal returned :

^CTraceback (most recent call last):
  File "/usr/share/sunflower/Sunflower.py", line 75, in <module>
    process.wait()
  File "/usr/lib/python2.7/subprocess.py", line 1392, in wait
    pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
  File "/usr/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
    return func(*args)
KeyboardInterrupt

but did not close SF.

@MeanEYE
Copy link
Owner

MeanEYE commented Sep 26, 2016

Sunflower didn't close from Ctrl+C because GUI is started in separate thread. But I didn't expect error not to be caught there. Hm, strange. Thanks for reporting this. I don't know what would cause interruption during writing.

@MeanEYE MeanEYE added the bug label Sep 26, 2016
@MeanEYE MeanEYE added this to the v0.4 milestone Sep 26, 2016
@Salamandar
Copy link
Author

It may be a simple error in libmtp not managed in SF. Or a MTP error not catched in libmtp.

@MeanEYE
Copy link
Owner

MeanEYE commented May 18, 2020

I think this was an issue in upstream library. I tried testing this with version 0.4 and couldn't reproduce. For this reason I am closing this issue. If it's not fixed, please reopen.

Thanks!

@MeanEYE MeanEYE closed this as completed May 18, 2020
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

2 participants