flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.58k stars 324 forks source link

Reporting error: Error collecting raster stats: _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 #8132

Closed corepuncher closed 1 month ago

corepuncher commented 2 months ago

It's been quite a while since I have been able to take raster snapshots. Not sure what changed.

When I click "Take Snapshot", here is what pops up in bottom right:

Error collecting raster stats: _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.


DevTools version: 2.34.3 Connected Device: CPU / OS: arm64 (64 bit) android Connected app type: Flutter native (profile build) Dart Version: 3.4.3 Flutter Version: 3.22.2 / stable Framework / Engine: 761747bfc5 / edd8546116

elliette commented 1 month ago

Thanks for the report! Unfortunately the Raster Stats feature was removed because it is not supported for Impeller and provides misleading and inconsistent results for Skia.