Closed
Description
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 git@github.com: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