"preparing" notification after each reboot (library scan)

Report bugs & feature requests for MediaMonkey for Android and learn about the newest beta build.

Moderator: Gurus

thebluemask
Posts: 20
Joined: Tue Dec 09, 2008 3:04 pm

Re: "preparing" notification after each reboot (library scan)

Post by thebluemask » Sun May 12, 2019 2:40 am

I've got around 24,000 tracks on the card so I guess that makes sense. I think my battery stats said mm had been active for about 1.5hrs and used 8%. Hadn't been playing anything, just scanning.

lkraus
Posts: 6
Joined: Sun Feb 09, 2014 8:27 am

Stop folder scan on device restart?

Post by lkraus » Sat Jun 08, 2019 7:55 am

Recently, I notice that every time I restart my phone, MMA (v 1.3.4.0854) runs a background task scanning folders to the library. Since the task runs for quite a long time (45 minutes+) and the phone gets very warm, I can only assume that this is using a lot of my battery charge. I have quite a bit of music and audio books stored, but I only change the contents every six months or so.

Is there a way to stop this automatic scan and only scan the folders manually after I make changes?

thebluemask
Posts: 20
Joined: Tue Dec 09, 2008 3:04 pm

Re: Stop folder scan on device restart?

Post by thebluemask » Sun Jun 09, 2019 4:31 pm

lkraus wrote:
Sat Jun 08, 2019 7:55 am
Recently, I notice that every time I restart my phone, MMA (v 1.3.4.0854) runs a background task scanning folders to the library. Since the task runs for quite a long time (45 minutes+) and the phone gets very warm, I can only assume that this is using a lot of my battery charge. I have quite a bit of music and audio books stored, but I only change the contents every six months or so.

Is there a way to stop this automatic scan and only scan the folders manually after I make changes?
+1

thebluemask
Posts: 20
Joined: Tue Dec 09, 2008 3:04 pm

Re: "preparing" notification after each reboot (library scan)

Post by thebluemask » Sat Jul 06, 2019 3:24 am

So with a new 256GB (Class 10) SD card it was taking well over an hour and a half every time I reboot my phone to scan my entire library in (approx 24,000 tracks/147GB). It makes my phone overheat and really chews up the battery so I decided to go back to my old 64GB SD Card and just sync a smaller amount of tracks (about 4,000). But that still takes over an hour each time the phone is rebooted.

So this morning I've tried deleting them all from my phone and just syncing a tiny amount (60 tracks) but it's now been over 10 mins and my phone still says "Mediamonkey - Background task - preparing".

Any suggestions? I've tried looking for apps that disable the Android media scanner (can't find any). My only other option seems to be going back to using my iPod/MM and just not use MM on Android.

Peke
Posts: 12093
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: "preparing" notification after each reboot (library scan)

Post by Peke » Sun Jul 07, 2019 4:45 pm

Hi,
"Mediamonkey - Background task - preparing" usually means "Google Scanner not finished and released SDCard for reading".

Today I tested on 128GB SDcard in Moto X4 and copied 9k+ of tracks. After I inserted SDCard in Phone it Took 57minutes to Scan and init SDcard before MMA could use it on Restart unless I synced tracks to it or SDCard access was actine on Reboot it took <3 minutes to init SDCard and if SDcards was in Write (Read?) at the moment of reboot it took 55-57 minutes to make SDcard Accessible to MMA and to other File Managers.

Now I repeated same step without MMA installed and got same results. Using ES file Explorer (not sure if it is back on store) I played one track from SDCard at time of Reboot -> 57 Minutes preparing till ES file Could play it again. if I kill ES rask before reboot then <5 minutes took to Prepare SDCard.

I am not sure what to say, but from what I have observed in the past it was always like that, I guess Google scanner reindex all files and in case of lots of media files it reindex their tags also that means reading all 9k+ tracks and then time that it takes to do that is reasonable.

Can you please do a small test to see what MMA get from OS and what the responses are:
1. Reboot phone
2. Start MMA
3. If it reports Background preparing Send Debug Log (write log ID here)
4. Wait till it is done
5. Send Debug Log (write log ID here)
6. Close MMA
7. Kill MMA process if any in app history
8. Start MMA
9. Wait till it is done
10. Send Debug Log (write log ID here)
Best regards,
Pavle
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
How to add SCREENSHOTS to forum

thebluemask
Posts: 20
Joined: Tue Dec 09, 2008 3:04 pm

Re: "preparing" notification after each reboot (library scan)

Post by thebluemask » Thu Jul 11, 2019 8:35 am

Thanks for your help Pavle. Well I don't know why but there's been a bit of improvement.

I wiped all tracks off my SD card again and started to sync a few playlists at a time. At the moment I've synced just over 4,000 tracks and on each reboot it takes about 10 mins before the "Mediamonkey - Background task - preparing" message disappears.

Nothing is really any different than before re: my phone hardware or setup. Maybe switching SD cards from 256 to 64 then back again has helped somehow. I guess I'll slowly add tracks and see if things remain manageable. I can live with a 10 min delay after startup but if it goes back to being over an hour and a half I'll probably just go back to the iPod!

Post Reply