openmtp icon indicating copy to clipboard operation
openmtp copied to clipboard

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

Open PhilipHoltzman opened this issue 2 years ago • 18 comments

Prerequisites

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

  • [x ] Using yarn
  • [x ] Using node 10.x
  • [x ] Using an up-to-date master branch
  • [x ] Using latest version of devtools. See wiki for howto update
  • [x ] For issue in production release, devtools output of DEBUG_PROD=true yarn build && yarn start
  • [ x] Tried solutions mentioned in #400

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

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

  • Node version :
  • Version or Branch used :
  • Operating System and version [e.g. macOS 10.14 mojave]:
  • App Version [e.g. OpenMTP-v1.0]:
  • Link to your project :

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/"
  1. 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.

PhilipHoltzman avatar May 08 '22 12:05 PhilipHoltzman

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

ganeshrvel avatar May 27 '22 05:05 ganeshrvel

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

Leonidos avatar Jun 02 '22 14:06 Leonidos

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

ganeshrvel avatar Jun 02 '22 14:06 ganeshrvel

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

julien-leclercq avatar Jul 06 '22 12:07 julien-leclercq

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 avatar Jul 14 '22 07:07 landry314

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

landry314 avatar Jul 14 '22 20:07 landry314

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 avatar Jul 18 '22 12:07 ganeshrvel

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 avatar Jul 26 '22 14:07 ganeshrvel

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

ganeshrvel avatar Jul 26 '22 14:07 ganeshrvel

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.

landry314 avatar Jul 26 '22 14:07 landry314

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?

Polovinkin avatar May 03 '23 18:05 Polovinkin

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

landry314 avatar May 03 '23 19:05 landry314

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?

muradbu avatar May 30 '23 19:05 muradbu

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

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

Polovinkin avatar Feb 21 '24 20:02 Polovinkin

@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'

landry314 avatar Feb 22 '24 01:02 landry314

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? :)

Polovinkin avatar Feb 22 '24 09:02 Polovinkin

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.

ganeshrvel avatar Feb 23 '24 15:02 ganeshrvel

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?

landry314 avatar Mar 05 '24 06:03 landry314