ganeshrvel / openmtp

OpenMTP - Advanced Android File Transfer Application for macOS
https://openmtp.ganeshrvel.com
MIT License
3.5k stars 130 forks source link

Open MTP suddenly extremely slow in transfering files (Was very fast before)(MacM1) #258

Open PhilipHoltzman opened 2 years ago

PhilipHoltzman commented 2 years ago

Prerequisites

If the following boxes are not ALL checked, your issue is likely to be closed.

Describe the bug

Like in title, 2020 mac m1 air. Downloaded openMTP and was working great for weeks.. Today transfering some mp3s and it is slower than passing them via bluetooth. I tried several different cables, and cannot think of any reason why. It just became painfully slow.. Freezing after 9min transfering 350mb of mp3s

Expected behaviour

Was a lot faster befoew

Current Behavior Its insanely slow

Possible Solution

Not obligatory, but suggest a fix/reason for the bug or ideas how to implement the addition or change.

Steps to Reproduce (for bugs) Provide a link to a live example or an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant

1.

2.

3.

4.

Context How has this issue affected you? What are you trying to accomplish? Did you make any changes to the codes after cloning it? Providing context helps us come up with a solution that is most useful in the real world.

Your Environment Latest Mac OS

Attachments Include if relevant,

  1. Open your Terminal and run the following code:
    zip -r -X ~/Desktop/OpenMTP-log.zip "$HOME/Library/Application Support/io.ganeshrvel.openmtp/logs/"
  2. Attach the file OpenMTP-log.zip found in your Desktop folder here.

Or

  1. Open the App,
  2. Click on Help > Report Bugs.
  3. Generate and send us the bugs report.

Screenshots If applicable, add screenshots to help explain your problem.

ganeshrvel commented 2 years ago

What is the version of the OpenMTP that you are facing this issue?

Leonidos commented 2 years ago

I downloaded the latest version today via brew. And I got very slow transfer speed too. 200mb audio book was copied for over 15 minutes. Like someone added delay between files or something.

mbp 16" m1 monterey 12.4 samsung note 20 utlra Android 12 OpenMTP Version 3.1.15 (3.1.15)

On old mac I had nice speeds.

Screenshot 2022-06-02 at 18 17 53
ganeshrvel commented 2 years ago

The M1 support is still in it's alpha stage and i am working on it.

You can download the alpha version of m1 from here: https://github.com/ganeshrvel/openmtp/issues/244#issuecomment-1050234082

julien-leclercq commented 2 years ago

I am also experiencing this, progress display shows a 13MB/s but a 14GB transfer is at around 10% after more than 1 hour

landry314 commented 2 years ago

i just downloaded the newest version myself and copying 7000 files from my pixel 5 to my mac was fast, very fast, but now i am trying to copy them back and it is INCREDIBLY slow. this will take days? what is happening?

Screen Shot 2022-07-14 at 3 26 12 AM
landry314 commented 2 years ago

This project hasn't been updated in a year. The file transfer is not working right.

I just figured I would use the terminal with adb and it works so fast!

If anyone is reading this, to copy a folder to your android from a mac and PRESERVE DATES (which is so important when copying images or your gallery will be screwed up), turn on ADB (in developer options, "USB debugging") then open the terminal on your mac and type this:

cd to YOUR platform-tools directory

then

./adb push SOURCE FOLDER ON COMPUTER DESTINATION FOLDER ON ANDROID

to use pull dont forget the -a flag...

./adb pull -a SOURCE FOLDER ON ANDROID DESTINATION FOLDER ON COMPUTER

ganeshrvel commented 2 years ago

Folks, I am reading your comments. My work has been keeping me busy and now I am looking for a new one. The apple silicone support is almost there, I need to figure out a few things. Let me assure you that the project isn't dead and hopefully there will be a new pre-release pretty soon.

Regards

ganeshrvel commented 2 years ago

Folks, I am trying to figure this issue out. I will make the beta release for Apple silicone soon and hopefully this should get sorted as well.

1) What OpenMTP, Android and macOS are you people on? 2) Please download these OpenMTP versions and let me know whether the file transfer speed is slow on all of them a) OpenMTP-3.1.0.dmg b) OpenMTP-3.0.0.dmg c) OpenMTP-2.4.4.dmg d) Apple Silicone: OpenMTP.app.zip

Also please note MTP protocol in itself is a crappy implementation. The file transfer speed tends to get slower after a period of phone usage.

@PhilipHoltzman @landry314 @julien-leclercq

ganeshrvel commented 2 years ago

@landry314 I am aware of the Dates and the other metadata preservation issue. I am looking into it as well.

landry314 commented 2 years ago

the date problem is also in android file manager which is why i need to use push for most folders. quite surprised google coded mtp so badly.

Polovinkin commented 1 year ago

Arrived to this thread via Google, was really surprised just like @landry314 when I had quite fast speed of loading of my photos from my S23 Ultra to my M1 Pro Mac, but when I'm trying to load something back, it's incredibly slow, so 10 months passed passed and this still wasn't fixed as it seems? :(

It took Open MTP almost two minutes to transfer 8 Mb worth of photos to my Android... I just can't understand why would it load it with a speed like that... image

And what about metadata preservation? It's the main reason I'm trying to transfer some photos from my old iPhone to correctly transfer dates from exif's.

@PhilipHoltzman did you notice any change for you after this time?

landry314 commented 1 year ago

this app is slow and deletes metadata. there are other better ones or just use push and pull commands in terminal with adb

muradbu commented 1 year ago

this app is slow and deletes metadata. there are other better ones or just use push and pull commands in terminal with adb

Which do you use?

Polovinkin commented 6 months ago

@landry314 which apps are you talking about in your comment?

@ganeshrvel is it really still not fixed after months and months?... :)

landry314 commented 6 months ago

@landry314 which apps are you talking about in your comment?

@ganeshrvel is it really still not fixed after months and months?... :)

honestly, all the apps dont work right.

i just use adb push and pull now. it is fast and with the right flags it preserves dates...

in a terminal...

cd to YOUR platform-tools directory

./adb push 'SOURCE FOLDER ON COMPUTER' 'DESTINATION FOLDER ON ANDROID'

to use pull dont forget the -a flag to preserve dates.

./adb pull -a 'SOURCE FOLDER ON ANDROID' 'DESTINATION FOLDER ON COMPUTER'

Polovinkin commented 6 months ago

thanks! But as I understand, adb push (and I need to transfer photos from Mac to Android) do not preserve metadata, there is no -a flag for adb push. Did you figure out the way to preserve dates when moving data TO Android, not from it? :)

ganeshrvel commented 6 months ago

Hello everyone,

I'm planning a lightweight and modern rewrite of the app in the near future. This will be a complete GUI app overhaul from the ground up. In the meantime, I'll attempt to find a solution for this issue.

landry314 commented 6 months ago

thanks! But as I understand, adb push (and I need to transfer photos from Mac to Android) do not preserve metadata, there is no -a flag for adb push. Did you figure out the way to preserve dates when moving data TO Android, not from it? :)

i just read online to use this:

adb push --sync

anyone have luck?