Skip to content

Engine crash during unconstrained layout #31650

@tvolkert

Description

@tvolkert
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    title: 'Crasher',
    home: Scaffold(
      body: SafeArea(
        child: Crasher(),
      ),
    ),
  ));
}

class Crasher extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    Widget child = ListWheelScrollView(
      itemExtent: 20,
      onSelectedItemChanged: (int index) {},
      children: <Widget>[
        Text('item'),
      ],
    );

    return Material(
      child: FittedBox(
        child: Center(
          child: child,
        ),
      ),
    );
  }
}

Running this yields the following crash in the engine:

F/flutter (13463): [FATAL:flutter/flow/layers/transform_layer.cc(28)] Check failed: transform_.isFinite(). 
F/libc    (13463): Fatal signal 6 (SIGABRT), code -6 in tid 13480 (1.gpu)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Metadata

Metadata

Assignees

Labels

c: crashStack traces logged to the consolec: regressionIt was better in the past than it is nowengineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions