View Issue Details

IDProjectCategoryView StatusLast Update
0010552MMW v4Synchronizationpublic2013-04-12 01:43
Reporterpeke Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status closedResolutionnot fixable 
Product Version4.1 
Target Version4.1Fixed in Version4.1 
Summary0010552: Nexus 7, JB 4.2.2, MTP sometimes freezes
DescriptionAt 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)
TagsNo tags attached.
Attached Files
Sync Failed.png (18,510 bytes)   
Sync Failed.png (18,510 bytes)   
Fixed in build1630

Relationships

related to 0010175 closedmarek MMA Track Deletion: Windows Explorer (connected over MTP) doesn't update 
related to 0009330 closedmartin MMA Folder browser 
parent of 0011220 closedpeke MMW v4 Sync: Delay on scaning devices with Multiple Storage 
parent of 0011485 closedpeke MMW v4 Sync: Various Regressions USB Sync 
related to 0010166 closedmartin MMA Scans are never-ending for some devices/environments 
related to 0011399 resolvedmarek MMW v4 Android Sync Problems 
child of 0010491 closedmarek MMA USB sync with MMW 4.1: MMA's DB copy for MMW is sometimes created as empty 
child of 0011132 closedmarek MMW v4 USB sync: Ratings can fail to sync 

Activities

peke

2013-02-22 03:31

developer   ~0035047

I got several EAccessViolation after navigating Nexus

ELF is Uploaded to FTP for Analyze

rusty

2013-02-22 03:41

administrator   ~0035048

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

Ludek

2013-02-22 18:12

developer   ~0035060

Last edited: 2013-02-22 18:26

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.

Ludek

2013-02-22 18:40

developer   ~0035061

Last edited: 2013-02-22 18:44

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.

peke

2013-02-22 19:06

developer   ~0035062

Uploaded Screenshot of error I got today. Ludek confirmed that it is on MMA part.

peke

2013-02-22 19:07

developer   ~0035063

Assigned to feedback on retest with 1625 and 104 when gets available.

peke

2013-02-22 22:58

developer   ~0035069

Scanning works, and tracks are shown now, but "(Scanning ...)" Never removes.

Ludek

2013-02-22 23:15

developer   ~0035073

Last edited: 2013-02-22 23:15

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.

peke

2013-02-23 00:32

developer   ~0035076

Last edited: 2013-02-23 05:28

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.

Ludek

2013-02-23 12:37

developer   ~0035078

Last edited: 2013-02-23 12:41

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?

peke

2013-02-23 13:12

developer   ~0035079

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.

Ludek

2013-02-23 13:59

developer   ~0035080

Last edited: 2013-02-23 14:02

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?

peke

2013-02-23 14:22

developer   ~0035081

Last edited: 2013-02-23 14:25

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.

Ludek

2013-02-24 12:19

developer   ~0035084

Last edited: 2013-02-24 12:28

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?

peke

2013-02-24 15:03

developer   ~0035085

Last edited: 2013-02-24 20:10

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

Ludek

2013-02-25 10:45

developer   ~0035098

Last edited: 2013-02-25 11:36

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.

peke

2013-02-25 15:07

developer   ~0035100

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"

Ludek

2013-02-25 15:23

developer   ~0035101

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

peke

2013-02-27 03:58

developer   ~0035140

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

peke

2013-02-27 04:59

developer   ~0035141

Browsing Solution would be similar to behavior Rusty described as Suggested features of 0009330

Ludek

2013-02-27 12:11

developer   ~0035142

Last edited: 2013-02-27 17:14

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

peke

2013-02-27 14:09

developer   ~0035143

Last edited: 2013-02-27 14:13

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.

Ludek

2013-02-27 17:30

developer   ~0035150

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

peke

2013-02-28 02:36

developer   ~0035158

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

Ludek

2013-03-18 09:52

developer   ~0035411

Last edited: 2013-03-18 12:04

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

Ludek

2013-03-18 12:07

developer   ~0035412

Fixed in build 1630.

Ludek

2013-03-18 15:44

developer   ~0035413

Last edited: 2013-03-19 14:26

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.

Ludek

2013-03-19 22:38

developer   ~0035430

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.

peke

2013-04-12 01:43

developer   ~0035611

Closing,

Confirming Ludek finding, unfortunately I needed to wipe Nexus 7 to factory, due the system lock and afterwards MTP was lighting fast again.