Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Macos show blank screen after close window and open again #642

Closed
yuygfgg opened this issue Jun 12, 2024 · 12 comments · Fixed by #668
Closed

Bug: Macos show blank screen after close window and open again #642

yuygfgg opened this issue Jun 12, 2024 · 12 comments · Fixed by #668
Labels
bug Something isn't working

Comments

@yuygfgg
Copy link
Contributor

yuygfgg commented Jun 12, 2024

Expected Behavior

start the app and show the main window

截屏2024-06-12 08 36 54

Current Behavior

show blank window

截屏2024-06-12 08 34 48

Steps to Reproduce

  1. close the window by clicking the left button

  2. click feishin icon in dock

  3. you will see blank screen

Possible Solution

maybe reload the app? I don't know anything about react.

Context

No response

Application version

0.7.1

Operating System and version

macos latest

Server and Version

navidrome 0.51.1

Node Version (if developing locally)

No response

@yuygfgg yuygfgg added the bug Something isn't working label Jun 12, 2024
@brian-xu
Copy link

also affected, on ARM (m1 pro) if that matters

@jeffvli
Copy link
Owner

jeffvli commented Jul 14, 2024

Try to open to browser dev tools and check what the error is in the console.

Use ctrl + shift + i (or cmd for macos)

@brian-xu
Copy link

Nothing happens, I just get an error sound.

@yuygfgg
Copy link
Contributor Author

yuygfgg commented Jul 14, 2024

截屏2024-07-14 17 26 30 it shows this error when open for the first time.

@yuygfgg
Copy link
Contributor Author

yuygfgg commented Jul 14, 2024

Try to open to browser dev tools and check what the error is in the console.

Use ctrl + shift + i (or cmd for macos)

nothing happen after pressing ctrl (or cmd) + shift + i

@jeffvli
Copy link
Owner

jeffvli commented Jul 14, 2024

@yuygfgg If you can access the UI before the white screen crash, then open the devtools from the menu. Then check the exact error from the console.
image

@brian-xu If you can clone the repo, install nodejs and run the dev version you may be able to debug it from the devtools console. Unfortunately without the actual error I'm unable to troubleshoot it since I don't know where the error is coming from on your side. See comment below for pre-built versions.

@yuygfgg
Copy link
Contributor Author

yuygfgg commented Jul 14, 2024

@jeffvli

截屏2024-07-14 17 46 05 There is no error before crash. and when I close the window and open again, it became blank screen.

@jeffvli
Copy link
Owner

jeffvli commented Jul 14, 2024

I built a version that shows the devtools by default when opening the app. Install one of the versions below and see if you can see the error using the devtools.

Feishin-0.7.2-mac-x64.dmg
Feishin-0.7.2-mac-arm64.dmg

@yuygfgg
Copy link
Contributor Author

yuygfgg commented Jul 14, 2024

I built a version that shows the devtools by default when opening the app. Install one of the versions below and see if you can see the error using the devtools.

Feishin-0.7.2-mac-x64.dmg Feishin-0.7.2-mac-arm64.dmg

nothing showed up and still blank screen.

BTW, after I click on the feishin icon on dock, it stucked for about 2 seconds before the blank screen shows up.

@jeffvli
Copy link
Owner

jeffvli commented Jul 14, 2024

Unfortunately I can't help much more than that. You will need to run the development version yourself and see if you can find where the error is coming from. I don't have a macOS device and I can't reproduce this error on my Windows machine.

Install nodejs, clone the repo, do a npm install --legacy-peer-deps, and then npm run start to start the dev build.

@yuygfgg
Copy link
Contributor Author

yuygfgg commented Jul 14, 2024

Unfortunately I can't help much more than that. You will need to run the development version yourself and see if you can find where the error is coming from. I don't have a macOS device and I can't reproduce this error on my Windows machine.

Install nodejs, clone the repo, do a npm install --legacy-peer-deps, and then npm run start to start the dev build.

(node:71552) ExtensionLoadWarning: Warnings loading extension at /Users/a1/Library/Application Support/Electron/extensions/lmhkpmbekcpmknklioeibfkpmmfibljd:
  Manifest version 2 is deprecated, and support will be removed in 2024. See https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline for details.
  Permission 'notifications' is unknown or URL pattern is malformed.
  Permission 'contextMenus' is unknown or URL pattern is malformed.

(node:71552) UnhandledPromiseRejectionWarning: Error: Attempted to register a second handler for 'open-item'
    at IpcMainImpl.handle (node:electron/js2c/browser_init:2:100960)
    at createWindow (/Users/a1/feishin/src/main/main.ts:2:9216)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
(node:71552) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)

@yuygfgg
Copy link
Contributor Author

yuygfgg commented Jul 14, 2024

@jeffvli
I solved the problem by moving the ipcMain.handle('open-item', ...) registration to the global scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants