cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

strophy
Journeyman III

GL_OUT_OF_MEMORY crash under Ubuntu 22.04

Hi, I have a new Lenovo Z16 with Ryzen 6850H and Radeon RX 6500M. I'm using Ubuntu 22.04 I've installed the `amdgpu` drivers (version 22.20) and I can reliably cause a crash by resizing a window for an Electron app like VS Code or Spotify. The Gnome log contains the following information:

Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: Failed to allocate a buffer:
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: size : 5791744 bytes
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: alignment : 2097152 bytes
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: domains : 4
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: flags : 6
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: Failed to allocate a buffer:
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: size : 4612096 bytes
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: alignment : 2097152 bytes
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: domains : 4
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: flags : 6
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: Failed to allocate a buffer:
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: size : 4612096 bytes
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: alignment : 2097152 bytes
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: domains : 4
Aug 22 16:50:38 z16 code.desktop[58141]: amdgpu: flags : 6
Aug 22 16:50:38 z16 code.desktop[58141]: [58141:0822/165038.636620:ERROR:angle_platform_impl.cc(44)] renderergl_utils.cpp:2512 (CheckError): GL call functions->texStorage2D(ToGLenum(type), static_cast<GLsizei>(levels), texStorageFormat.internalFormat, size.width, size.height) generated error 0x00000505 in ../../third_party/angle/src/libANGLE/renderer/gl/TextureGL.cpp, setStorage:1036.
Aug 22 16:50:38 z16 code.desktop[58141]: [58141:0822/165038.636815:ERROR:shared_context_state.cc(826)] SharedContextState lost due to GL_OUT_OF_MEMORY
Aug 22 16:50:38 z16 code.desktop[58141]: [58141:0822/165038.637181:ERROR:gpu_service_impl.cc(977)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
Aug 22 16:50:39 z16 code.desktop[7662]: [7662:0822/165039.696792:ERROR:gpu_process_host.cc(979)] GPU process exited unexpectedly: exit_code=8704
Aug 22 16:50:39 z16 code.desktop[64206]: libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
Aug 22 16:50:39 z16 code.desktop[64206]: [64206:0822/165039.751487:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
Aug 22 16:50:43 z16 code.desktop[64206]: [64206:0822/165043.064314:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
Aug 22 16:50:44 z16 code.desktop[64206]: [64206:0822/165044.106055:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
Aug 22 16:50:44 z16 code.desktop[64206]: [64206:0822/165044.111067:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

The app then becomes unusable and needs to be restarted. How can I go about diagnosing this issue?

0 Likes
0 Replies