MESA-VIRTIO: failed to create nv_mem from dma_buf

Bug #2065142 reported by Gary.Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Anbox Cloud
Fix Committed
Medium
Gary.Wang

Bug Description

Android container couldn't boot up successfully sporadically due to
```
05-07 19:39:10.327 421 702 D MESA-VIRTIO: failed to create nv_mem from dma_buf
05-07 19:39:10.327 421 702 W libEGL : ANGLE Warn:MemoryTracking.cpp:50 (OutputMemoryLogStream): Currently allocated size for memory allocation type (SwapchainDepthStencilImage): 81920 | Count: 1
05-07 19:39:10.327 421 702 W libEGL : --> Heap index 0: 81920 | Count: 1
05-07 19:39:10.327 421 702 W libEGL : --> Heap index 1: 0 | Count: 0
05-07 19:39:10.327 421 702 W libEGL : --> Heap index 2: 0 | Count: 0
05-07 19:39:10.327 421 702 W libEGL : ANGLE Warn:MemoryTracking.cpp:50 (OutputMemoryLogStream): Currently allocated size for memory allocation type (TextureImage): 29491200 | Count: 1
05-07 19:39:10.327 421 702 W libEGL : --> Heap index 0: 29491200 | Count: 1
05-07 19:39:10.327 421 702 W libEGL : --> Heap index 1: 0 | Count: 0
05-07 19:39:10.327 421 702 W libEGL : --> Heap index 2: 0 | Count: 0
05-07 19:39:10.327 421 702 W libEGL : ANGLE Warn:MemoryTracking.cpp:50 (OutputMemoryLogStream): Currently allocated size for memory allocation type (Buffer): 33718528 | Count: 7
05-07 19:39:10.327 421 702 W libEGL : --> Heap index 0: 192 | Count: 3
05-07 19:39:10.327 421 702 W libEGL : --> Heap index 1: 33718336 | Count: 4
05-07 19:39:10.327 421 702 W libEGL : --> Heap index 2: 0 | Count: 0
05-07 19:39:10.327 421 702 W libEGL : ANGLE Warn:MemoryTracking.cpp:50 (OutputMemoryLogStream): Memory heap info
05-07 19:39:10.327 421 702 W libEGL :
05-07 19:39:10.327 421 702 W libEGL : * Available memory heaps:
05-07 19:39:10.327 421 702 W libEGL : 0 | Heap size: 25763512320 | Flags: 0x1
05-07 19:39:10.327 421 702 W libEGL : 1 | Heap size: 4499997696 | Flags: 0x0
05-07 19:39:10.327 421 702 W libEGL : 2 | Heap size: 257949696 | Flags: 0x1
05-07 19:39:10.327 421 702 W libEGL :
05-07 19:39:10.327 421 702 W libEGL : * Available memory types:
05-07 19:39:10.327 421 702 W libEGL : 0 | Heap index: 1 | Property flags: 0x0
05-07 19:39:10.327 421 702 W libEGL : 1 | Heap index: 0 | Property flags: 0x1
05-07 19:39:10.327 421 702 W libEGL : 2 | Heap index: 1 | Property flags: 0x6
05-07 19:39:10.327 421 702 W libEGL : 3 | Heap index: 1 | Property flags: 0xe
05-07 19:39:10.327 421 702 W libEGL : 4 | Heap index: 2 | Property flags: 0x7
05-07 19:39:10.327 421 702 W libEGL : ANGLE Warn:Debug.cpp:186 (insertMessage): GL error: HIGH: Error: 0x00000505, in ../../../src/libANGLE/renderer/vulkan/CommandProcessor.cpp, submitCommands:1418. Internal Vulkan error (-1): A host memory allocation has failed.
05-07 19:39:10.327 421 702 W EglHelper: eglSwapBuffers failed: EGL_BAD_SURFACE
05-07 19:39:10.327 421 702 E ImageWallpaper: drawFrame failed!
05-07 19:39:10.327 421 702 D MESA-VIRTIO: failed to create nv_mem from dma_buf

```

In the meantime, the following error popping up in the kernel logs as well
```
tatanga kernel: [drm:nv_drm_gem_export_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x000d0100] Failed to lookup NVKMS gem object for export: 0x00000002
```

Gary.Wang (gary-wzl77)
Changed in anbox-cloud:
assignee: nobody → Gary.Wang (gary-wzl77)
milestone: none → 1.22.1
status: New → Triaged
Gary.Wang (gary-wzl77)
Changed in anbox-cloud:
status: Triaged → In Progress
importance: Undecided → Low
importance: Low → Medium
Simon Fels (morphis)
Changed in anbox-cloud:
milestone: 1.22.1 → none
milestone: none → 1.23.0
Gary.Wang (gary-wzl77)
Changed in anbox-cloud:
status: In Progress → Fix Committed
milestone: 1.23.0 → 1.22.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.