-
Notifications
You must be signed in to change notification settings - Fork 345
Closed
Description
repro steps:
- run flutter gallery as a web app
- connect to DevTools
@grouma @jacob314
There are some dwds frames on the call stack - not sure if that is the cause, but worth noting.
[ERROR:flutter/lib/ui/ui_dart_state.cc(213)] Unhandled Exception: getObject: (-32603) getObject: Unexpected error from chrome devtools:
text: Uncaught
exception:
description: null
type: string
value: cannot find library for package:gallery/demos/material/material_demos.dart
attempted JS eval: ` (function() {
var sdkUtils = require('dart_sdk').dart;
var library = sdkUtils.getLibrary('package:gallery/demos/material/material_demos.dart');
if (!library) throw 'cannot find library for package:gallery/demos/material/material_demos.dart';
var result = {};
var classes = Object.values(Object.getOwnPropertyDescriptors(library))
.filter((p) => 'value' in p)
.map((p) => p.value)
.filter((l) => l && sdkUtils.isType(l));
var classList = classes.map(function(clazz) {
var descriptor = {
'name': clazz.name,
'dartName': sdkUtils.typeName(clazz)
};
return descriptor;
});
result['classes'] = classList;
return result;
})()
`
#0 handleErrorIfPresent (package:dwds/src/utilities/shared.dart:56:5)
#1 LibraryHelper._constructLibrary (package:dwds/src/debugging/libraries.dart:94:5)
<asynchronous suspension>
#2 LibraryHelper.libraryFor (package:dwds/src/debugging/libraries.dart:59:44)
<asynchronous suspension>
#3 AppInspector.getObject (package:dwds/src/debugging/inspector.dart:330:21)
<asynchronous suspension>
#4 VmServerConnection._delegateRequest (package:vm_service/src/vm_service.dart:1378:22)
<asynchronous suspension>
#0 new _OutstandingRequest (package:vm_service/src/vm_service.dart:1606:45)
#1 VmService._call (package:vm_service/src/vm_service.dart:2078:21)
#2 VmService.getObject (package:vm_service/src/vm_service.dart:1868:7)
#3 VmServiceWrapper.getObject (package:devtools_app/src/vm_service_wrapper.dart:396:48)
#4 InspectorService._updateLocalClasses (package:devtools_app/src/inspector/inspector_service.dart:272:16)
<asynchronous suspension>
#5 InspectorService._onRootDirectoriesChanged (package:devtools_app/src/inspector/inspector_service.dart:262:5)
<asynchronous suspension>
#6 InspectorService.inferPubRootDirectoryIfNeeded (package:devtools_app/src/inspector/inspector_service.dart:327:5)
<asynchronous suspension>
#7 InspectorController.maybeLoadUI (package:devtools_app/src/inspector/inspector_controller.dart:391:26)
<asynchronous suspension>
#8 InspectorController.maybeLoadUI (package:devtools_app/src/inspector/inspector_controller.dart:405:9)
<asynchronous suspension>
LucaZiegler
Metadata
Metadata
Assignees
Labels
No labels