Skip to content

Spammy log messages on samsung devices with Impeller enabled. #160598

@junii03

Description

@junii03

Steps to reproduce

How to reproduce:
1.Update to flutter 3.27
2. Build And Run any project on android device
3. Inspect the logs

Reproducible on:
N/A, Samsung Galaxy S10+ 5G (SM-G977B), Android 11, GPU: Mali-G76

Expected results

No "mali.instrumentation.graph.work: key already added" messages in the logs

Actual results

Multiple "mali.instrumentation.graph.work: key already added" messages in the logs

Code sample

import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorSchemeSeed: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  final String title;

  const MyHomePage({
    super.key,
    required this.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(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            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),
      ),
    );
  }
}

Screenshots or Video

image

Logs

I/ViewRootImpl@bd2a991 [MainActivity] (23880): ViewPostime pointer 1 89 D/mali.instrumentation.graph.work(23880): key already added I/ViewRootImpl@bd2a991 [MainActivity] (23880): ViewPostIme pointer 0 I/ViewRootImpl@bd2a991 [MainActivity] (23880): ViewPostIme pointer 1 9 D/mali.instrumentation.graph.work(23880): key already added I/ViewRootImpl@bd2a991 [MainActivity] (23880): ViewPostIme pointer I/ViewRootImpl@bd2a991 [MainActivity] (23880): ViewPostIme pointer 1 I/ViewRootImpl@bd2a991 [MainActivity] (23880): ViewPostIme pointer I/ViewRootImpl@bd2a991 [MainActivity] (23880): ViewPostIme pointer 1 I/ViewRootImpl@bd2a991 [MainActivity] (23880): ViewPostIme pointer I/ViewRootImpl@bd2a991 [MainActivity] (23880): ViewPostIme pointer 1 34 D/mali.instrumentation.graph.work(23880): key already added I/ViewRootImpl@bd2a991 [MainActivity] (23880): ViewPostIme pointer 0 I/ViewRootImpl@bd2a991 [MainActivity] (23880): ViewPostIme pointer 1 22 D/mali.instrumentation.graph.work(23880): key already added I/ViewRootImpl@bd2a991 [MainActivity] (23880): ViewPostIme pointer 6 D/mali.instrumentation.graph.work(23880): key already added I/ViewRoot Impl@bd2a991 [MainActivity] (23880): ViewPostIme pointer 1 37 D/mali.instrumentation.graph.work(23880): key already added

Flutter Doctor output

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.1, on Pop!_OS 22.04 LTS 6.9.3-76060903-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Chrome - develop for the web
[✗] Linux toolchain - develop for Linux desktop
✗ clang++ is required for Linux development.
It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from
https://releases.llvm.org/
✗ CMake is required for Linux development.
It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded from
https://cmake.org/download/
✗ ninja is required for Linux development.
It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from
https://github.com/ninja-build/ninja/releases
✗ GTK 3.0 development libraries are required for Linux development.
They are likely available from your distribution (e.g.: apt install libgtk-3-dev)
[!] Android Studio (not installed)
[✓] VS Code (version 1.96.1)
[✓] Connected device (3 available)
[✓] Network resources

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/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