Skip to content

[Impeller] Crash: fatal error: "Invalid MTLPixelFormat" #125276

@luckysmg

Description

@luckysmg

Branch: master

flutter framework ref: 7aa01f53f84103063c9cb5e120d3b0803bdd03cf

Log

../../third_party/skia/src/gpu/ganesh/mtl/GrMtlCaps.mm:630: fatal error: "Invalid MTLPixelFormat"
* thread #10, name = 'io.flutter.1.raster', stop reason = EXC_BREAKPOINT (code=1, subcode=0x10345d514)
    frame #0: 0x000000010345d514 Flutter`GrMtlCaps::GetFormatIndex(MTLPixelFormat) + 80
Flutter`GrMtlCaps::GetFormatIndex:
->  0x10345d514 <+80>: brk    #0x1
    0x10345d518 <+84>: ldp    x29, x30, [sp, #0x10]
    0x10345d51c <+88>: add    sp, sp, #0x20
    0x10345d520 <+92>: ret    
Target 0: (Runner) stopped.
Lost connection to device.

Device

iPhone13Pro iOS 16.3.1

Video

RPReplay_Final1682045999.MP4

Code to reproduce:

just tap the TextField.

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: 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 BugScreen(),
    );
  }
}

class BugScreen extends StatefulWidget {
  const BugScreen({Key? key}) : super(key: key);

  @override
  State<BugScreen> createState() => _BugScreenState();
}

class _BugScreenState extends State<BugScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Center(child: TextField(),),
    );
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: fatal crashCrashes that terminate the processe: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions