Help: MTP Device Scanning Very Slow [#9284]

Beta Testing for Windows Products and plugins

Moderator: Gurus

Lowlander
Posts: 45769
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by Lowlander » Mon May 14, 2012 6:05 pm

Note that this should be improved (and also tested with) build 1490.
Lowlander (MediaMonkey user since 2003)

moonglow
Posts: 69
Joined: Sat May 09, 2009 12:36 am

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by moonglow » Tue May 15, 2012 1:39 am

Great thanks!

gpzbc
Posts: 1226
Joined: Sat Sep 13, 2008 12:02 am
Location: Colorado, USA

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by gpzbc » Tue May 15, 2012 2:19 pm

Unfortunately scanning still grinds to a halt for me on my Galaxy Nexus. But I actually suspect that it is an issue with the Galaxy Nexus more than with MediaMonkey. It might be this Google bug? http://code.google.com/p/android/issues/detail?id=23090

Is anyone else having success with the Galaxy Nexus?
--
The gpzbc

SansaMonkey
Posts: 72
Joined: Tue Mar 27, 2012 10:15 am

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by SansaMonkey » Tue May 15, 2012 2:27 pm

Is your Galaxy Nexus really running in MTP mode?

gpzbc
Posts: 1226
Joined: Sat Sep 13, 2008 12:02 am
Location: Colorado, USA

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by gpzbc » Tue May 15, 2012 2:33 pm

Yes, definitely.
--
The gpzbc

Ludek
Posts: 2868
Joined: Fri Mar 09, 2007 9:00 am

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by Ludek » Wed May 16, 2012 7:56 am

I have Galaxy Nexus and the scanning process takes just several seconds with 1490 for me.

Could you generate debug log while the "Scanning..." is in process?

Item 4B) here http://www.mediamonkey.com/forum/viewto ... ?f=6&t=341

Based on the log I can tell you what happens.

BTW. Do you have disabled USB debbuging in your Nexus? It is disabled by default, but for sure.

Thank you.

gpzbc
Posts: 1226
Joined: Sat Sep 13, 2008 12:02 am
Location: Colorado, USA

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by gpzbc » Wed May 16, 2012 9:58 am

Yes, I have USB Debugging disabled.

I ran DebugView, and from what I can tell, it is not hanging at all. It is just taking forever to scan the contents of my phone. You can look at the log, but it definitely takes a long time to scan the cache of a wallpaper app, called Wallbase, and a OneNote app, called MobileNoter, that I use. Apparently, the cache for those two apps are quite large. So maybe this is normal? But I don't think my setup is all that abnormal. That is, there are bound to be many MM users that use apps with a large cache on their phone.

Anyways, I let the DebugView run for a few minutes and then saved the log to a file. I also generated a log of my GNex's internal structure and I am going to PM you and Lowlander both of the files.

Please keep me posted. Thanks
--
The gpzbc

Ludek
Posts: 2868
Joined: Fri Mar 09, 2007 9:00 am

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by Ludek » Wed May 16, 2012 12:54 pm

Yes, based on another log I can confirm that folders like Wallpapers includes many files that slows the scanning, therefore I have already added them to ignored folders for build 1491:
http://www.ventismedia.com/mantis/view. ... 284#c31143

gpzbc
Posts: 1226
Joined: Sat Sep 13, 2008 12:02 am
Location: Colorado, USA

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by gpzbc » Wed May 16, 2012 1:38 pm

sounds good. Thanks.
It would be very useful if the user could define which folders are scanned. Perhaps an entry in device configuration boxes? Just an idea.
--
The gpzbc

ACraigL
Posts: 152
Joined: Sun Dec 11, 2005 9:05 am

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by ACraigL » Wed May 16, 2012 2:18 pm

I thought it did. From my SDCard, I have every destination box set as /Andy/[path to my media]. My expectation is that it only looks in the folders specified here. Maybe I'm wrong.

gpzbc
Posts: 1226
Joined: Sat Sep 13, 2008 12:02 am
Location: Colorado, USA

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by gpzbc » Wed May 16, 2012 2:23 pm

ACraigL wrote:I thought it did. From my SDCard, I have every destination box set as /Andy/[path to my media]. My expectation is that it only looks in the folders specified here. Maybe I'm wrong.
As I understand it, that is just where it looks to sync. But it seem logical to me that the sync destination list would be the same as the scan destination list.

EDIT: from the bug-tracker comments, it looks like that is what Ludek is recommending. "So I would suggest to limit the scanning to sync targets only at least for all android devices connected in MTP mode"
Last edited by gpzbc on Wed May 16, 2012 2:38 pm, edited 1 time in total.
--
The gpzbc

rusty
Posts: 7170
Joined: Tue Apr 29, 2003 3:39 am
Location: Montreal, Canada

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by rusty » Wed May 16, 2012 2:37 pm

But it seem logical to me that the sync destination list would be the same as the scan destination list.
That seemed logical to us as well, and we'd implemented something like that during the course of MM 4.0.0 beta testing. But we found that some users have tracks on their phones that are in directories that they don't want to sync, so we had to undo the change.

I think that the only real solution will be to give users the flexibility to configure MM to scan other additional destinations.

-Rusty

gpzbc
Posts: 1226
Joined: Sat Sep 13, 2008 12:02 am
Location: Colorado, USA

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by gpzbc » Wed May 16, 2012 2:39 pm

rusty wrote:I think that the only real solution will be to give users the flexibility to configure MM to scan other additional destinations.
I agree. (for what it is worth)
--
The gpzbc

charlieMOGUL
Posts: 168
Joined: Fri Mar 11, 2005 5:26 am

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by charlieMOGUL » Thu May 24, 2012 8:56 pm

rusty wrote:
But it seem logical to me that the sync destination list would be the same as the scan destination list.
I think that the only real solution will be to give users the flexibility to configure MM to scan other additional destinations.

-Rusty
+1 from me as well.
In my opinion MediaMonkey should honor the synchronize directories as well as the ignore directories, regardless of the type of device.
I'm not too happy about the fact that MediaMonkey tries to open and read all images, video files, DVD files, etcetera on devices, even though the folders are set to ignore. It takes forever on external drives that have lots of photos on it. The ignore folder is there to ignore.
MediaMonkey is not the tool to specify what kind of files reside on the device: I use it to manage my (music) libary, and nothing else.

rusty
Posts: 7170
Joined: Tue Apr 29, 2003 3:39 am
Location: Montreal, Canada

Re: Help: MTP Device Scanning Very Slow [#9284]

Post by rusty » Thu May 24, 2012 10:03 pm

Thanks. It's planned and specced for 4.1:
http://www.ventismedia.com/mantis/view.php?id=9368

BUT, you should see further performance improvements in 4.0.5 build 1493.

-Rusty

Post Reply