View Issue Details

IDProjectCategoryView StatusLast Update
0014971MMW 5Playbackpublic2019-02-17 15:25
ReporterLudek Assigned To 
PriorityimmediateSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version5.0 
Target Version5.0Fixed in Version5.0 
Summary0014971: Auto-update feature with combination of Now Playing Undo causes gaps between tracks to be played
DescriptionIn the ticket HPE-275-24630 there is a log indicating that it takes about 30 seconds when the next track starts to play. Seems to be related to auto-update feature implemented by Petr and yes, there is probably a memory leak causing that auto-update on a track property change takes so long.
I guess that Now Playing Undo feature could cause the memory leaks? Currently it seems to keep all old tracklists in memory and the auto-update feature has to traverse all the tracklists on each property change.

I see two issues here (already discussed with devs via IM previously):

1) Auto-update: It seems very cost and performance consuming operation to traverse all tracklists in memory after every track property change. Petr has already promised to look into it and optimize it.

2) Now playing undo: We should probably change it:
a) to limit it to e.g. only 10 undo items
b) don't keep the tracklists in memory, but flush them to DB (or disc - persistent.json) and load them again on demand.

Additional Informationhttp://www.mediamonkey.com/forum/viewtopic.php?f=30&t=89851#p445673
HPE-275-24630
TagsNo tags attached.
Fixed in build2116

Relationships

related to 0014264 resolvedmartin MMA Play to chromecast stops periodically 

Activities

Ludek

2018-07-18 12:02

developer   ~0050783

Assigned 2) to Michal, assign 1) to Petr once 2) is implemented (and Petr is back from vacation)

michal

2018-07-18 15:19

developer   ~0050784

Last edited: 2018-07-18 15:20

2) fixed in build 2116. History is now limited to 10 entries only (could be easily changed, if needed) and auto-update is disabled for lists in history, it is not needed there. There is probably no need to slow undo/redo down by moving all to disk, as track's data is shared among all instances of the track, so it should not be problem to hold 10 playlists there.

petr

2018-07-23 11:41

developer   ~0050799

Fixed

peke

2018-07-25 01:09

developer   ~0050819

Verified 2116

peke

2019-02-17 15:25

developer   ~0052668

Verified 2160