Skip to content

Performance stuck on loading #9534

@GP4cK

Description

@GP4cK

I cannot open the performance tab while profiling my app.


DevTools version: 2.48.0
IDE: VSCode
Connected Device:
CPU / OS: arm64 (64 bit) android
Connected app type: Flutter native (profile build)
Dart Version: 3.9.2
Flutter Version: 3.35.4 / stable
Framework / Engine: d693b4b9db / c298091351

Here are the logs from chrome that I exported. Looks like an issue of buffer size. Hope that helps:
flutter_bootstrap.js:121 Attempting to load DevTools with skwasm renderer.
main.dart.mjs:688 Server HTTP API is available, using server for storage.
main.dart.mjs:688 Version: 2.48.0, Renderer: skwasm
main.dart.mjs:688 Successfully connected to DTD at: ws://127.0.0.1:63086/dYFOG2uoewc=
main.dart.mjs:690 DevTools log level changed to INFO
_1573 @ main.dart.mjs:690
main.dart.mjs:688 Attempted to call extension 'ext.flutter.inspector.structuredErrors', but no service with that name exists
main.dart.mjs:690 readyToResume: (106) Isolate must be paused
_1573 @ main.dart.mjs:690
$func37554 @ main.dart.wasm:0x59247b
$func37556 @ main.dart.wasm:0x5924b6
$func1318 @ zone.dart:1538
$func4792 @ main.dart.wasm:0x23ee3e
$func4796 @ zone.dart:1329
$func1635 @ stream_impl.dart:381
$func1632 @ stream_impl.dart:375
$func1621 @ stream_impl.dart:308
$func1619 @ broadcast_stream_controller.dart:385
$func1597 @ broadcast_stream_controller.dart:379
$func1587 @ broadcast_stream_controller.dart:257
$func4173 @ broadcast_stream_controller.dart:255
$func4168 @ logger.dart:238
$func5067 @ logger.dart:289
$func17068 @ isolate_manager.dart:272
$func1342 @ async_patch.dart:108
$func1346 @ main.dart.wasm:0x1e70cb
$func1319 @ zone.dart:1560
$func4791 @ main.dart.wasm:0x23ee0a
$func1270 @ future_impl.dart:237
$func1267 @ future_impl.dart:738
$func1234 @ future_impl.dart:832
$func1237 @ main.dart.wasm:0x1e574b
$func1253 @ zone.dart:1525
$func4858 @ main.dart.wasm:0x23f6a0
$func4795 @ zone.dart:1422
$func4798 @ zone.dart:1321
$func4878 @ zone.dart:1362
$func4880 @ main.dart.wasm:0x23f99e
$func1246 @ schedule_microtask.dart:42
$func1248 @ main.dart.wasm:0x1e59c1
$$invokeCallback @ timer_patch.dart:71
(anonymous) @ main.dart.mjs:652
main.dart.mjs:66 InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly
in the middle of a field. This could either mean that the input
has been truncated or that an embedded message misreported its
own length.

Note that the buffer containing the message has 68412917 bytes, but
CodedBufferReader was allowed to parse only 67108864 bytes.

main.dart.mjs:66     at errors_patch.dart:19:39
    at coded_buffer_reader.dart:34:7
    at coded_buffer_reader.dart:110:7
    at coded_buffer.dart:186:15
    at generated_message.dart:192:5
    at main.dart.wasm:0x53cd5b
    at highlighter.dart:541:28
    at timeline_events_controller.dart:556:3
errors_patch.dart:39 Uncaught Exception {}
$func968 @ errors_patch.dart:39
$func981 @ errors_patch.dart:19
$$invokeCallback @ timer_patch.dart:80
(anonymous) @ main.dart.mjs:652
main.dart.mjs:66 ParallelWaitError: InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly
in the middle of a field. This could either mean that the input
has been truncated or that an embedded message misreported its
own length.

Note that the buffer containing the message has 68412917 bytes, but
CodedBufferReader was allowed to parse only 67108864 bytes.

main.dart.mjs:66     at errors_patch.dart:19:39
    at coded_buffer_reader.dart:34:7
    at coded_buffer_reader.dart:110:7
    at coded_buffer.dart:186:15
    at generated_message.dart:192:5
    at main.dart.wasm:0x53cd5b
    at highlighter.dart:541:28
    at timeline_events_controller.dart:556:3
errors_patch.dart:39 Uncaught Exception {}
$func968 @ errors_patch.dart:39
$func981 @ errors_patch.dart:19
$$invokeCallback @ timer_patch.dart:80
(anonymous) @ main.dart.mjs:652
main.dart.mjs:691 [zoneGuarded]: InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly
in the middle of a field. This could either mean that the input
has been truncated or that an embedded message misreported its
own length.

Note that the buffer containing the message has 68412917 bytes, but
CodedBufferReader was allowed to parse only 67108864 bytes.

file:///b/s/w/ir/x/w/rc/tmpzamrns9q/hosted/pub.dev/protobuf-3.1.0/lib/src/protobuf/coded_buffer_reader.dart 34:7                             _throwTruncatedMessageError
file:///b/s/w/ir/x/w/rc/tmpzamrns9q/hosted/pub.dev/protobuf-3.1.0/lib/src/protobuf/coded_buffer_reader.dart 110:7                            readMessage
file:///b/s/w/ir/x/w/rc/tmpzamrns9q/hosted/pub.dev/protobuf-3.1.0/lib/src/protobuf/coded_buffer.dart 186:15                                  _mergeFromCodedBufferReader
file:///b/s/w/ir/x/w/rc/tmpzamrns9q/hosted/pub.dev/protobuf-3.1.0/lib/src/protobuf/generated_message.dart 192:5                              mergeFromBuffer
file:///b/s/w/ir/x/w/rc/tmpzamrns9q/hosted/pub.dev/source_span-1.10.1/lib/src/highlighter.dart 541:28                                        _colorize
file:///b/s/w/ir/x/w/devtools/packages/devtools_app/lib/src/screens/performance/panes/timeline_events/timeline_events_controller.dart 556:3  _traceFromBinary

_1574 @ main.dart.mjs:691
$func37554 @ main.dart.wasm:0x592495
$func37556 @ main.dart.wasm:0x5924b6
$func1318 @ zone.dart:1546
$func4792 @ main.dart.wasm:0x23ee3e
$func4796 @ zone.dart:1329
$func1635 @ stream_impl.dart:381
$func1632 @ stream_impl.dart:375
$func1621 @ stream_impl.dart:308
$func1619 @ broadcast_stream_controller.dart:385
$func1597 @ broadcast_stream_controller.dart:379
$func1587 @ broadcast_stream_controller.dart:257
$func4173 @ broadcast_stream_controller.dart:255
$func4168 @ logger.dart:238
$func4897 @ logger.dart:296
$func4895 @ app_error_handling.dart:99
$func1341 @ async_patch.dart:105
$func1344 @ main.dart.wasm:0x1e70a1
$func1317 @ zone.dart:1849
$func1270 @ future_impl.dart:222
$func1303 @ future_impl.dart:720
$func1338 @ future_impl.dart:715
$func1340 @ main.dart.wasm:0x1e7026
$func1246 @ schedule_microtask.dart:42
$func1248 @ main.dart.wasm:0x1e59c1
$$invokeCallback @ timer_patch.dart:71
(anonymous) @ main.dart.mjs:652
main.dart.mjs:691 [zoneGuarded]: ParallelWaitError: InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly
in the middle of a field. This could either mean that the input
has been truncated or that an embedded message misreported its
own length.

Note that the buffer containing the message has 68412917 bytes, but
CodedBufferReader was allowed to parse only 67108864 bytes.

file:///b/s/w/ir/x/w/rc/tmpzamrns9q/hosted/pub.dev/protobuf-3.1.0/lib/src/protobuf/coded_buffer_reader.dart 34:7                             _throwTruncatedMessageError
file:///b/s/w/ir/x/w/rc/tmpzamrns9q/hosted/pub.dev/protobuf-3.1.0/lib/src/protobuf/coded_buffer_reader.dart 110:7                            readMessage
file:///b/s/w/ir/x/w/rc/tmpzamrns9q/hosted/pub.dev/protobuf-3.1.0/lib/src/protobuf/coded_buffer.dart 186:15                                  _mergeFromCodedBufferReader
file:///b/s/w/ir/x/w/rc/tmpzamrns9q/hosted/pub.dev/protobuf-3.1.0/lib/src/protobuf/generated_message.dart 192:5                              mergeFromBuffer
file:///b/s/w/ir/x/w/rc/tmpzamrns9q/hosted/pub.dev/source_span-1.10.1/lib/src/highlighter.dart 541:28                                        _colorize
file:///b/s/w/ir/x/w/devtools/packages/devtools_app/lib/src/screens/performance/panes/timeline_events/timeline_events_controller.dart 556:3  _traceFromBinary

_1574 @ main.dart.mjs:691
$func37554 @ main.dart.wasm:0x592495
$func37556 @ main.dart.wasm:0x5924b6
$func1318 @ zone.dart:1546
$func4792 @ main.dart.wasm:0x23ee3e
$func4796 @ zone.dart:1329
$func1635 @ stream_impl.dart:381
$func1632 @ stream_impl.dart:375
$func1621 @ stream_impl.dart:308
$func1619 @ broadcast_stream_controller.dart:385
$func1597 @ broadcast_stream_controller.dart:379
$func1587 @ broadcast_stream_controller.dart:257
$func4173 @ broadcast_stream_controller.dart:255
$func4168 @ logger.dart:238
$func4897 @ logger.dart:296
$func4895 @ app_error_handling.dart:99
$func1341 @ async_patch.dart:105
$func1344 @ main.dart.wasm:0x1e70a1
$func1317 @ zone.dart:1849
$func1270 @ future_impl.dart:222
$func1303 @ future_impl.dart:720
$func1338 @ future_impl.dart:715
$func1340 @ main.dart.wasm:0x1e7026
$func1246 @ schedule_microtask.dart:42
$func1248 @ main.dart.wasm:0x1e59c1
$$invokeCallback @ timer_patch.dart:71
(anonymous) @ main.dart.mjs:652

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions