View Issue Details

IDProjectCategoryView StatusLast Update
0010797MMASynchronizationpublic2013-07-12 17:59
Reporterrusty Assigned To 
PriorityimmediateSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.4 
Target Version1.0.4Fixed in Version1.0.4 
Summary0010797: Cancelling sync operation triggers freeze
DescriptionInitiate a sync operation. Press 'cancel' during the 'Analyzing' phase.
--> 'Synchronization terminated' dialog appears. But upon pressing 'OK' the dialog fails to close. At this point it's impossible to close MMA and after several minutes, the sync operation resumes on its own!!

This is quite urgent because to the user, it appears as if MM has frozen (and in some cases it actually has frozen).
TagsNo tags attached.
Fixed in build149

Relationships

related to 0010878 closedmarek Double popup of file deletion confirmation on wifi sync 
related to 0010917 closedrusty Status notification don't reflect status 
related to 0011201 closedmarek Sync appears to get 'stuck' on large files and can't be terminated 

Activities

marek

2013-05-09 16:05

developer   ~0036005

Fixed in build 128

marek

2013-05-13 13:21

developer   ~0036050

Synchronization activity fails to update when screen is turned off and wifi sync stops. After screen is turned on, activity still displays previous state.

marek

2013-05-15 09:29

developer   ~0036098

Fixed in build 128

rusty

2013-06-06 17:43

administrator   ~0036355

Tested 139 and this issue still occurs sometimes.

1 After a sync operation, StorageObserver service continued running for 10+ hours.
2 I had to manually terminate MM
3 Upon restarting MM, the sync complete dialog was shown. I pressed 'Cancel'
--> 'Terminating' was displayed endlessly
4 Manually terminate MMA, and restart MMA.
--> 'Terminating' was displayed endlessly

There seems to be no way to get rid of this.

note: may be related to comment 6 at:
http://www.mediamonkey.com/forum/viewtopic.php?f=21&t=71841

marek

2013-06-10 15:53

developer   ~0036407

Did you send the user log after this situation had occurred. Or is it possible to replicate it and send it now ? Thanks

Btw. in build 136...we've tested one SDK bug workaround that occurred not to be functional. And it caused failure of application stop. It was reverted in build 138...so it possibly isn't related.

rusty

2013-06-12 22:41

administrator   ~0036447

I just sent a log from build 142 which exhibits a very similar situation:
1 Initiate wifi-sync
2 Walk out of range of the wifi network for 20 minutes
3 Come back in range to the wifi network and attempt to sync
-->waiting for process to complete message that never goes away, and it appears that Wifi sync is hung. BUT...
4 Back out of MM
--> Notification panel indicates that Synchronization is in progress
5 Click MMA sync indicator in notification panel
--> MMA opens showing that sync is in progress

So it seems that at step 2, MMA never completely terminated the sync operation and that it was probably running in the background all along, causing the 'sync failure' at step 3.

rusty

2013-06-14 02:05

administrator   ~0036497

Raised priority because I think that this may be a cause of some of the sync failures / anomalous behaviour.

marek

2013-06-17 16:10

developer   ~0036535

I don't see any 20 minutes break in the logs. And I don't see any issues there.

What exactly is going on in 2)? Do you see only a title of storage and nothing else? You can click CANCEL but it hangs up? Is it possible that delete confirmation dialog should be displayed instead(is there something to delete/confirm)? It can be related to delete dialog issue. And it might be fixed in 142 (but note that we still have some issues on some devices with it).

Could you please send logs right after the hangup (at point 2) ? Thanks

rusty

2013-06-20 15:39

administrator   ~0036578

Last edited: 2013-06-20 15:41

Tested build 143, and I'm still able to replicate the situation described in 0010797:0036355 in which after several sync operations MM fails to terminate.

This time I noticed that after I'd exited MMA, the Sync icon remained in the Notifications bar indicating that a track was being synced (even though no progress was actually being made). When I tried to 'Cancel' the operation
--> 'Terminating...' was displayed endlessly.

Note:
- there's no way to generate a debug log, as MMA is completely unresponsive.
- in addition to MMA, both the StorageObserverService and MediaProvider are running.

rusty

2013-06-20 15:59

administrator   ~0036579

I just performed a sync operation after which MMA presented the sync completion dialog, but a Sync progress indicator remained in the Notifications bar (it shows that 'La Valse Des Monstres' is still being synced).

At this point, MMA is still responsive, so I sent a debug log--perhaps it'll show why the sync operation completed even though the notifications dialog still shows it to be in progress. Note that once I click the Sync icon in the notifications bar
--> 'Synchronization' dialog opens with nothing displayed inside, and a 'Cancel' button in the bottom right.
If I click 'cancel'
--> 'Terminating...' dialog appears, and MMA becomes unresponsive.

rusty

2013-06-21 15:44

administrator   ~0036601

Last edited: 2013-06-21 15:48

Note: I've previously replicated this problem on a Samsung S3, but today have managed to replicate it on a Nexus 7 as well.

I believe that the problem is somehow related to a failed conversion operation, since in both cases the issue occurred with tracks from an album 'Amelie'.

Tracks were synced to both devices via an autoplaylist for tracks rated >=4 stars.

marek

2013-06-21 23:24

developer   ~0036618

Well I wasn't able to reproduce it even with the tracks. I don't have Rusty's settings. I tried to hardcode the conversion failure, but it works fine for me. The main issue is that notification is displayed even after sync is finished. Everything after that are just consequences. I added some logs to monitor what happened. So please send logs again right after your sync finish and notification is displayed.

I also slightly improved cancelling of the notification so it might be fixed.

Fixed in build 144

marek

2013-06-22 00:06

developer   ~0036626

Btw. what kind of notification dialog remains in notification bar ? The sync progress dialog or dialog for confirmation updates & deletions ?

marek

2013-06-22 13:43

developer   ~0036633

Please note that I implemented some notifications improvements in build 145 so please use this build for testing.

rusty

2013-06-23 05:48

administrator   ~0036636

Verified 145.

rusty

2013-07-05 15:12

administrator   ~0036754

Last edited: 2013-07-05 15:24

This is occurring again in build 148. Performed a sync operation, during which the display turned off. Some time later (after the lock screen was active), pressed the power button to turn on the device, bypassed the lockscreenPlayer, and used a couple of other apps. Then Ran MMA
--> Synchronization screen appears with noting in it, and a [Cancel] button at the bottom.
Click the cancel button
--> Terminating... appears endlessly

marek

2013-07-10 13:31

developer   ~0036788

Fixed in build 149

Sometimes fragment wasn't successfully restored when sync was done or was waiting for dialog

rusty

2013-07-12 17:59

administrator   ~0036845

Verified 149.