View Issue Details

IDProjectCategoryView StatusLast Update
0011452MMW v4Synchronizationpublic2013-12-05 22:45
Reporterlowlander Assigned To 
PriorityurgentSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version4.1 
Target Version4.1Fixed in Version4.1 
Summary0011452: Freeze when removing file from full iPod Touch 4thgen
DescriptionAfter doing a Sync to the iPod Touch (where 1 file failed (probably corrupt) and several files didn't fit (device showing 0 byte free)) I attempted to delete 1 file in MediaMonkey from device. This caused a hang and eventual AV (2 send in this morning).

Disconnecting device got MediaMonkey back running.
TagsNo tags attached.
Fixed in build1673

Activities

Ludek

2013-11-05 16:04

developer   ~0038188

Last edited: 2013-11-05 16:05

I see in the log that it has frozen directly in Apple's DLL:
iTunesMobileDevice.dll | AFCReadData

I can't do much about it, probably it is somehow caused by the 0 bytes free.
Does it freeze when you want to delete the file using iTunes?

We could maybe reserve more space on the device if the completelly filled device has issues like this.

lowlander

2013-11-05 16:06

developer   ~0038189

I'd presume that it is desirable to leave some free space on device.

Ludek

2013-11-05 17:53

developer   ~0038190

Last edited: 2013-11-05 18:00

Actually I tried it to replicate with my iTouch 4 (iOS 6.1.3) and I could not. I see that MM has already reserved some space (200 MB) - can be seen when you open the device in DiskAid, so I think that the space isn't the issue here.

EDIT: iTunes fails to start now, so there is an issue, studing more...

Ludek

2013-11-05 17:59

developer   ~0038191

Last edited: 2013-11-05 18:00

I can replicate iTunes freeze, but I has never had MM freeze like you. One way or the other I cannot do much about this. Could you confirm that if you open your iTouch4 in DiskAid that you see still 200 MB free?

Ludek

2013-11-05 18:09

developer   ~0038192

Last edited: 2013-11-05 18:28

Hmm, sometimes removing a track in iTunes takes one minute, sometimes it takes just several seconds. MM removes tracks in thread only if there is more than 20 tracks selected, maybe we should change it and always remove device tracks in a thread. Although it doesn't solve the real cause.

Otherwise both iTunes and MM shows exactly the same Free space which is actually Total Free Space (seen in DiskAid) minus 200 MB as I mentioned.

lowlander

2013-11-05 19:14

developer   ~0038193

I had no issue removing items from device using iTunes. However I did find that iTunes was showing files that were supposedly removed during MM sync.

lowlander

2013-11-06 02:27

developer   ~0038194

I've done a new sync to the iPod Touch after cleaning it up in iTunes. It seems the sync may not have synced anything (I don't know how many files were on device) however 49 files were in the sync selection and 19 show after checking with iTunes.

Note that after sync completed in MMW that it showed 0 bytes free, iPod also complained about lack of space. However after checking with iTunes (and removing Audiobooks Playlist that keeps appearing) it shows 9.5 GB free in both MMW and iPod.

I don't know if the 0 bytes free causes maybe the DB not to be updated after sync. I've included 3 logs. First captures the sync and also the failure of MediaMonkey to close (tried twice via File > Exit). The second log show again that MediaMonkey failed to close, this time asking to terminate background processes. The third log just shows browsing the iPod showing free space and just 19 files.

2 i iPod Touch.zip

Ludek

2013-11-06 10:44

developer   ~0038197

Last edited: 2013-11-06 13:41

The free space is not taken from DB but via appropriate Apple's method to get the size (AFCDeviceInfoOpen | FSFreeBytes). It is known issue that if you sync something using iTunes that it wipes everything that was synced by MM or another iTunes library, couldn't this be the cause of sudden 9.5 GB free?

I also had freeze times today with my iTouch 4 even if there was 500 MB free on the iPod. iTunes couldn't start at all and even if it started, removing a track in iTunes taken one minute or so. I moved the tracks removing to thread even if track count < 20 (Fixed in build 1670), but I cannot do much as it is clearly a problem on Apple's side.

lowlander

2013-11-08 17:13

developer   ~0038247

I did a sync where less than capacity was synced and the sync worked without any issues.

I've not had (noticed?) iTunes wipe stuff from my device before, it just happened in this occasion where I synced till 0 byte free. Also no content was synced from iTunes to iPod during this period.

Ludek

2013-11-28 21:15

developer   ~0038418

Actually I revised the code and there was a bug in reserving the expected and hidden 200 MB free. Due to the bug it reserved only 200 MB minus size of last copied file, so if the last file to copy had 200 MB then it did not reserve anything.

Fixed in build 1673.

peke

2013-12-05 22:45

developer   ~0038536

Verified 1673