View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010552 | MMW v4 | Synchronization | public | 2013-02-22 02:41 | 2013-04-12 01:43 |
Reporter | peke | Assigned To | |||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | not fixable | ||
Product Version | 4.1 | ||||
Target Version | 4.1 | Fixed in Version | 4.1 | ||
Summary | 0010552: Nexus 7, JB 4.2.2, MTP sometimes freezes | ||||
Description | At first I have set Nexus 7 to not be scanned on connection than I enabled scan on connection observing same behavior. a) Device is not scanned on connection/click on device tree node b) Can't browse device and device show no content c) Can't manually initiate device scan (context menu -> Scan Device) or it is related to a) | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Fixed in build | 1630 | ||||
related to | 0010175 | closed | marek | MMA | Track Deletion: Windows Explorer (connected over MTP) doesn't update |
related to | 0009330 | closed | martin | MMA | Folder browser |
parent of | 0011220 | closed | peke | MMW v4 | Sync: Delay on scaning devices with Multiple Storage |
parent of | 0011485 | closed | peke | MMW v4 | Sync: Various Regressions USB Sync |
related to | 0010166 | closed | martin | MMA | Scans are never-ending for some devices/environments |
related to | 0011399 | resolved | marek | MMW v4 | Android Sync Problems |
child of | 0010491 | closed | marek | MMA | USB sync with MMW 4.1: MMA's DB copy for MMW is sometimes created as empty |
child of | 0011132 | closed | marek | MMW v4 | USB sync: Ratings can fail to sync |
|
I got several EAccessViolation after navigating Nexus ELF is Uploaded to FTP for Analyze |
|
Peke, can you confirm whether Windows media player can browse the device? If the problem is in WMP, then it's not likely an MM bug (though the AVs are certainly a problem). It might be related to: http://superuser.com/questions/526571/nexus-7-doesnt-show-up-as-media-device-mtp |
|
Peke, I saw the log and the AV was actually an SQL error when MMW tried to parse MMA's DB that was empty ( 0010491 ). Because Marek reworked this and MMA's DB will be stored in internal phone memory from MMA build 103 then this issue shouldn't happen anymore. So resolving for now, and please re-test with MMW 1625 / MMA 103 once will be available. |
|
Peke indicated that it happens with build 103, so this must be regression in build 103 (that has not been release yet). Informed Marek about the problem, 0010491 should be re-opened if this problem still appears. |
|
Uploaded Screenshot of error I got today. Ludek confirmed that it is on MMA part. |
|
Assigned to feedback on retest with 1625 and 104 when gets available. |
|
Scanning works, and tracks are shown now, but "(Scanning ...)" Never removes. |
|
Debug log should show why, probably MMW could not get MMA's DB and thus scans MTP content directly and it takes long? The debug log will show. |
|
Log and video is uploaded onto FTP - Log is created before Nexus connection and saved after Nexus is disconnected. Note that list of Tracks showing in Audio Tree on video is complete list of all tracks on Nexus. - Video is captured at same time as log. |
|
Hmm, I see in the log that MMA'd DB was successfuly downloaded at 20 seconds, but the DB has been opened at 127 seconds (once you unplugged the device). It means that it somehow forzen on an MTP operation until the device was unplugged. i.e. The content that MMW shown was just content from MMW's DB (from last sync), but the real content was not scanned at all. But there are many debug messages missing in the log, this often happens if DbgView is started after MM start. DbgView needs to be always started before MM starting and eventually cleared by Ctrl+X shortcut. So please generate one more log this way: 1. Plug the device 2. Start DbgView 3. Start MM, wait one minute 4. Unplug the device => save the log BTW: I also had some MTP freeze times with my Galaxy Nexus, but I found that it was happening only if I was not using my original USB cable. Do you use your original USB cable with your Nexus? |
|
New log uploaded "Nexus 7 issues PAVLICA.rar". Note: LOG also contain ELF file that MMW throw when Nexus got unplugged. Today when I tested i followed Rusty suggestion and see if MMW and Explorer see files and can browse, where I observed that as soon MMW start scanning Explorer can't access device and show Not Responding. Also as addition to original bug MMW can't Browse Nexus using Folder Tree. |
|
The log indicated that MMW successfuly requested MMA for DB, MMA created copy of its DB for MMW, MMW successfuly downloaded the copy ( \MediaMonkey\files\mmstore.db.copy ), but once MMW deleted the DB copy then folder \MediaMonkey\files\ is no longer accessible. I will discuss it with Marek what could change in 104 that started this issue. Or does it appear with build 102 too? Does phone reboot help or not? |
|
Hmm, strange thing happened with 102, first time I clicked on Folder expand it showed listing of folders but as soon as refreshed it showed empty as described here and in Video. I uploaded 102 LOG along two new ELF files in archive "new 102 log PAVLICA.rar" Restart had no effect. |
|
In the log from 102 I see the same as in the previous log from 104, i.e. once MMW delete the \MediaMonkey\files\mmstore.db.copy file from the device then MTP freezes until the device is unplugged. So this is not a regression, but something related to your device as I cannot reproduce the issue. 1. Do you use the original USB cable for Nexus 7 ? 2. Does it appear all the time or sometimes? I guess that sometimes, because I see you was able to verify several sync issues and this issue prevents from syncing to your Nexus 7. 3. Do you remember any other HW/SW change to your phone in last days that could cause this? e.g. update of an Android app / OS ? Because it seems that this problem is on underlaying MTP layer and is not related to MMW or MMA versions (as confirmed), but rahter to a recent change in your phone. 4. Does the freeze appear also if you delete any other file from the device using MMW or Windows Explorer? |
|
1. Yes 2. Sometimes, as like you observed Sync issues are verified, but this is related to Device browsing not sync. 3. Last update was update to JB 4.2.2 nothing else 4. If I Delete any file from any other tree than folder (Not seeing anything) all is ok but scanning is showing NOTE: Marek asked me to make ddms log and It looks like Debug version is more stable eg. only one crash where store version crashes MMW repeatedly. NOTE2: All new logs are in Nexus 7 3.rar |
|
Peke, I also made one change on MMW side that could influence this. I uploaded new d_WMDM.dll (to the same place where your log are). Plese give a try with this d_WMDM.dll and upload new log if the scan still freezes for you. Marek will try to update his Nexus 7 to 4.2.2 to see if he can reproduce the issue. |
|
Little bit better no crashes, it still freezes on scanning. Like Marek pointed It looks like MMW started Sync where it is explicitly set to not to sync/scan on Connection. I added screenshot with highlighted important parts (I forgot to highlight folder that was not expanded). Log is uploaded as "LOG 4 Nexus 7 PAVLICA.rar" |
|
This time it frozen when downloading the mmstore.db.copy, so it looks like a random MTP freeze issue, we will see if Marek can reproduce after upgrade to JB 4.2.2 |
|
I have been doing some additional tests with nexus eg. deleting. renaming, moving tracks around. While I tested MMW access to device, until Now Playing started to Skip tracks that apparently (Device -> Artist Tree node) were there. I have re-checked and I wonder if it could be possible that this is Regression of solving 0010175 especially as both Ludek and Marek pointed that is is happening on start and sync. Secondly I also noticed that Folder structure is used to browse whole device. It is Ok for and MTP device to be browsed fully when there is no Recognizable Media Manager (MMA) installed, but when MMA is installed FOLDER should act as browser thru MMA library, not MTP. That approach should be faster and safer than receiving whole Structure over MTP. Solution would be: a) if MMA is Installed (Checking for MMA library existence on Storage), than device is browsed using MMA library (no risk of rising issues like 0010175) and MMW will be lighting fast while browsing and handling device files. b) if MMA is not installed, than device is treated as regular MTP Device Assigned to Jiri for triage |
|
Browsing Solution would be similar to behavior Rusty described as Suggested features of 0009330 |
|
I think that it would be unnecesarily limiting to show only the folders scanned into MMA. Note that in your case (as confirmed by all the logs) MMW couldn't read the content from MMA DB anyway because of the MTP freeze. It cannot be a regresion caused by 0010175 , because 0010175 was fixed in 103 and you can repro the freeze also with 102. I guess it is rather issue related to your Nexus 7 (probably somehow caused by the JB 4.2.2 upgrade?). Marek should confirm once he upgrades his Nexus 7 to 4.2.2 |
|
Maybe you are right, but this way Android Browsing would be same way it was done for Apple devices (eg. no app and real folder browsing), on the other hand speed of browsing would be considerably increased. RE MTP Freeze: I can browse Nexus in WMP and Explorer without problems until MMW try to scan device, which renders Device browsing unusable anywhere. |
|
RE MTP Freeze, please do the following test: 1. create file called db_copy_request and copy the file using Windows Explorer to /MediaMonkey/files/ 2. MMA will create mmstore.db.copy based on the request file, copy the mmstore.db.copy to your coputer 3. delete the mmstore.db.copy and db_copy_request files from the device Try to perform it several times and let me know whether the MTP freezes same as in case of using MMW for this purpose |
|
Per IM talk, looks like MMA never finished creating mmstore.db due the regression from 0010166. To avoid such issue I would suggest that process of Scanning device include: 1. MMW create db_copy_request 2. MMA create mmstore.db.copy 3. MMA create db_copy_done when done 4. MMA Deleted db_copy_request 5. MMW move mmstore.db.copy after db_copy_request is deleted and db_copy_done is vreated 6. MMW deletes db_copy_done 7. MMA refreshes Library |
|
I can now reproduce the issue after upgrade of my Galaxy Nexus from ICS 4.1 to JB 4.2 "(Scanning...)" never finishes until the device is unplugged, MMW freezes on downloading mmstore.db.copy file over MTP |
|
Fixed in build 1630. |
|
Re-opened, unfortunatelly I have noticed the freeze again. Drivers are up to date :-/ WMP also freezes after one minute of scanning the device (until the device is unplugged). EDIT: Today it freezes even if I want to copy a file using Windows Explorer to the device. |
|
Today I tried various drivers and toolkits to no avial. Then I was finally successful with the Nexus Root Toolkit ( http://www.wugfresh.com/nrt/ ) I tried all types of drivers to no avial. Finally installed the PdaNet drivers and Unlocked the Nexus and now MTP works like a charm. The negative impact was that it wiped out my device (so I needed to Backed up / Restore my data). Somewhere I read that MTP issues might appear on android when the internal memory is too full. Not sure, maybe this was the reason, but anyhow I am happy with MTP again. |
|
Closing, Confirming Ludek finding, unfortunately I needed to wipe Nexus 7 to factory, due the system lock and afterwards MTP was lighting fast again. |