anytype-ts icon indicating copy to clipboard operation
anytype-ts copied to clipboard

Automatically fallback on GPU/GPU acceleration failure

Open sammypanda opened this issue 4 months ago • 3 comments
trafficstars

Have you read a contributing guide?

  • [x] I have read CONTRIBUTING.md
  • [x] I have searched the existing requests and didn't find any that were similar
  • [x] I have considered creating a pull request instead and want to proceed

Clear and concise description of the problem

Hai there,

recently an issue has come up in chromium for the 6.x linux kernels (https://issues.chromium.org/issues/396434686). This can break GPU acceleration for some wayland sessions.

distro level: https://github.com/NixOS/nixpkgs/issues/382612#issuecomment-2810403341 electron level: https://github.com/electron/electron/issues/45862


failure log:

[InstallNativeMessaging] Manifest skipped: Chrome
[InstallNativeMessaging] Manifest skipped: Chromium
[InstallNativeMessaging] Manifest skipped: Brave
[InstallNativeMessaging] Manifest skipped: BraveFlatpak
[54:0707/111115.369469:ERROR:angle_platform_impl.cc(49)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[54:0707/111115.369582:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[54:0707/111115.369632:ERROR:native_pixmap_egl_binding.cc(114)] Unable to initialize binding from pixmap
[54:0707/111115.369699:ERROR:ozone_image_backing.cc(319)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[54:0707/111115.369749:ERROR:shared_image_manager.cc(408)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[54:0707/111115.369853:ERROR:gpu_service_impl.cc(1182)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[2:0707/111115.394940:ERROR:gpu_process_host.cc(953)] GPU process exited unexpectedly: exit_code=8704
[141:0707/111115.549620:ERROR:angle_platform_impl.cc(49)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[141:0707/111115.549724:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[141:0707/111115.549776:ERROR:native_pixmap_egl_binding.cc(114)] Unable to initialize binding from pixmap
[141:0707/111115.549922:ERROR:ozone_image_backing.cc(319)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[141:0707/111115.550016:ERROR:shared_image_manager.cc(408)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[141:0707/111115.550127:ERROR:gpu_service_impl.cc(1182)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[2:0707/111115.560646:ERROR:gpu_process_host.cc(953)] GPU process exited unexpectedly: exit_code=8704
[193:0707/111115.693209:ERROR:angle_platform_impl.cc(49)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[193:0707/111115.693391:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[193:0707/111115.693472:ERROR:native_pixmap_egl_binding.cc(114)] Unable to initialize binding from pixmap
[193:0707/111115.693544:ERROR:ozone_image_backing.cc(319)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[193:0707/111115.693596:ERROR:shared_image_manager.cc(408)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[193:0707/111115.693696:ERROR:gpu_service_impl.cc(1182)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[2:0707/111115.702907:ERROR:gpu_process_host.cc(953)] GPU process exited unexpectedly: exit_code=8704
[241:0707/111117.472089:ERROR:gles2_cmd_decoder_passthrough.cc(1094)] [GroupMarkerNotSet(crbug.com/242999)!:A0201600943B0000]Automatic fallback to software WebGL has been deprecated. Please use the --enable-unsafe-swiftshader flag to opt in to lower security guarantees for trusted content.
[241:0707/111117.555461:ERROR:gl_utils.cc(431)] [.WebGL-0x1c12f2d400]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
^C
[2:0707/111307.055276:FATAL:bus.cc(1247)] D-Bus connection was disconnected. Aborting.

Suggested solution

It might be a good idea to fallback to cpu rendering. As far as it seems, it tries to restart instead of falling back.


for instance, for people who get issues like: [53:0707/104603.233282:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS

you could open anytype as anytype --disable-gpu --enable-unsafe-swiftshader and it should avoid it.

Alternative

No response

Additional context

No response

sammypanda avatar Jul 07 '25 01:07 sammypanda

I want to add a setting to disable GPU rendering as it's done in Slack. What do you think? There are some problems on Windows as well sometimes.

ra3orblade avatar Jul 17 '25 09:07 ra3orblade

I want to add a setting to disable GPU rendering as it's done in Slack. What do you think? There are some problems on Windows as well sometimes.

Only so good if you can't open the application to get to the setting 🤭

sammypanda avatar Jul 22 '25 23:07 sammypanda

I want to add a setting to disable GPU rendering as it's done in Slack. What do you think? There are some problems on Windows as well sometimes.

Only so good if you can't open the application to get to the setting 🤭

Yes, switch would be better for such cases, but we have some problems when video driver is glitching erratically, like blinking textures for example.

ra3orblade avatar Jul 29 '25 11:07 ra3orblade