-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Attempt to execute code removed by dart aot compiler #52874
Comments
fyi - @alexmarkov - per the log:
|
Is there any temporary workaround for this issue? Or I should wait for a fix? I'm not in a rush or anything but if I wanted to build a release build for testing. |
Duplicate of #52596 |
@milindgoel15 rewrite your code as:
This should fix it. |
So, say for instance, I want to provide user an ability to choose the flexible sync approach instead of local configuration. I was initially doing a check using if else as: If the user decides to login, the configuration picks up the flexible sync otherwise local which was also breaking due to this dart aot compiler. Can I still do it? Because we are now declaring the config data directly instead of assigning them later. Maybe use of late ig. |
That fixed it. Thanks |
@milindgoel15 you can use ternary (or Dart 3 switch expression) or alternatively you can remove the
|
When running a release build of the Flutter application, an exception is thrown leading to a blank white screen.
Log:
https://katb.in/ijasupezuwa
realm_services file mentioned in logs:
Dart SDK Version (
dart --version
)Dart SDK version: 3.0.5 (stable) (Mon Jun 12 18:31:49 2023 +0000) on "windows_x64"
Whether you are using Windows, MacOSX, or Linux (if applicable)
Android
Whether you are using Chrome, Safari, Firefox, Edge (if applicable)
n/a
The text was updated successfully, but these errors were encountered: