react-native-skia icon indicating copy to clipboard operation
react-native-skia copied to clipboard

Android: no Vulkan adapter found (`Adapters found: [Null: Null backend]`) on moto g54 5G / moto g73 5G, every canvas blank

Open emilhaugberg opened this issue 2 weeks ago • 0 comments

Description

A customer reported a blank account screen in our app on a moto g54 5G (Android 15). The graph and the numbers drawn with Skia were missing, while regular RN views rendered fine. Datadog shows the found no GPU adapter ... [Null: Null backend] error on that phone and several other fairly recent Android devices since we upgraded to v3. Affected users can't see their balance.

I expected these phones to work, since they should support Vulkan 1.1+. As far as I can tell, Dawn doesn't find a Vulkan adapter on them at all, unlike older phones where it finds one and rejects it.

React Native Skia Version

3.9.1 (also seen on 3.8.0)

React Native Version

0.86.3 (Expo SDK 57.0.31)

Using New Architecture

  • [x] Enabled

Steps to Reproduce

Not reproduced locally: we don't have an affected device. This comes from production telemetry (Datadog RUM) on the devices listed under Agent-written content. Happy to ship diagnostics in a build if that helps.

  1. Install a release build of an app using react-native-skia 3.9.1 on a moto g54 5G (Android 15) or moto g73 5G (Android 14).
  2. Open a screen with any <Canvas>.
  3. The canvas stays blank. On startup, react-native-skia logs:
[react-native-skia] React Native Skia renders with Vulkan (Vulkan 1.1 or later) and found no GPU adapter meeting the WebGPU core requirements on this device. Adapters found: [Null: Null backend] v2 (react-native-skia@2) renders with OpenGL ES on devices without Vulkan.

Skia.gpu.isAvailable is false. The same build renders correctly on iOS and on other Android devices.

Snack, Code Example, Screenshot, or Link to Repository

import { Canvas, Circle, Skia } from "react-native-skia";
import { Text, View } from "react-native";

export default function App() {
  const gpu = Skia.gpu;
  return (
    <View style={{ flex: 1, paddingTop: 80 }}>
      <Text>isAvailable: {String(gpu.isAvailable)}</Text>
      <Text>backend: {gpu.backend}</Text>
      <Text>device: {gpu.device}</Text>
      <Text>error: {gpu.error}</Text>
      <Canvas style={{ width: 200, height: 200 }}>
        <Circle cx={100} cy={100} r={80} color="tomato" />
      </Canvas>
    </View>
  );
}

Agent-written content

Analysis from Claude Code, based on react-native-skia 3.9.1 sources and our production RUM data.

Where it fails. DawnUtils::getMatchedAdapter (cpp/rnskia/RNDawnUtils.h) asks for BackendType::Vulkan at FeatureLevel::Core and finds nothing. The error comes from describeMissingAdapter, which enumerates all backends at FeatureLevel::Compatibility, and on these phones it lists only the Null backend. So Dawn exposes no Vulkan adapter at all, at either feature level. The driver is rejected or fails to load before adapter selection.

How this differs from devices without WebGPU core. In the same data, older GPUs fail differently. Dawn does list the Vulkan adapter at Compatibility, then rejects it for Core:

Adapters found: [Vulkan: Mali-G71, Mali-G71: v1.r26p0-01eac0 26.0.0] [Null: Null backend]
Adapters found: [Vulkan: PowerVR Rogue GE8320, PowerVR Rogue Vulkan Driver: 1.13@5776728 1.386.1368] [Null: Null backend]

The moto g54 5G (Dimensity 7020) and moto g73 5G (Dimensity 930) are recent phones that should ship an Imagination BXM-8-256 Vulkan 1.3 driver. Getting no Vulkan adapter at all on them looks like a Dawn/driver incompatibility, not a device below v3's requirements.

Devices reporting Adapters found: [Null: Null backend] (production, last 30 days):

Device Android
moto g54 5G 15
moto g73 5G 14
OUKITEL WP60 15
HUAWEI ANE-LX1 9
HUAWEI RNE-L21 8

No OpenGL ES fallback is possible with the shipped binaries. The prebuilt libwebgpu_dawn.so from [email protected] (arm64-v8a) has Vulkan backend symbols (dawn::native::vulkan) but no OpenGL backend (dawn::native::opengl). That's also why no OpenGLES adapter shows in the Compatibility list, even though every Android device has GLES.

Questions:

  1. Is Dawn expected to enumerate a Vulkan adapter on Imagination BXM drivers? Is there a known blocklist or required extension that would filter them out before adapter creation?
  2. Would you consider a Compatibility-level Vulkan fallback in getMatchedAdapter for devices that list a Vulkan adapter only at Compatibility, like the Mali-G71 and GE8320 above? Or is that out of scope for Graphite?
  3. Is an OpenGL ES backend in the Dawn build on the roadmap for devices like these, or is v2 the recommended route?

emilhaugberg avatar Nov 17 '26 15:11 emilhaugberg