Android system couldn't boot up due to `Extension not supported: VK_KHR_swapchain`

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

Bug Description

```
03-11 09:22:27.461 1872 1872 E ActivityRecognitionHardware: activity_recognition HAL is deprecated. class_init is effectively a no-op
03-11 09:22:27.478 1881 1887 E libEGL : ANGLE Error:RendererVk.cpp:203 (VerifyExtensionsPresent): Extension not supported: VK_KHR_swapchain
03-11 09:22:27.478 1881 1887 E ANGLE : ERR: RendererVk.cpp:203 (VerifyExtensionsPresent): Extension not supported: VK_KHR_swapchain
03-11 09:22:27.478 1881 1887 E libEGL : ANGLE Error:Display.cpp:1054 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../../src/libANGLE/renderer/vulkan/RendererVk.cpp, enableDeviceExtensions:3206.
03-11 09:22:27.478 1881 1887 E ANGLE : ERR: Display.cpp:1054 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../../src/libANGLE/renderer/vulkan/RendererVk.cpp, enableDeviceExtensions:3206.
03-11 09:22:27.478 1881 1887 W libEGL : eglInitialize(0xb400fffe4470e010) failed (EGL_NOT_INITIALIZED)
03-11 09:22:27.478 1881 1887 W RenderEngine: no suitable EGLConfig found, trying a simpler query
03-11 09:22:27.478 1881 1887 F RenderEngine: no suitable EGLConfig found, giving up
03-11 09:22:27.478 1881 1887 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 1887 (surfaceflinger), pid 1881 (surfaceflinger)
03-11 09:22:27.483 1938 1938 E cutils-trace: Error opening container trace socket: No such file or directory (2)
03-11 09:22:27.506 1940 1940 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto
03-11 09:22:27.506 40 40 I tombstoned: received crash request for pid 1887
03-11 09:22:27.507 1940 1940 I crash_dump64: performing dump of process 1881 (target tid = 1887)
03-11 09:22:27.534 1940 1940 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-11 09:22:27.534 1940 1940 F DEBUG : Build fingerprint: 'Android/anbox_arm64/anbox_arm64:12/SSV1.210916.086/eng.jenkin.20240305.210753:user/release-keys'
03-11 09:22:27.535 1940 1940 F DEBUG : Revision: '0'
03-11 09:22:27.535 1940 1940 F DEBUG : ABI: 'arm64'
03-11 09:22:27.535 1940 1940 F DEBUG : Timestamp: 2024-03-11 09:22:27.507876486+0000
03-11 09:22:27.535 1940 1940 F DEBUG : Process uptime: -4899s
03-11 09:22:27.535 1940 1940 F DEBUG : Cmdline: /system/bin/surfaceflinger
03-11 09:22:27.535 1940 1940 F DEBUG : pid: 1881, tid: 1887, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
03-11 09:22:27.535 1940 1940 F DEBUG : uid: 1000
03-11 09:22:27.535 1940 1940 F DEBUG : tagged_addr_ctrl: 0000000000000001
03-11 09:22:27.535 1940 1940 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
03-11 09:22:27.535 1940 1940 F DEBUG : Abort message: 'no suitable EGLConfig found, giving up'
03-11 09:22:27.535 1940 1940 F DEBUG : x0 0000000000000000 x1 000000000000075f x2 0000000000000006 x3 0000fffd0240c340
03-11 09:22:27.535 1940 1940 F DEBUG : x4 0000000065ed7bd3 x5 0000000065ed7bd3 x6 0000000065ed7bd3 x7 000000000025ef32
03-11 09:22:27.535 1940 1940 F DEBUG : x8 00000000000000f0 x9 b2f928c45f5e9271 x10 0000000000000000 x11 ffffff80ffffffdf
03-11 09:22:27.535 1940 1940 F DEBUG : x12 0000000000000001 x13 0000000000000027 x14 0000fffd0240c4d0 x15 0000000000000038
03-11 09:22:27.535 1940 1940 F DEBUG : x16 0000ffff95bad050 x17 0000ffff95b89eb0 x18 0000fffd01512000 x19 0000000000000759
03-11 09:22:27.543 1940 1940 E crash_dump64: unable to connect to activity manager: No such file or directory
```

NVIDIA-SMI info
```
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.02 Driver Version: 545.29.02 CUDA Version: 12.3 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 Tesla T4 On | 00000000:01:00.0 Off | Off |
| N/A 39C P0 32W / 70W | 2MiB / 16384MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
| 1 Tesla T4 On | 00000001:01:00.0 Off | Off |
| N/A 45C P0 34W / 70W | 2MiB / 16384MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
| 2 Tesla T4 On | 0000000D:01:00.0 Off | Off |
| N/A 46C P0 35W / 70W | 2MiB / 16384MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| No running processes found |
+---------------------------------------------------------------------------------------+
```

Enabling virgl and streaming from an app(instance-type:g4.3) on the appliance deployed on focal causes the Android system to fail to boot due to the native crash described above. This issue appears to be specific to focal only.

Gary.Wang (gary-wzl77)
Changed in anbox-cloud:
milestone: none → 1.22.0
status: New → Triaged
importance: Undecided → High
Gary.Wang (gary-wzl77)
Changed in anbox-cloud:
assignee: nobody → Gary.Wang (gary-wzl77)
status: Triaged → In Progress
Gary.Wang (gary-wzl77)
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.