-
Notifications
You must be signed in to change notification settings - Fork 18
Google Music Keeps Refreshing Continuously in Chrome #20
Comments
Sorry for the trouble! This sounds a bit like #17. Two things that might help us narrow it down:
There's also a chance that this is caused by concurrency issues between periodic sync and another sync, but that seems less likely to me. |
I think you are on the right track. Here is the log: My playlist parameters are: Sort by Play Count descending |
Huh, so it looks like it's trying and failing to add the same track over and over:
Let's see if there's anything different about this track, since that's also caused issues in the past (#10). Here's one way you could do it:
|
Thanks for the quick reply. I followed your instructions and got the following from the Form Data section: [["",1],["a9fc8542-3347-4845-b49b-f543d6ee50d8",[["Ttrtmzbwlnzdsrgi4l4baoqqegi",7]]]]: But when I try to TEST the playlist I get this: query found 0 first was |
Hm, I was expecting to see a playlist id of There's a chance it was some failure on Google's end involving the particular track, and it's working now, in which case reducing sync retries may be a good enough fix. |
Ok, I tried running it on that playlist id and I'm getting: query found 1 first was Google's interface is showing 207, but autoplaylist wants 208. |
Oh, shoot, I copied the wrong id. The playlist id from the logs is If you can't find that playlist id in other requests, then maybe you've deleted the playlist since the first time? In that case, we may have the correct id with |
Also have this same issue (as you know from the older issues), and wondered if @zigmachine uses the extension on two or more desktop devices? I do, and only noticed the constant refreshing when I turned on the extension on my second Chrome-running device. |
Yes, I am using it at work and home. I've been trying to find any of the problem songs using the tips that @simon-weber provided. |
@johnrobertlawson the multiple extension issue isn't one I've thought about yet (though I'm not surprised it causes issues, haha). We could use chrome sync storage to lock an account, but that would only work for folks with sync enabled. |
@zigmachine I've just published https://github.com/simon-weber/Autoplaylists-for-Google-Music/releases/tag/0.2.0 with the linked changes. The first two will lessen your symptoms, while the last should help us find the problematic track: now instead of cross-referencing the network tab, we'll be able to find the track id right in the log (it'll say "adding X tracks, first 10 are..."). Update to it when you've got a chance, and we can look into this further. |
Bump! Have you had a chance to try out the new version? I'm looking to cut another release soon and it'd be nice to have a fix for this issue in it. |
There's definitely less CPU usage now, and less time refreshing in Chrome. |
Ok, I'm going to close this then. Feel free to reopen if it's still a problem. |
I'm afraid this is an issue again. Even when I'm messing around with non-autoplaylists, it constantly refreshes every 5-10 seconds and resets whatever sorting I've got, and scrolls to the top. |
Hm. Can you check the logs to see what operations it's performing repeatedly? The logs should be more informative this time around. |
Hmm, this rings a bell...
|
My last post was probably useless, sorry. It freezes/refreshes after two commands in particular: But not every time, as I watch the logs with the G Music screen open. |
Gotcha. Some questions:
|
The number stays the same or increasing. The tracks are the top 10 of my "Not played in 60 days + thumbs up" and in descending order of play count. I notice:
The rest seems pretty random - I can link you to the log copy, though I can't find a way to expand the log objects and pasting while preserving indentation? Sorry, not a web programmer! |
Increasing is pretty surprising.
I don't know of any way either =/ Don't worry about the indentation, I can always clean it up on my end if I need to. Can you also try to expand the "add response" bit and paste it? I wonder if Google is telling us anything about the tracks in the response. |
It's hard to see which specific
|
Got it. That looks like a successful response to me. Success is usually When I originally looked into this, the only difference between my request and Google's was that they invalidate a cache afterwards through a method I couldn't easily reproduce (it's not a simple api request, but a large jsproto sent over a previously-opened channel). It's reasonably likely that this is the problem; I was hoping we could get around it with the retry logic. |
Ah, can you try this to export the console log when it happens? http://stackoverflow.com/a/31059700. I'm not sure it'll expand the objects, but just seeing the big picture may help me. Drop it in a gist or on paste bin and link it, or feel free to email me directly if you don't feel comfortable sharing it publicly. |
Just emailed you @simon-weber . |
Nice; thanks. I don't see anything weird going on, just Google not accepting the additions. Some followup questions:
In the meantime, I'm going to push a release that will work better with dumping the logs to a file. |
I don't believe this is an issue. I just ran the worst case - switching 1k tracks for 1k different tracks - and while it gave up on the sync initially, it converged on the next periodic sync. |
@johnrobertlawson #35 (comment) described a new debugging idea that could be useful in this case as well. |
The sentry support in 0.11.0 should also be helpful in debugging this, so be sure to upgrade. |
The new Google Analytics setup should help me look into how useful retrying is (since that's what causes the refreshing in this situation). Here's an example from today that shows it might not be as useful as I thought: In this example, the retries may have only saved 5% of syncs. I'll have more data in the coming weeks. |
Hi Simon, sorry I've been away. Got back using the extension today and the same problems - a lot of refreshing (not as much as before) and my autoplaylist isn't updating (but it is attempting the syncing, looking at the timestamp on the description). Which method do you recommend I take for bugfixing so I can send some stuff your way via email? |
Can you send me the playlist id from the logs? That'll let me find the error in sentry. You can get it in the logs from the "playlist has X entries. first 3: [..." line. Ideally, just send the one that's syncing many times, but if you can't tell, feel free to send me all of them. |
OK, I'll be emailing that shortly. I'm also getting massive Google Play Music battery drain on my Nexus 6p despite not having used the app all day. I wonder if this syncing problem is also trying to sync playlist info to the phone, and causing wakelocks. I closed the G Music tab in Chrome (the computer remained on) but the idle battery drain continued overnight. |
Ah, that sounds likely. Sorry about that! If you want to stop syncing temporarily, go to chrome://extensions then check disable and re-enable. That will stop syncing until you refresh a Google Music tab. I suppose the good news is that most retries can be scrapped entirely for little cost: beyond the first, each retry only adds about 1% more successful syncs. Retry 5 is worse: just a .5% chance of a success. (It might even be that retries aren't doing this, and the real thing fixing it is time since the initial sync! Something to a/b test, potentially.) I'll push an update tonight or tomorrow to scale back the syncs, which should help with both chrome refreshing and battery life. I'm planning to switch to a much less aggressive sync schedule once this is open to more people; right now, the idea is to make problems like these really obvious so we get a chance to fix them. |
Don't worry about the playlist id -- I managed to find it in sentry. I just pushed an experimental change that I'm hoping will affect this. Basically, I reverted the change from #10 (comment), with the added change to omit track type entirely when syncing. I'm hoping this allows us to use library ids across the board. This worked fine in my testing and I was able to recreate #10 originally, so at least I'm relatively confident I won't re-break AA track syncing. |
I'm going to close this since it doesn't seem like anyone has seen this recently. Feel free to respond if it's still a problem and I'll reopen it. |
I'm having the same problem as johnrobertlawson commented on Jan 28, 2016: a playlist refreshing every 10 sec and therefore scrolling back to the top. Can you help me? |
Sure. Let's track it in a new issue, since this one's quite old. |
While navigating Google Music in the browser (Chrome) the page keeps refreshing over and over (about every 5 seconds).
Not sure why it's polling this often, I believe it should be once a minute. This is making it difficult to navigate around Google Music on the browser.
It seems the issue is only on the browser, on my iPhone the playlists are updating perfectly.
The text was updated successfully, but these errors were encountered: