Automattic / simplenote-electron

Simplenote for Web, Windows, and Linux
https://app.simplenote.com
GNU General Public License v2.0
4.82k stars 558 forks source link

GPU process isn't usable. Goodbye. #3096

Closed wa1one closed 3 months ago

wa1one commented 2 years ago

Unable to start the app.

[58330:0606/104043.101246:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye. Trace/breakpoint trap (core dumped)

Expected

App is starting.

Observed

App is not starting.

Reproduced

Where did you see the bug

BlueManCZ commented 2 years ago

Can confirm this. I just updated the Gentoo kernel to 5.15.41 and got the same error.

jhdore commented 2 years ago

Can also confirm. Broke after upgrade to 22.04 (Kubuntu, but same kernel).

Starting Simplenote from the command line gets me that same message. I am also using a Lenovo laptop, Thinkbook 14 G2.

BlueManCZ commented 2 years ago

Does it work for you when you start Simplenote with simplenote --no-sandbox command?

jhdore commented 2 years ago

Aha - yes, it does! What does that switch do?

BlueManCZ commented 2 years ago

It just passes this parameter to the electron core. You can read more about electron sandboxing here.

jhdore commented 2 years ago

However adding that switch to the application launcher icon doesn't:

[Desktop Entry]
Name=Simplenote
Exec=/opt/Simplenote/simplenote --no-sandbox %U
Terminal=false
Type=Application
Icon=simplenote
StartupWMClass=Simplenote
Comment=Simplenote is an easy way to keep notes, lists, ideas and more. Your notes stay in sync with all your devices for free.
GenericName=Note Taking Application
StartupNotify=true
Categories=Utility;
MimeType=x-scheme-handler/simplenote;
BlueManCZ commented 2 years ago

Even when run update-desktop-database after editing the file and logout and login back?

jhdore commented 2 years ago

Aha - required logout/in to work. I'm guessing that the sandboxing is a good idea though, after a brief read of that link.

BlueManCZ commented 2 years ago

Yes, sandboxing is nice. I guess it will be fixed in future releases when the Simplenote binary is recompiled with the newer glib libraries. We will see.

wa1one commented 2 years ago

Works well with --no-sandbox.

austinginder commented 2 years ago

Simplenote broke after upgrading my OS from Pop!_OS 21.10 to 22.04. I am able to run Simplenote with /opt/Simplenote/simplenote --no-sandbox. Otherwise I see the same error as others reported.

[1221762:0626/101003.334495:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.
[1]    1221762 trace trap (core dumped)  /opt/Simplenote/simplenote
brajevicm commented 2 years ago

Here's a workaround.

yash10019coder commented 1 year ago

Does it work for you when you start Simplenote with simplenote --no-sandbox command?

bro you made my day thanks a lot 👍🏼

GerardoGarciaR commented 1 year ago

App (BalenaEtcher) crashes on macOS Ventura

Yes, of course, the same error happens to me, in macOS version. The app crashes at start, so I decided to know whats going on, and in order to know whats happening, I ran it on a Terminal (Shell), and thats what it say:

gera@Mac-Pro-de-Gera ~ % /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher
objc[1526]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffb575e5378) and /Applications/balenaEtcher.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x111faece0). One of the two will be used. Which one is undefined.
[0410/113234.939059:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0410/113235.101064:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[1523:0410/113235.121999:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[0410/113235.305488:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0410/113235.467395:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[0410/113235.679832:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0410/113235.842255:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[0410/113235.856915:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[1523:0410/113235.861612:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=9
objc[1540]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffb575e5378) and /Applications/balenaEtcher.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x110d86ce0). One of the two will be used. Which one is undefined.
[0410/113236.028570:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[1523:0410/113236.045590:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[0410/113236.483796:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0410/113236.646008:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[0410/113236.659989:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[1523:0410/113236.663706:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[0410/113236.831080:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[1523:0410/113236.849437:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=9
objc[1543]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffb575e5378) and /Applications/balenaEtcher.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x10c58bce0). One of the two will be used. Which one is undefined.
[0410/113237.026974:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0410/113237.188800:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[1523:0410/113237.206391:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[0410/113237.561448:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0410/113237.727839:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[0410/113237.742041:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[1523:0410/113237.746550:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=9
objc[1545]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffb575e5378) and /Applications/balenaEtcher.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x10a7a0ce0). One of the two will be used. Which one is undefined.
[0410/113237.909744:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[1523:0410/113237.927096:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[0410/113238.294779:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0410/113238.457604:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[0410/113238.471760:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[1523:0410/113238.476892:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=9
objc[1547]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffb575e5378) and /Applications/balenaEtcher.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x113064ce0). One of the two will be used. Which one is undefined.
[0410/113238.640244:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[1523:0410/113238.658145:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[0410/113239.024605:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0410/113239.187888:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[0410/113239.202587:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[1523:0410/113239.207587:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=9
objc[1549]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffb575e5378) and /Applications/balenaEtcher.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x10f2fdce0). One of the two will be used. Which one is undefined.
[0410/113239.371055:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[1523:0410/113239.387665:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[0410/113239.759906:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0410/113239.924301:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[0410/113239.938805:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[1523:0410/113239.943940:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=9
[1551:0410/113240.060840:ERROR:gpu_init.cc(481)] Passthrough is not supported, GL is disabled, ANGLE is 
[0410/113240.106119:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[1523:0410/113240.123732:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[0410/113240.484652:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0410/113240.646000:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[0410/113240.659481:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[1523:0410/113240.663167:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=9
[1555:0410/113240.780670:ERROR:gpu_init.cc(481)] Passthrough is not supported, GL is disabled, ANGLE is 
[0410/113240.824310:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[1523:0410/113240.841375:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[0410/113241.191168:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0410/113241.352276:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[0410/113241.365906:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[1523:0410/113241.369501:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=9
[1557:0410/113241.485354:ERROR:gpu_init.cc(481)] Passthrough is not supported, GL is disabled, ANGLE is 
[0410/113241.532715:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[1523:0410/113241.549596:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[0410/113241.898687:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0410/113242.059699:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[0410/113242.072988:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[1523:0410/113242.076495:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=9
[1523:0410/113242.076535:FATAL:gpu_data_manager_impl_private.cc(450)] GPU process isn't usable. Goodbye.
[0410/113242.233192:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
zsh: trace trap  /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher

But the curious thing is that the same App runs fine on macOS BigSur on the same machine. But It doesn't work on Ventura.

My GPU is an NVIDIA GT710 1GB.

nsxdavid commented 1 year ago

instead try this flag: --in-process-gpu

Chett23 commented 9 months ago

I ran into this issue while trying to make a dev build for testing and was able to get past it by adding the following to desktop/app.js

  // adding no-sandbox flag for dev builds should be removed for live build as this can be added manually
  app.commandLine.appendSwitch('--no-sandbox');
kshetritej commented 8 months ago

It's 2024 and again got the same issue in PopOS! [12174:12174:0222/230003.553099:ERROR:policy_logger.cc(156)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(161) Cloud management controller initialization aborted as CBCM is not enabled. Please use the--enable-chrome-browser-cloud-managementcommand line flag to enable it if you are not using the official Google Chrome build. [12174:12174:0222/230003.960459:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.NotSupported: This method is not implemented [12174:12174:0222/230004.647317:ERROR:gpu_process_host.cc(992)] GPU process exited unexpectedly: exit_code=139 [12174:12174:0222/230004.936019:ERROR:gpu_process_host.cc(992)] GPU process exited unexpectedly: exit_code=139 [12174:12174:0222/230005.169715:ERROR:gpu_process_host.cc(992)] GPU process exited unexpectedly: exit_code=139 [12174:12174:0222/230005.354490:ERROR:gpu_process_host.cc(992)] GPU process exited unexpectedly: exit_code=139 [12174:12174:0222/230005.545205:ERROR:gpu_process_host.cc(992)] GPU process exited unexpectedly: exit_code=139 [12174:12174:0222/230005.737940:ERROR:gpu_process_host.cc(992)] GPU process exited unexpectedly: exit_code=139 [12174:12174:0222/230005.900962:ERROR:gpu_process_host.cc(992)] GPU process exited unexpectedly: exit_code=139 [12174:12174:0222/230006.057602:ERROR:gpu_process_host.cc(992)] GPU process exited unexpectedly: exit_code=139 [12174:12174:0222/230006.197610:ERROR:gpu_process_host.cc(992)] GPU process exited unexpectedly: exit_code=139 [12174:12174:0222/230006.197623:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye. [0222/230006.206846:ERROR:elf_dynamic_array_reader.h(64)] tag not found /usr/bin/brave-browser: line 48: 12174 Trace/breakpoint trap (core dumped) "$HERE/brave" "$@" when starting chromium based browsers.

chadyred commented 8 months ago

Look at the env var LIBVA_DRIVER_NAME with env command on your OS, I leaved a value on it, so I clean it and all works

AzanGaming123 commented 8 months ago

Hi, I know this is really irrelevant and not related but I really need quick help from someone.

Here's some details of my operation system. OS: Linux Type: Debian Distribution: Parrot OS Security Edition Arch: x64

Now recently I installed SDL2 and later shut down-ed the Laptop, but when I turned on back and opened my microsoft edge, it crashed with this error

[10086:10086:0313/144941.094743:ERROR:policy_logger.cc(157)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(161) Cloud management controller initialization aborted as CBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build.
[10086:10106:0313/144942.471532:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.StartServiceByName: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[10086:10086:0313/144945.450007:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=11
[10086:10086:0313/144946.204359:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=11
[10086:10086:0313/144946.968347:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=11
EE ../src/gallium/drivers/r600/r600_pipe.c:208 r600_create_context - Unsupported gfx level 4096.
[10086:10086:0313/144947.629150:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=11
EE ../src/gallium/drivers/r600/r600_pipe.c:208 r600_create_context - Unsupported gfx level 4096.
[10086:10086:0313/144948.023508:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=11
EE ../src/gallium/drivers/r600/r600_pipe.c:208 r600_create_context - Unsupported gfx level 4096.
[10086:10086:0313/144948.424440:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=11
EE ../src/gallium/drivers/r600/r600_pipe.c:208 r600_create_context - Unsupported gfx level 4096.
[10086:10086:0313/144949.018912:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=11
EE ../src/gallium/drivers/r600/r600_pipe.c:208 r600_create_context - Unsupported gfx level 4096.
[10086:10086:0313/144949.466705:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=11
EE ../src/gallium/drivers/r600/r600_pipe.c:208 r600_create_context - Unsupported gfx level 4096.
[10086:10086:0313/144949.945105:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=11
[10086:10086:0313/144949.945166:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
/usr/bin/brave-browser-stable: line 48: 10086 Trace/breakpoint trap   "$HERE/brave" "$@"

I tried:

--no-sandbox --disable-gpu Deleting ~/.config/microsoft-edge folder

later I deleted edge and thought it's an BUG but then I found out that it's happening with all chromium based browsers and spotify also don't opening up and this is the error (in console):

EE ../src/gallium/drivers/r600/r600_pipe.c:208 r600_create_context - Unsupported gfx level 4096.
EE ../src/gallium/drivers/r600/r600_pipe.c:208 r600_create_context - Unsupported gfx level 4096.
EE ../src/gallium/drivers/r600/r600_pipe.c:208 r600_create_context - Unsupported gfx level 4096.
EE ../src/gallium/drivers/r600/r600_pipe.c:208 r600_create_context - Unsupported gfx level 4096.
EE ../src/gallium/drivers/r600/r600_pipe.c:208 r600_create_context - Unsupported gfx level 4096.
EE ../src/gallium/drivers/r600/r600_pipe.c:208 r600_create_context - Unsupported gfx level 4096.
[0313/150316.468570:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
[1]    11124 trace trap  spotify

I really don't know what's going on and I tried what @chadyred said and other forums etc but they doesn't seem to work. Please help me if you can.

codebykat commented 3 months ago

The latest version (2.22.1) upgraded a ton of dependencies and should have fixed issues such as this one. Please let us know if this is still a problem after updating!