-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getObject: (-32603) Unexpected DWDS error for getObject: Unsupported operation: Only libraries, instances, classes, and scripts are supported for getObject #2446
Comments
Error thrown here: webdev/dwds/lib/src/debugging/inspector.dart Lines 416 to 417 in 9ada46f
We'll have to take a closer look into how we might be able to grab that information and pass it along. |
I encountered the same issue in my code when I attempted to cast() an Object List. |
@elliette seems to think this is an issue that has come up before. She'll share the context if she can find it, but otherwise we'll have to dig in to this to figure out what's going on. |
This is the issue I was thinking of:
This seems like a separate issue though |
Thank you for the reproduction instructions, @Jordan-Nelson. The problem here is that the ability to request an instance of a
It looks some DDC changes will be needed to fix this. @Markzipan and @nshahan, can you take a look at this when you get the chance? Edit: I originally didn't include step 3 in my reproduction instructions becuase I didn't think it was necessary, but it turns out that it is. |
@natebiggs |
I tried to repro this locally using the instructions @derekxu16 listed above but I was unable to. What version of Dart are you using when seeing this failure? |
I just tried running it again and saw the same error.
|
Chatted with @derekxu16 offline and we realized this failure is only reproducible if you also add the following to the test group 'instanceRef' in
|
Okay I was able to figure out that the issue here is with this invocation of the
The issue here is that we are calling the |
Landing this fix: https://dart-review.googlesource.com/c/sdk/+/380220 This fix should get included in the next Dart release. Until then users will get errors if the same Stream object is queried multiple times. |
The DDC runtime invokes the 'length' getter on every object for which debug info is requested. This includes objects where the 'length' getter may be present but not intended to be called. (e.g. a Stream object). The vm_service outlines specific guidelines for the 'length' value of a debug instance ref: https://github.com/dart-lang/sdk/blob/main/pkg/vm_service/lib/src/vm_service.dart#L4621 This updates the runtime debugger logic to align with the vm_service expectations. Bug: dart-lang/webdev#2446 Change-Id: Ia567cdc7df12957834b61a8fe1ac54e02a180f13 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/380220 Reviewed-by: Nicholas Shahan <nshahan@google.com> Commit-Queue: Nate Biggs <natebiggs@google.com>
I am unable to view a getter in Dart's dev tools with the following app on web only. I am unsure if this is supposed to work, but I don't see why it shouldn't.
Steps to repro:
The text was updated successfully, but these errors were encountered: