Closed Azhag closed 5 years ago
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of duplicate issues on this repo, so please double check now that your issue has not already been solved or doesn't have an open issue already. To help make it easier for us to investigate your issue, please follow the contributing guidelines and ensure the issue template was filled out.
Same issue on Windows on all PC's I have using it.
I have the same problem от Windows 10 on Laptop and Desktop.
Same here. Started yesterday for me.
+1 happening on Debian x64 for the last few days as well. Tried completely removing and reinstalling, as well as building from source (yarn run make:deb:64
) and installing, nothing works.
EDIT: Also seeing the bonjour service error @timmyleahy mentioned
+1 here too, installed newest version, Ubuntu Linux 18.04
+1 Mac Pro, OSX 10.14.6, GPMDP 4.6.1
Did full uninstall (removed app and ~/Library/Applications/GPMDP dir) and reinstalled. Authenticated user account. Hanging on "Loading Music Library..." screen.
Tried downgrading to 4.6.0 and that made no difference, still hangs on "Loading Music Library..." screen after authenticating.
Not sure if this is related but I looked at the ~/Library/Applications/GPMDP/gpmdp.log and saw an error:
{"level":"info","message":"Application started.","timestamp":"2019-10-10T19:54:34.169Z"}
{"level":"error","message":"Failed to load bonjour with error: {}","timestamp":"2019-10-10T19:54:34.629Z"}
Possibly related, but this loading issue first started for me when the website certificate expired (GH-3639).
Running into the same issue of Windows 10
Not sure why this is happening. It's more than likely a problem in the player causing an error that prevents GPM from loading. If that's the case these steps may not work, but if you can try them anyway:
openGPMDevTools()
Enter and it will open another console, you may have more errors here, copy these as well.Not sure why this is happening. It's more than likely a problem in the player causing an error that prevents GPM from loading. If that's the case these steps may not work, but if you can try them anyway:
1. Press CTRL + SHIFT + G 2. Enter (without quotes): "DEV_MODE" 3. Click Go 4. You should now be in dev mode, and able to open developer tools from either the menu or by using CTRL + SHIFT + i This is the main window console, you may see errors, take a screenshot or copy and paste and errors from this console. In addition to this you can type `openGPMDevTools()` Enter and it will open another console, you may have more errors here, copy these as well.
Running into these errors: Console:
GPMDevTools:
I don't have access to listen_v2.js, as I'm being served listen.js. However, that is a weird error being thrown. window.customElements.upgrade
is a function when I test it on the current release, so it shouldn't be throwing an error.
Same error on windows 10 started friday morning. But youtube Music is still working tough.
I get the same console errors as above. If I clear cookies and reload, it asks me to login again, but after login it goes to the same place.
I wonder if it is trying to show some kind of "upgrade" UI to some users based on their account status, and that thing is failing to load in this app environment.
In a regular Google Play Music tab window.customElements.upgrade is a native function, and chromestatus.com shows it as added in Chrome 68 https://chromestatus.com/features/5967337471606784
The package.json lists electron 3.1.8 which seems to be Chromium 66.0.3359.181
It seems like the fix would be to upgrade Electron to at least version 4.0
I can confirm that the artifact from the WIP Electron 4 PR https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-/pull/3588 does seem to get past the Loading Music Library screen. Hopefully this can get merged before listen_v2.js is rolled out to everyone.
Ah interesting, maybe this just needs to ship a new build with newer version of the Chrome engine in it?
I see the same error for 4 days :(
You can start it with the following DEV_MODE
(see above) workaround:
On the GPM devtools (see above) console, put a breakpoint on listen_v2, line one. Then refresh the page, and enter window.customElements.upgrade = () => undefined
[enter] and then continue running the script. It magically doesn't need the upgrade
function because just setting it to something that does nothing at all makes it work.
In any case, it allows you to use your GDP with some pain at startup. You can close the DevToolss (?? plural2) and use the player as normal from there on in.
This could also be a quick hack fix if upgrading to Electron 4 is troublesome.
Also had this - and now can't reinstall - the RELEASE file URL ( in squirrelsetup.log https://update.gpmdp.xyz/update/win/4.6.1/RELEASES?id=GPMDP_3&localVersion=4.6.1&arch=amd64 ) returns
API rate limit exceeded for user ID 46058608.
Windows 10. DEV_MODE say:
Local\GPMDP_3\app-4.6.1\resources\app.asar\node_modules\react\lib\lowPriorityWarning.js:38
Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead.
Pls fix it!
@altblog that's just a warning, and it won't stop it from starting. The issue above is the real problem.
Fix available (for Windows, at least):
C:\Users\You\AppData\Local\GPMDP_3\app-4.6.1\resources
)app.asar
to app.asar.backup
in the same folderapp.asar
with 7zip (open as archive)build\renderer\windows\GPMWebView\
index.js
from there to your desktop or some folderChange
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
global.isGPM = true;
to
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
window.customElements.upgrade = window.customElements.upgrade || function(){};
global.isGPM = true;
(If you can't find it because your version is different, you can add the line at the top, the bottom, or anywhere outside a block)
index.js
file back into 7zip into the same GPMWebView
packed folder where you got it from, and when 7zip as asks if you want to copy the file into the archive, you can say "yes" because you made a backup so if you made a mistake you can put it back to it's original non-functional state.index.js
and if you're happy, confident and brave, your app.asar.backup
. Also, clean your desk.Fix available (for Windows, at least):
- Install 7zip (at your own risk)
- Install Asar7z (at your own risk, it could have a large number of hairy viruses)
- Make sure GDMP is closed, exited and shut down
- Find your GDMP install (
C:\Users\You\AppData\Local\GPMDP_3\app-4.6.1\resources
)- Make a backup copy of
app.asar
toapp.asar.backup
in the same folder- Open
app.asar
with 7zip (open as archive)- In 7zip, navigate to
build\renderer\windows\GPMWebView\
- Drag
index.js
from there to your desktop or some folder- Edit the file with an editor that can handle linux file endings (not Notepad, but you can use Notepad++ at your own risk)
Change
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } global.isGPM = true;
to
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } window.customElements.upgrade = window.customElements.upgrade || function(){}; global.isGPM = true;
(If you can't find it because your version is different, you can add the line at the top, the bottom, or anywhere outside a block)
- Save it or it's as if you did nothing
- Drag the
index.js
file back into 7zip into the sameGPMWebView
packed folder where you got it from, and when 7zip as asks if you want to copy the file into the archive, you can say "yes" because you made a backup so if you made a mistake you can put it back to it's original non-functional state.- Close 7zip
- Start your music player, it should work now
- Clean up the straggling
index.js
and if you're happy, confident and brave, yourapp.asar.backup
. Also, clean your desk.- Do this each time you want to run it.
- Just kidding, it'll work from now on.
Seemed to work for me. Thanks!!!
FWIW instead of copying the file out to edit it, I just used the edit option in the 7-zip right click menu, it copies it to a file for you and when you change that file it offers to update the zip file.
Yes, but that doesn't work if Notepad is your default editor due to bad line ending handling. That's why the long version...
Actually I made the change using notepad and it didn't cause a problem.
My bad I never went to W10 because GetWindows10 gave me a bad taste continued with Windows Spyware integration. Of course MS improved Windows massively by adding LF support and I was unaware. Are there any other changes in W10 that are important or matter in any way I should be aware of? Nvm... this is not a chat room...
For me, Windows 10 is the best Windows version. Lots of little improvements all over the place. Better notepad, dark mode, command line, etc.. But I know there are some in your face items that annoy people. I think they might have annoyed me at first but over time I've gotten used to it and forgotten what they are.
Fix available (for Windows, at least):
Worked great! Instead of using Asar7zip I installed the asar NPM package:
npm i -g asar
Then I just extracted the package, backed-up/edited the file as you stated above, then re-packed it:
asar e app.asar app
... edit file ...
asar p app app.asar
Can anybody share their fixed app.asar?
Same is happening to me (4.6.1), although youtube music mode works.
Happening for me on macOS mojave
@tpetersen50 thanks! app-asar.zip Here's my patched one. It's just got the extra line added as per @tpetersen50 - but use at your own risk.
It was actually me that came up with the fix. tpetersen50 just quoted me.
It was actually me that came up with the fix. tpetersen50 just quoted me.
Yep, I take no credit for the fix!
@tpetersen50 thanks! app-asar.zip Here's my patched one. It's just got the extra line added as per @tpetersen50 - but use at your own risk.
Works, Thanks
@crayfishuk your file works for me too, thanks for making it easy
@MarshallOfSound any word on updating to electron 4 to fix this issue?
For Mac users, you'll want to open your ~/applications/ folder, ctrl-click the app > "Show package contents" and then navigate and continue using @ddsol's instructions. (Thanks for a solution btw)
One difference is that I used Electrons asar command line tool which you can checkout here: https://github.com/electron/asar
UPDATE: I tried the same thing as @chemicaldanny below, and it worked fine in Catalina. (Specifically, replacing my own app.asar file with the one in that zip file.)
@bitojoe I don't suppose you'd be willing to explain in a bit more detail how you did that, would you? I'm pretty new at all this (though I do have a fair amount of experience with javascript and web development). I just did a fresh install on Catalina on my MacBook Pro (Retina, 15-inch, Mid 2015), and I'm experiencing the same problem. I tried to follow your instructions, but I'm just getting a javascript error.
@tpetersen50 thanks! app-asar.zip Here's my patched one. It's just got the extra line added as per @tpetersen50 - but use at your own risk.
Thanks! Worked for me (OSX 10.12.6), gonna patch my windows machine at home tonight.
@tpetersen50 thanks! app-asar.zip Here's my patched one. It's just got the extra line added as per @tpetersen50 - but use at your own risk.
Worked for me. Thanks!
I don't know for sure if it's related, but now GMDP doesn't seem to populate the hamburger menu with its own settings option, nor does it respond to media keys for me.
@tpetersen50 thanks! app-asar.zip Here's my patched one. It's just got the extra line added as per @tpetersen50 - but use at your own risk.
Works great, thanks for saving me the trouble!
Instead of patching, can we fix this and release an update?
I guess @MarshallOfSound is not maintaining this project or something. Or just on a long holiday. Or just hasn't gotten around to it yet?
What's the etiquette on poking a project maintainer?
(Also, updated app.asar worked for me. Thanks!)
I could PR this in for a fix, but ultimately it wouldn't get released until @MarshallOfSound creates the release, windows and mac builds are signed with his certs/keys.
@tpetersen50 thanks! app-asar.zip Here's my patched one. It's just got the extra line added as per @tpetersen50 - but use at your own risk.
Thanks, that sorted this issue for me!!!
OS: Debian GNU/Linux rodete
GPMDP Version: 4.6.1
Issue Descriptions: Since last week, opening the app does not show anything, instead I get stuck on a "Loading music library" page
Steps to Reproduce: