-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
the Dart compiler exited unexpectedly, if I place a breakpoint inside a certain function #53382
Comments
I created a Flutter app and made the contents of import 'package:flutter/material.dart';
import 'package:functional_listener/functional_listener.dart';
class C {
Object error = 123;
}
void main() {
final listenable1 = ValueNotifier<C?>(C());
final listenable2 = ValueNotifier<C>(C());
final mergedListenable = listenable1.mergeWith([
listenable2,
]);
final subscription = mergedListenable.listen((x, _) {
final apiException = x?.error;
print(apiException);
});
listenable1.value = C();
subscription.cancel();
} I was able to set a breakpoint on the |
unfortunately I couldn't reproduce it with the example from you. I can still reproduce it in our real app project. Still wondering why it crashes in #0 int._handleFormatError (dart:core-patch/integers_patch.dart:126:5) and the stack trace seems to have no connection to my code whatsoever. Is there anything that I can add to my code to get more details? |
Since you're using VSCode, can you please follow these instructions and paste the contents of the log here? |
Looks like Dart Code is trying to get the value of |
|
oh, and its a callable class |
/cc @johnniwinther @jensjoha - seems to be related to the expression evaluation. |
This might be related to #53453 where the crash also originates from @derekxu16 @mraleph Do you know where these values are created? |
@aam Do you know where calls to I can see the change that added the |
@johnniwinther wrote
Flutter registers |
@johnniwinther do you suspect that your fix for #53453 also fixes this issue? |
Yes. |
@escamoteur if you try switching to the |
A bit busy at the moment will try today or tomorrow |
I would really love to but I get suddenly this errors if I switch to master channel
|
@derekxu16 Can we close this, given your verification of the fix for the similar error in #53637 ? |
SGTM |
It only happens when I set a breakpoint inside
if I remove the breakpoint the app doesn't crash.
I also have no idea where I should do an int.parse to get such an exception. also thee reported file as place where it happens doesn't make sense as the listen function only looks like this
happens on: Flutter (Channel stable, 3.13.1, on Microsoft Windows [Version 10.0.19045.3324], locale de-DE)
The text was updated successfully, but these errors were encountered: