Closed bleonard252 closed 3 weeks ago
Running DevTools native (which is a source debug build from the 2.34.2 branch) gives me this output:
flutter: [ERROR]: [zoneGuarded]: [Sentinel kind: Collected, valueAsString: <collected>] from getObject()
flutter: [ERROR]: [PlatformDispatcher]: [Sentinel kind: Collected, valueAsString: <collected>] from getObject()
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: [Sentinel kind: Collected, valueAsString: <collected>] from getObject()
#0 new _OutstandingRequest (package:vm_service/src/vm_service.dart:265:34)
#1 VmService._call.<anonymous closure> (package:vm_service/src/vm_service.dart:1772:25)
#2 VmService._call (package:vm_service/src/vm_service.dart:1784:8)
#3 VmService.getObject (package:vm_service/src/vm_service.dart:1003:7)
#4 VmServiceWrapper.getObject (package:devtools_app/src/service/vm_service_wrapper.dart:164:18)
#5 VmServiceExtension.retrieveFullStringValue (package:devtools_app_shared/src/service/service_utils.dart:25:26)
#6 _retrieveFullStringValue (package:devtools_app/src/screens/logging/logging_controller.dart:58:13)
#7 LoggingController._handleDeveloperLogEvent.<anonymous closure> (package:devtools_app/src/screens/logging/logging_controller.dart:398:19)
#8 LogData.compute (package:devtools_app/src/screens/logging/logging_controller.dart:765:38)
#9 _LogDetailsState._computeLogDetails (package:devtools_app/src/screens/logging/_log_details.dart:48:25)
#10 _LogDetailsState.didUpdateWidget (package:devtools_app/src/screens/logging/_log_details.dart:42:17)
#11 StatefulElement.update (package:flutter/src/widgets/framework.dart:5659:55)
#12 Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#13 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#14 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#15 Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#16 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2905:19)
#17 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:1136:21)
#18 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:443:5)
#19 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1392:15)
#20 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1313:9)
#21 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1171:5)
#22 _rootRun (dart:async/zone.dart:1399:13)
#23 _CustomZone.run (dart:async/zone.dart:1301:19)
#24 _CustomZone.runGuarded (dart:async/zone.dart:1209:7)
#25 _invoke (dart:ui/hooks.dart:314:10)
#26 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:419:5)
#27 _drawFrame (dart:ui/hooks.dart:283:31)
I think it means whatever it's trying to get (the message?) has been garbage-collected. This feels like something a logging tool for a garbage-collected language would account for, yes?
This should be fixed as part of the work for V2 of the logging page. Once that work lands, we should verify this behavior does not reproduce.
I've tested the latest master devtools and the issue is solved! There is a lot of useless-to-me logging metadata JSON though, maybe that shouldn't show up in the list (by default)...
Thank you so much. The logging view is so much more useful now!
When trying to view a long log message or a log with an attached object or stack trace, the following sometimes occurs. Sometimes it works as intended but I haven't been able to figure out what the common thread is, but it only occurs with messages that don't fit in the summary view (approximately 128 characters).
The behavior happens in both Firefox and Chrome, on Linux, and both show the following messages in the browser console each time such an entry is clicked (this one copied from Chrome).
Full log message as text
If it helps, the source code I've been seeing this with is at https://source.blakes.dev/me/spades-flutter.
DevTools version: 2.33.1 Connected Device: CPU / OS: x64 (64 bit) linux Connected app type: Flutter native (debug build) Dart Version: 3.4.0-190.1.beta Flutter Version: 3.21.0-1.0.pre.2 / beta Framework / Engine: c398442c35 / 0d4f78c952