-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
assembler_arm64.h: 218: error: unreachable code #82278
Comments
@RussianDragon Looks similar to #64526. Are you using too many optional parameters ? If so, can you try to make them named instead of positional and see if it works ? Also, I am not sure if the fix for #64526 reached stable or not. But can you try to switch to latest master and try again to see if you still get same error ? Thanks. |
I am sorry, but i dont understand you... What do you mian "many optional parameters"?
I try different versions flutter, but have same result |
@RussianDragon |
When running on iOS devices I get the following crash:
When looking at |
I not using "array optional" parameters. Off course i user "parameters in braces {}". I'm afraid, if delete all braces, this is not a solution this problem I can remove the group check in the example
this removes the problem, but is not a solution too... |
Yes. I an assign events. Which are then called in mobx. Maybe there is an opportunity to see the compiled code? |
@RussianDragon as a workaround you can do the following (add a type parameter to abstract class _AbstractControl<Whatever> with Store This particular crash happens because offset to special hidden type arguments field overflows the instruction encoding and by adding type parameter earlier in the hierarchy you decrease this offset. We are going to provide a fix in the Dart VM. |
Thank you so much. It works! |
We will keep this issue open until we actually fix the underlying problem. |
…arge offset If the type arguments vector gets introduced in subclasses where the base classes have already many fields we may not be able to load the TAV in one instruction on ARM64. Issue flutter/flutter#82278 TEST=vm/dart{,_2}/flutter_regress_82278_test Change-Id: I164ef42af3afe8267fe23a8a11af9401776eccdb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199481 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Presumably, the fix has landed in Dart and is waiting to be rolled in https://dart-review.googlesource.com/c/sdk/+/199481. |
The fix has rolled into Flutter, closing this issue. |
@a-siva I am using the latest master branch of flutter but still getting kind of the same error/crash when running my app. |
@FelixMittermeier yes, please do report a separate issue for your problem, because this particular problem has been fixed |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Hello.
I am author package https://github.com/QuantumArt/flutter_mobx_form_validation_kit
And i have problem with "assembler arm64.h: 218: error: unreachable code" on real devices.
I have not problen on simulators (Android, iOS), i not have problem on windows, web or test... I have problem only real devices, and only on arm64... I have problem only real devices, and only on arm64...
Bag
error log
Unfortunately I was unable to create a simpler example ...
Maybe it will be easier for you if I say that while preprocessing and localizing the problem, I found the following code as the source of the problem:
final completer = Completer<List<ValidationEvent>>(); this.reactionOnValidatorDisposers.add( reaction((_) { dynamic result; if (isFirstReaction) { result = validator(this as AbstractControl) .then(completer.complete); } isFirstReaction = false; return result; }, (_) => this.lastValidationFunction()), ); return completer.future;
But I don't have idea, how to correct this code.
The text was updated successfully, but these errors were encountered: