Skip to content

[Impeller] Vulkan driver crash on Huawei mate60 phone. #156623

@yaochangliang159

Description

@yaochangliang159

Steps to reproduce

1.create new flutter project with flutter sdk 3.26
2.run app to huawei mate60 or mate x5
3.APP crash

Expected results

i Expected that flutter 3.26 build an android app can work well on huawei mate60、huawei mate X5

Actual results

Build fingerprint: 'HUAWEI/BRA-AL00/HWBRA:12/HUAWEIBRA-AL00/104.2.0.138C00:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2024-10-12 05:39:28.189144429+0800
Process uptime: 0s
Cmdline: com.example.test001
pid: 4541, tid: 14792, name: example.test001  >>> com.example.test001 <<<
uid: 10502
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
    x0  3f77f7f83f7efeff  x1  0000007870312960  x2  0000000000000000  x3  0000000000000000
    x4  0000000000000000  x5  0000007738229d00  x6  00000077bb815030  x7  0000007736b341a0
    x8  0000007872292230  x9  0000000000000003  x10 0000000000000000  x11 0000000000000000
    x12 0000007736b49650  x13 00000077bb815450  x14 0000007738228830  x15 000000788057deb8
    x16 00000077a431b740  x17 0000007880552284  x18 0000007720e9c000  x19 0000007721b111e0
    x20 0000007721b11100  x21 0000007721b11208  x22 0000007721b11238  x23 000000773468115b
    x24 0000007736b352e0  x25 0000007721a1ba10  x26 0000000000000000  x27 0000007743a95100
    x28 00000000aaaaaaab  x29 0000007721a1b960
    lr  00000077347b9c60  sp  0000007721a1b960  pc  0000000000000000  pst 0000000020001400
backtrace:
      #00 pc 0000000000000000  <unknown>
      #01 pc 0000000000165c5c  /vendor/lib64/hw/vulkan.hvgr_v200.so (BuildId: 44d3bc026e1dcb7c91763d53eabba274)
      #02 pc 00000000002f9e68  /vendor/lib64/hw/vulkan.hvgr_v200.so (BuildId: 44d3bc026e1dcb7c91763d53eabba274)
      #03 pc 00000000002fb4f0  /vendor/lib64/hw/vulkan.hvgr_v200.so (BuildId: 44d3bc026e1dcb7c91763d53eabba274)
      #04 pc 0000000000234210  /vendor/lib64/hw/vulkan.hvgr_v200.so (BuildId: 44d3bc026e1dcb7c91763d53eabba274)
      #05 pc 00000000000fc370  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+176) (BuildId: 82f181b5d9da8999785cca84af3dad4b)
      #06 pc 000000000009a4fc  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+40) (BuildId: 82f181b5d9da8999785cca84af3dad4b)
Lost connection to device.
the Dart compiler exited unexpectedly.

Code sample

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(

        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});


  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {

      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {

    return Scaffold(
      appBar: AppBar(
        // TRY THIS: Try changing the color here to a specific color (to
        // Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
        // change color while the other colors stay the same.
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(

          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headlineMedium,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

this is my demo code(720KB),it is jush a new flutter project
test001.zip

Screenshots or Video

No response

Logs

Launching lib/main.dart on BRA AL00 in debug mode...
Running Gradle task 'assembleDebug'...
✓ Built build/app/outputs/flutter-apk/app-debug.apk
Installing build/app/outputs/flutter-apk/app-debug.apk...
I/flutter ( 4541): [IMPORTANT:flutter/shell/platform/android/android_context_vk_impeller.cc(60)] Using the Impeller rendering backend (Vulkan).
Debug service listening on ws://127.0.0.1:56879/DlLcfkjhzxQ=/ws
Syncing files to device BRA AL00...
I/example.test00( 4541): Compiler allocated 5042KB to compile void android.view.ViewRootImpl.performTraversals()
I/AwareBitmapCacher( 4541): init lrucache size: 4194304 pid=4541
I/HwViewRootImpl( 4541): removeInvalidNode jank list is null
I/DecorView[]( 4541): pkgName:com.example.test001 old windowMode:1 new windoMode:1, isFixedSize:false, isStackNeedCaptionView:true
D/ProfileInstaller( 4541): Installing profile for com.example.test001
D/stylus  ( 4541): init stylus touchlistener.
I/Hwaps   ( 4541): APS: EventAnalyzed: initAPS: version is 11.0.0.4
D/Hwaps   ( 4541): Fpsrequest create,type:EXACTLY_IDENTIFY
D/Hwaps   ( 4541): Fpsrequest create,type:EXACTLY_IDENTIFY
D/Hwaps   ( 4541): Fpsrequest create,type:OPENGL_SETTING
D/Hwaps   ( 4541): FpsController create
D/Hwaps   ( 4541): APS: EventAnalyzed: reInitFpsPara :mBaseFps = 120; mMaxFps = 120
I/HwViewRootImpl( 4541): Add sceneId 11 topId: 10
W/Settings( 4541): Setting device_provisioned has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
V/HiTouch_HiTouchSensor( 4541): User setup is finished.
D/HwDragEnhancementImpl( 4541): handleTimerDrag: false
D/HwDragEnhancementImpl( 4541): handleTimerDrag: false
W/HwApsManager( 4541): HwApsManagerService, registerCallback, start !
D/Hwaps   ( 4541): APS: EventAnalyzed: registerCallbackInApsManagerService, mPkgName:com.example.test001; result = true
D/HwViewRootImpl( 4541): [DetectViewsLocationRunner] current resolutionScale: 1.0
I/HwViewRootImpl( 4541): remove sceneId 11 topId: 10
D/WebViewDragEnhancement( 4541): dragReset.
D/WebViewDragEnhancement( 4541): dragReset cacheSize = 0
V/AudioManager( 4541): querySoundEffectsEnabled...
I/AudioManager( 4541): querySoundEffectsEnabled fail id: 0
F/libc    ( 4541): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 14792 (example.test001), pid 4541 (example.test001)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'HUAWEI/BRA-AL00/HWBRA:12/HUAWEIBRA-AL00/104.2.0.138C00:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2024-10-12 05:39:28.189144429+0800
Process uptime: 0s
Cmdline: com.example.test001
pid: 4541, tid: 14792, name: example.test001  >>> com.example.test001 <<<
uid: 10502
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
    x0  3f77f7f83f7efeff  x1  0000007870312960  x2  0000000000000000  x3  0000000000000000
    x4  0000000000000000  x5  0000007738229d00  x6  00000077bb815030  x7  0000007736b341a0
    x8  0000007872292230  x9  0000000000000003  x10 0000000000000000  x11 0000000000000000
    x12 0000007736b49650  x13 00000077bb815450  x14 0000007738228830  x15 000000788057deb8
    x16 00000077a431b740  x17 0000007880552284  x18 0000007720e9c000  x19 0000007721b111e0
    x20 0000007721b11100  x21 0000007721b11208  x22 0000007721b11238  x23 000000773468115b
    x24 0000007736b352e0  x25 0000007721a1ba10  x26 0000000000000000  x27 0000007743a95100
    x28 00000000aaaaaaab  x29 0000007721a1b960
    lr  00000077347b9c60  sp  0000007721a1b960  pc  0000000000000000  pst 0000000020001400
backtrace:
      #00 pc 0000000000000000  <unknown>
      #01 pc 0000000000165c5c  /vendor/lib64/hw/vulkan.hvgr_v200.so (BuildId: 44d3bc026e1dcb7c91763d53eabba274)
      #02 pc 00000000002f9e68  /vendor/lib64/hw/vulkan.hvgr_v200.so (BuildId: 44d3bc026e1dcb7c91763d53eabba274)
      #03 pc 00000000002fb4f0  /vendor/lib64/hw/vulkan.hvgr_v200.so (BuildId: 44d3bc026e1dcb7c91763d53eabba274)
      #04 pc 0000000000234210  /vendor/lib64/hw/vulkan.hvgr_v200.so (BuildId: 44d3bc026e1dcb7c91763d53eabba274)
      #05 pc 00000000000fc370  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+176) (BuildId: 82f181b5d9da8999785cca84af3dad4b)
      #06 pc 000000000009a4fc  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+40) (BuildId: 82f181b5d9da8999785cca84af3dad4b)
Lost connection to device.
the Dart compiler exited unexpectedly.

Flutter Doctor output

Last login: Fri Oct 11 20:50:04 on ttys000
yaochangliang@yaochangliang ~ % flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 3.26.0-1.0.pre.414, on macOS 12.7.6 21H1320
    darwin-x64, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor
      --android-licenses
[!] Xcode - develop for iOS and macOS (Xcode 14.2)
    ! Flutter recommends a minimum Xcode version of 15.
      Download the latest version or update via the Mac App Store.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
[✓] Connected device (2 available)
    ! Device atc.alltesting.cn:48512 is offline.
[✓] Network resources

! Doctor found issues in 2 categories.
yaochangliang@yaochangliang ~ % 

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: crashStack traces logged to the consolee: device-specificOnly manifests on certain devicese: impellerImpeller rendering backend issues and features requestse: impeller-naughty-driverDevices & drivers that may be behaving unexpectedly and may need workarounds.engineflutter/engine related. See also e: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions