Skip to content

Hitting "j" in "flutter run" when the app hasn't rendered a frame crashes the tool #132169

Closed

Description

@Hixie

Hitting "j" in "flutter run" when the app hasn't rendered a frame crashes the tool:

_flutter.renderFrameWithRasterStats: (-32000) Failed to render the last frame with raster stats. Rasterizer
does not hold a valid last layer tree. This could happen if this method was invoked before a frame was
rendered
#0      new _OutstandingRequest (package:vm_service/src/vm_service.dart:1929:45)
#1      VmService._call (package:vm_service/src/vm_service.dart:2494:21)
#2      VmService.callServiceExtension (package:vm_service/src/vm_service.dart:2465:14)
#3      VmService.callMethod (package:vm_service/src/vm_service.dart:2447:12)
#4      FlutterVmService.callMethodWrapper (package:flutter_tools/src/vmservice.dart:579:28)
#5      FlutterVmService.renderFrameWithRasterStats (package:flutter_tools/src/vmservice.dart:679:49)
#6      ResidentHandlers.debugFrameJankMetrics (package:flutter_tools/src/resident_runner.dart:728:35)
<asynchronous suspension>
#7      TerminalHandler.processTerminalInput (package:flutter_tools/src/resident_runner.dart:1831:7)
<asynchronous suspension>


Application finished.

Oops; flutter has exited unexpectedly: "_flutter.renderFrameWithRasterStats: (-32000) Failed to render the
last frame with raster stats. Rasterizer does not hold a valid last layer tree. This could happen if this
method was invoked before a frame was rendered".

Logs

RPCError

#0      new _OutstandingRequest (package:vm_service/src/vm_service.dart:1929:45)
#1      VmService._call (package:vm_service/src/vm_service.dart:2494:21)
#2      VmService.callServiceExtension (package:vm_service/src/vm_service.dart:2465:14)
#3      VmService.callMethod (package:vm_service/src/vm_service.dart:2447:12)
#4      FlutterVmService.callMethodWrapper (package:flutter_tools/src/vmservice.dart:579:28)
#5      FlutterVmService.renderFrameWithRasterStats (package:flutter_tools/src/vmservice.dart:679:49)
#6      ResidentHandlers.debugFrameJankMetrics (package:flutter_tools/src/resident_runner.dart:728:35)
<asynchronous suspension>
#7      TerminalHandler.processTerminalInput (package:flutter_tools/src/resident_runner.dart:1831:7)
<asynchronous suspension>
�[33m[!]�[39m Flutter (Channel [user-branch], 3.13.0-19.0.pre.88, on Ubuntu 22.04.2 LTS 5.15.0-76-generic, locale
    C.UTF-8)
    �[33m!�[39m Flutter version 3.13.0-19.0.pre.88 on channel [user-branch] at /home/ianh/dev/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at
      https://flutter.dev/docs/get-started/install.
    �[32m•�[39m Upstream repository [email protected]:flutter/flutter.git
    �[32m•�[39m Framework revision 5970321fb2 (2 minutes ago), 2023-08-08 15:20:16 -0700
    �[32m•�[39m Engine revision 22bd35a193
    �[32m•�[39m Dart version 3.2.0 (build 3.2.0-42.0.dev)
    �[32m•�[39m DevTools version 2.26.1
    �[32m•�[39m If those were intentional, you can disregard the above warnings; however it is recommended to use "git"
      directly to perform update checks and upgrades.

�[32m[✓]�[39m Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    �[32m•�[39m Android SDK at /home/ianh/Android/Sdk
    �[32m•�[39m Platform android-33, build-tools 33.0.1
    �[32m•�[39m Java binary at: /home/ianh/bin/android-studio/jre/bin/java
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    �[32m•�[39m All Android licenses accepted.

�[32m[✓]�[39m Linux toolchain - develop for Linux desktop
    �[32m•�[39m Ubuntu clang version 14.0.0-1ubuntu1.1
    �[32m•�[39m cmake version 3.22.1
    �[32m•�[39m ninja version 1.10.1
    �[32m•�[39m pkg-config version 0.29.2

�[32m[✓]�[39m Android Studio (version 2020.3)
    �[32m•�[39m Android Studio at /home/ianh/bin/android-studio
    �[32m•�[39m Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    �[32m•�[39m Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

�[32m[✓]�[39m IntelliJ IDEA Community Edition (version 2022.1)
    �[32m•�[39m IntelliJ at /home/ianh/bin/idea-IC-221.5921.22
    �[32m•�[39m Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    �[32m•�[39m Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

�[32m[✓]�[39m Connected device (1 available)
    �[32m•�[39m Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.2 LTS 5.15.0-76-generic

�[32m[✓]�[39m Network resources
    �[32m•�[39m All expected network resources are available.

�[33m!�[39m Doctor found issues in 1 category.

Flutter Application Metadata

Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: main
Creation framework version: daf5827

Activity

  1. added
    c: crashStack traces logged to the console
    toolAffects the "flutter" command-line tool. See also t: labels.
    c: fatal crashCrashes that terminate the process
    on Aug 8, 2023
  2. added
    P2Important issues not at the top of the work list
    triaged-toolTriaged by Flutter Tool team
    on Sep 12, 2023
  3. github-actions commented on Aug 12, 2024

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: crashStack traces logged to the consolec: fatal crashCrashes that terminate the processteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions