Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

[BUG] AM opens but won't generate any new windows #340

Closed
Piipperi opened this issue Nov 5, 2021 · 22 comments
Closed

[BUG] AM opens but won't generate any new windows #340

Piipperi opened this issue Nov 5, 2021 · 22 comments
Labels
2.5.x Issues related to 2.5.x releases. bug Something isn't working platform: macOS Related to macOS release

Comments

@Piipperi
Copy link

Piipperi commented Nov 5, 2021

Describe the bug
I downloaded the dmg from releases for 2.5.0 (I did not have Apple Music Electron installed prior to this), I dragged it into my Applications folder. I opened it and trusted the app, and then nothing. The app is open and I can interact with the menu bar items, however, there are no windows generated. I tried opening the app via Terminal, I see other errors except bootstrap_check_in(): (os/kern) unknown error code (44c), not sure is it related.

Expected behavior
I'd expect the app to at least bring up an error window

Screenshots
Screen Shot 2021-11-05 at 18 20 12

Environment Information

  • OS (e.g. Linux/Mac/Windows): macOS 12.0.1
  • Application Version (e.g. 2.5.0): 2.5.0

Additional context
Add any other context about the problem here.

Have you followed the troubleshooting guide and checked for any outstanding/pinned issues that can help?
Troubleshooting guide can be found here.
Yes

Log File
Follow [this](https://github.com/Apple-Music-Electron/Apple-Music
-Electron/wiki/FAQs#2-how-to-find-the-log-file) to find your log file.
Attach your log file to the post but make sure to remove any LastFM keys that are in the file.
There was no log files, in fact no logs folder is even found.
Screen Shot 2021-11-05 at 18 27 01
d.

@Piipperi Piipperi added the bug Something isn't working label Nov 5, 2021
@quacksire
Copy link
Member

Is this on an Intel or M1 machine?

@coredev-uk coredev-uk added the 2.5.x Issues related to 2.5.x releases. label Nov 6, 2021
@coredev-uk
Copy link
Member

Pretty sure this is all a result of 2.5.0 not being fully set up for support on macOS, a lot more tuning has been done since the release, and for the log file did you check both the directories listed in the wiki?

@coredev-uk coredev-uk added the platform: macOS Related to macOS release label Nov 7, 2021
@Piipperi
Copy link
Author

Piipperi commented Nov 7, 2021

Pretty sure this is all a result of 2.5.0 not being fully set up for support on macOS, a lot more tuning has been done since the release, and for the log file did you check both the directories listed in the wiki?

Yeah I tried checking both, no log files to be seen

@Piipperi
Copy link
Author

Piipperi commented Nov 7, 2021

Is this on an Intel or M1 machine?

Intel

@coredev-uk
Copy link
Member

If you could try compiling on your device from the master branch that would be great, as I'm sure this is fixed in the current build.

@Piipperi
Copy link
Author

Piipperi commented Nov 9, 2021

If you could try compiling on your device from the master branch that would be great, as I'm sure this is fixed in the current build.

I haven't been able to compile it from the guide provided on my Mac nor on my Windows machine. Both result in error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
when I try compiling. It happens after I do yarn dist.

@vapormusic
Copy link
Contributor

If you could try compiling on your device from the master branch that would be great, as I'm sure this is fixed in the current build.

I haven't been able to compile it from the guide provided on my Mac nor on my Windows machine. Both result in error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. when I try compiling. It happens after I do yarn dist.

It would be helpful if you provide us the full build log

@Piipperi
Copy link
Author

Piipperi commented Nov 9, 2021

If you could try compiling on your device from the master branch that would be great, as I'm sure this is fixed in the current build.

I haven't been able to compile it from the guide provided on my Mac nor on my Windows machine. Both result in error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. when I try compiling. It happens after I do yarn dist.

It would be helpful if you provide us the full build log

Is it crash.log?

@coredev-uk
Copy link
Member

If you could just compile and then copy and paste the last 6 lines or so of the error. What you have provided is just the error code.

@Piipperi
Copy link
Author

Piipperi commented Nov 9, 2021

If you could just compile and then copy and paste the last 6 lines or so of the error. What you have provided is just the error code.

I tried to compile again, now I'm getting a bunch of errors like this

    gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp
    gyp ERR! configure error 
    gyp ERR! stack Error: `gyp` failed with exit code: 1
    gyp ERR! stack     at ChildProcess.onCpExit (/Users/Piipperi/Apple-Music-Electron/node_modules/node-gyp/lib/configure.js:259:16)
    gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
    gyp ERR! System Darwin 21.1.0
    gyp ERR! command "/usr/local/bin/node" "/Users/Piipperi/Apple-Music-Electron/node_modules/@seorii/win32-displayconfig/node_modules/.bin/node-gyp" "rebuild"
    gyp ERR! cwd /Users/Piipperi/Apple-Music-Electron/node_modules/@seorii/win32-displayconfig
    gyp ERR! node -v v17.0.1
    gyp ERR! node-gyp -v v8.4.0
    gyp ERR! not ok 
error Command failed with exit code 1.
    
                    command=/usr/local/bin/node /usr/local/lib/node_modules/yarn/bin/yarn.js run install
                    workingDir=/Users/Piipperi/Apple-Music-Electron/node_modules/@seorii/win32-displayconfig
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@vapormusic
Copy link
Contributor

If you could just compile and then copy and paste the last 6 lines or so of the error. What you have provided is just the error code.

I tried to compile again, now I'm getting a bunch of errors like this


    gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp

    gyp ERR! configure error 

    gyp ERR! stack Error: `gyp` failed with exit code: 1

    gyp ERR! stack     at ChildProcess.onCpExit (/Users/Piipperi/Apple-Music-Electron/node_modules/node-gyp/lib/configure.js:259:16)

    gyp ERR! stack     at ChildProcess.emit (node:events:390:28)

    gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

    gyp ERR! System Darwin 21.1.0

    gyp ERR! command "/usr/local/bin/node" "/Users/Piipperi/Apple-Music-Electron/node_modules/@seorii/win32-displayconfig/node_modules/.bin/node-gyp" "rebuild"

    gyp ERR! cwd /Users/Piipperi/Apple-Music-Electron/node_modules/@seorii/win32-displayconfig

    gyp ERR! node -v v17.0.1

    gyp ERR! node-gyp -v v8.4.0

    gyp ERR! not ok 

error Command failed with exit code 1.

    

                    command=/usr/local/bin/node /usr/local/lib/node_modules/yarn/bin/yarn.js run install

                    workingDir=/Users/Piipperi/Apple-Music-Electron/node_modules/@seorii/win32-displayconfig

error Command failed with exit code 1.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Use node 14.18.1
nodejs/node-gyp#2534

@coredev-uk
Copy link
Member

coredev-uk commented Nov 9, 2021

I also get this issue on my mac. I just run npm i --openssl_fips=X, or yeah you could switch version.

@Piipperi
Copy link
Author

Piipperi commented Nov 9, 2021

If you could just compile and then copy and paste the last 6 lines or so of the error. What you have provided is just the error code.

I tried to compile again, now I'm getting a bunch of errors like this


    gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp

    gyp ERR! configure error 

    gyp ERR! stack Error: `gyp` failed with exit code: 1

    gyp ERR! stack     at ChildProcess.onCpExit (/Users/Piipperi/Apple-Music-Electron/node_modules/node-gyp/lib/configure.js:259:16)

    gyp ERR! stack     at ChildProcess.emit (node:events:390:28)

    gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

    gyp ERR! System Darwin 21.1.0

    gyp ERR! command "/usr/local/bin/node" "/Users/Piipperi/Apple-Music-Electron/node_modules/@seorii/win32-displayconfig/node_modules/.bin/node-gyp" "rebuild"

    gyp ERR! cwd /Users/Piipperi/Apple-Music-Electron/node_modules/@seorii/win32-displayconfig

    gyp ERR! node -v v17.0.1

    gyp ERR! node-gyp -v v8.4.0

    gyp ERR! not ok 

error Command failed with exit code 1.

    

                    command=/usr/local/bin/node /usr/local/lib/node_modules/yarn/bin/yarn.js run install

                    workingDir=/Users/Piipperi/Apple-Music-Electron/node_modules/@seorii/win32-displayconfig

error Command failed with exit code 1.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Use node 14.18.1 nodejs/node-gyp#2534

I can use node 16 at minimum, 14 is not compatible with djs13 which is what I need for my personal projects.

@coredev-uk
Copy link
Member

As I said, run npm i --openssl_fips=X then npm run dist or yarn dist

@Piipperi
Copy link
Author

Piipperi commented Nov 9, 2021

As I said, run npm i --openssl_fips=X then npm run dist or yarn dist

Tried this, didn't work. Still the same errors rise.

@coredev-uk
Copy link
Member

hmm

@coredev-uk
Copy link
Member

Try deleting node_modules and run: npm i --openssl_fips=X then npm run dist --openssl_fips=X

@Piipperi
Copy link
Author

Piipperi commented Nov 9, 2021

Try deleting node_modules and run: npm i --openssl_fips=X then npm run dist --openssl_fips=X

Epic-Gamer-MacBook:Apple-Music-Electron Piipperi$ npm i --openssl_fips=X
npm ERR! code 1
npm ERR! path /Users/Piipperi/Apple-Music-Electron/node_modules/audify
npm ERR! command failed
npm ERR! command sh -c prebuild-install || npm run rebuild
npm ERR! > [email protected] rebuild
npm ERR! > cmake-js compile
npm ERR! 
npm ERR! [
npm ERR!   '/usr/local/bin/node',
npm ERR!   '/Users/Piipperi/Apple-Music-Electron/node_modules/.bin/cmake-js',
npm ERR!   'compile'
npm ERR! ]
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=17.0.1 runtime=node arch=x64 libc= platform=darwin)
npm ERR! info TOOL Using Unix Makefiles generator.
npm ERR! info REP Build has been failed, trying to do a full rebuild.
npm ERR! ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Piipperi/.npm/_logs/2021-11-09T18_29_07_284Z-debug.log

@coredev-uk
Copy link
Member

@vapormusic did say that he removed audify. However, if this continues install cmake. Either through homebrew or using their website.

@Piipperi
Copy link
Author

Piipperi commented Nov 9, 2021

@vapormusic did say that he removed audify. However, if this continues install cmake. Either through homebrew or using their website.

Try deleting node_modules and run: npm i --openssl_fips=X then npm run dist --openssl_fips=X

These two worked, installed cmake from Homebrew and ran npm I --openssl_fips=X and npm run dist --openssl_fips=X

@Piipperi
Copy link
Author

Piipperi commented Nov 9, 2021

Well it works now, except with all Apple Music songs I get a "MEDIA_LICENSE" error (yet songs from iCloud Library work fine)

@coredev-uk
Copy link
Member

Yeah, that's Widevine. Since we don't have a signed app it can never authenticate. Until we can get the app signed, which I believe is done using a $100 development license, the macOS Application will not work. I'll update this thread if any updates occur in this sense.

@coredev-uk coredev-uk pinned this issue Nov 15, 2021
@quacksire quacksire unpinned this issue Jan 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.5.x Issues related to 2.5.x releases. bug Something isn't working platform: macOS Related to macOS release
Projects
None yet
Development

No branches or pull requests

4 participants