Skip to content
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

listSync hangs in release mode with Flutter beta 0.6.0 #21242

Closed
ghunter99 opened this Issue Aug 30, 2018 · 10 comments

Comments

Projects
None yet
7 participants
@ghunter99
Copy link

commented Aug 30, 2018

Steps to Reproduce

I upgraded to Flutter beta 0.6.0 yesterday.

Now my app hangs when calling the listSync function when running in release mode.
listSync works in debug mode & worked in release mode prior to upgrading to 0.6.0

I made a minimally modified version of the default main.dart program that demonstrates the problem. listSync hangs when running on both iOS & Android devices.

Here's the gist:
https://gist.github.com/ghunter99/b05f7cb44c5b49e80d088e1c5c473b72

Logs

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.6.0, on Mac OS X 10.13.6 17G65, locale en-AU)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.0)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
[✓] Android Studio (version 3.1)
[✓] Connected devices (1 available)

• No issues found!

@zoechi zoechi added this to the Goals milestone Aug 31, 2018

@asapJ

This comment has been minimized.

Copy link

commented Aug 31, 2018

have you found a fix for the this?
my app is broken too!
this is a bit annoying as i was ready to roll out a crucial update. now i am stuck with no clue of what to do.

Some new bugs***
When a new route is pushed, it doesnt pop anymore, just hangs there.
ListSync not working.
Dialogs don't show up sometimes.
some plugins stopped working.

@zoechi

This comment has been minimized.

Copy link
Contributor

commented Sep 3, 2018

#21297 is another one where debug mode works but release mode doesn't on iOS. There might be a common cause.
Also #19341

@jason-simmons

This comment has been minimized.

Copy link
Contributor

commented Sep 4, 2018

listSync is failing because the VM can't look up some file/directory constructors:

    E/flutter ( 8742): [ERROR:flutter/shell/common/shell.cc(181)] Dart Error: Dart_New: could not find constructor 'File.fromRawPath'.

See https://dart-review.googlesource.com/c/sdk/+/72920

@asapJ

This comment has been minimized.

Copy link

commented Sep 5, 2018

I found out this inconsistency started after the reduction in release binary from v0.6.0 upwards, and It still exist even in v0.7.5.
All is usually good during debug mode but after building apk for release it just breaks the app..
Reduction in binary size isnt neccesary if it causes inconsistent behaviors.

This should be looked into

dart-bot pushed a commit to dart-lang/sdk that referenced this issue Sep 6, 2018

Mark File/Directory.fromRawPath as an entry point
Fixes flutter/flutter#21242

Change-Id: Ibc100bbdaffd41a1f91a13087a0f12bc1849fc6f
Reviewed-on: https://dart-review.googlesource.com/72920
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
@richgoldmd

This comment has been minimized.

Copy link

commented Sep 9, 2018

Is there any short-term work around here that isnt changing to the master channel?

@SGuzel

This comment has been minimized.

Copy link

commented Sep 19, 2018

Flutter 0.7.3 • channel beta •
Framework • revision 3b309bd (3 weeks ago) • 2018-09-07 12:33:05 -0700
Engine • revision 58a1894
Tools • Dart 2.1.0-dev.1.0.flutter-ccb16f7282

E/flutter (13016): [ERROR:flutter/shell/common/shell.cc(181)] Dart Error: Dart_New: could not find constructor 'File.fromRawPath'.

@rtoshmukhamedov

This comment has been minimized.

Copy link

commented Sep 20, 2018

Flutter (Channel beta, v0.8.2)
Still not working on release build.

@jason-simmons

This comment has been minimized.

Copy link
Contributor

commented Sep 20, 2018

This works on the current master branch of Flutter. The fix landed in Dart on 9/6 but had not rolled into Flutter in time for v0.8.2

@rtoshmukhamedov

This comment has been minimized.

Copy link

commented Sep 24, 2018

@jason-simmons Thanks a lot. It is working on master channel....

@zoechi

This comment has been minimized.

Copy link
Contributor

commented Oct 29, 2018

I assume this is fixed.
Please add a comment if you're still seeing this and I'll reopen.

@zoechi zoechi closed this Oct 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.