Mesa failed to import dma-buf with VirtIO

Bug #2056527 reported by Simon Fels
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Anbox Cloud
Fix Committed
High
Simon Fels

Bug Description

Android crashes with

03-08 03:35:45.848 456 835 D MESA-VIRTIO: failed to create nv_mem from dma_buf
03-08 03:35:45.848 456 835 W libEGL : ANGLE Warn:MemoryTracking.cpp:50 (OutputMemoryLogStream): Currently allocated size for memory allocation type (ImageExternal): 65536 | Count: 1
03-08 03:35:45.848 456 835 W libEGL : --> Heap index 0: 65536 | Count: 1
03-08 03:35:45.848 456 835 W libEGL : --> Heap index 1: 0 | Count: 0
03-08 03:35:45.848 456 835 W libEGL : --> Heap index 2: 0 | Count: 0
03-08 03:35:45.848 456 835 W libEGL : ANGLE Warn:MemoryTracking.cpp:50 (OutputMemoryLogStream): Currently allocated size for memory allocation type (SwapchainDepthStencilImage): 163840 | Count: 1
03-08 03:35:45.848 456 835 W libEGL : --> Heap index 0: 163840 | Count: 1
03-08 03:35:45.848 456 835 W libEGL : --> Heap index 1: 0 | Count: 0
03-08 03:35:45.848 456 835 W libEGL : --> Heap index 2: 0 | Count: 0
03-08 03:35:45.849 456 835 W libEGL : ANGLE Warn:MemoryTracking.cpp:50 (OutputMemoryLogStream): Currently allocated size for memory allocation type (TextureImage): 3801088 | Count: 1
03-08 03:35:45.849 456 835 W libEGL : --> Heap index 0: 3801088 | Count: 1
03-08 03:35:45.849 456 835 W libEGL : --> Heap index 1: 0 | Count: 0
03-08 03:35:45.849 456 835 W libEGL : --> Heap index 2: 0 | Count: 0
03-08 03:35:45.849 456 835 W libEGL : ANGLE Warn:MemoryTracking.cpp:50 (OutputMemoryLogStream): Currently allocated size for memory allocation type (Buffer): 8421568 | Count: 7
03-08 03:35:45.849 456 835 W libEGL : --> Heap index 0: 192 | Count: 3
03-08 03:35:45.849 456 835 W libEGL : --> Heap index 1: 8421376 | Count: 4
03-08 03:35:45.849 456 835 W libEGL : --> Heap index 2: 0 | Count: 0
03-08 03:35:45.849 456 835 W libEGL : ANGLE Warn:MemoryTracking.cpp:50 (OutputMemoryLogStream): Memory heap info
03-08 03:35:45.849 456 835 W libEGL :
03-08 03:35:45.849 456 835 W libEGL : * Available memory heaps:
03-08 03:35:45.849 456 835 W libEGL : 0 | Heap size: 16106127360 | Flags: 0x1
03-08 03:35:45.849 456 835 W libEGL : 1 | Heap size: 4499997696 | Flags: 0x0
03-08 03:35:45.849 456 835 W libEGL : 2 | Heap size: 257949696 | Flags: 0x1
03-08 03:35:45.849 456 835 W libEGL :
03-08 03:35:45.849 456 835 W libEGL : * Available memory types:
03-08 03:35:45.849 456 835 W libEGL : 0 | Heap index: 1 | Property flags: 0x0
03-08 03:35:45.849 456 835 W libEGL : 1 | Heap index: 0 | Property flags: 0x1
03-08 03:35:45.849 456 835 W libEGL : 2 | Heap index: 1 | Property flags: 0x6
03-08 03:35:45.849 456 835 W libEGL : 3 | Heap index: 1 | Property flags: 0xe
03-08 03:35:45.849 456 835 W libEGL : 4 | Heap index: 2 | Property flags: 0x7
03-08 03:35:45.849 456 835 W libEGL : ANGLE Warn:Debug.cpp:186 (insertMessage): GL error: HIGH: Error: 0x00000505, in ../../../src/libANGLE/renderer/vulkan/CommandProcessor.cpp, submitCommands:1419. Internal Vulkan error (-1): A host memory allocation has failed.
03-08 03:35:45.849 456 835 W OpenGLRenderer: Could not create sync fence 0x3003
03-08 03:35:45.849 456 835 E OpenGLRenderer: GL error: Out of memory!
03-08 03:35:45.865 456 456 D AndroidRuntime: Shutting down VM

on a system using a NVIDIA T4 GPU and the 545.29.06 driver version.

Tags: ac-2357
Simon Fels (morphis)
Changed in anbox-cloud:
status: New → Triaged
importance: Undecided → High
Simon Fels (morphis)
tags: added: ac-2357
Simon Fels (morphis)
Changed in anbox-cloud:
status: Triaged → Fix Committed
assignee: nobody → Simon Fels (morphis)
milestone: none → 1.22.0
status: Fix Committed → In Progress
Simon Fels (morphis)
Changed in anbox-cloud:
status: In Progress → Fix Committed
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.