Skip to content

Debugging randomly hanging on real iOS devices #63869

@stx

Description

@stx

Steps to Reproduce

  1. Add something like this to pubspec.yaml:
  assets:
    - assets/images/
    - assets/images/icons/
    - assets/audio/
  1. Add .DS_Store files to these directories by viewing them in MacOS Finder.
  2. Run flutter run --verbose on a real iOS device.
  3. Wait a very long time for Installing and launching to finish.

Expected results:

Finishes within seconds.

Actual results:

Appears to hang completely, but will complete after many minutes.

Workaround:

Run find . -name '.DS_Store' -type f -delete inside the project to clear .DS_Store files.

With .DS_Store files:

[  +12 ms] Syncing files to device Virgo...
[   +2 ms] Scanning asset files
[   +4 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:app/main.dart 308de057-2701-4229-b6d2-f2b002a70aaa
[        ] <- 308de057-2701-4229-b6d2-f2b002a70aaa
[  +90 ms] Updating files
[+237303 ms] Error writing "build/flutter_assets/assets/images/icons/.DS_Store" to DevFS: HttpException: , uri = http://localhost:51394
[        ] trying again in a few - 9 more attempts left
[        ] Error writing "build/flutter_assets/assets/images/.DS_Store" to DevFS: HttpException: , uri = http://localhost:51394
[        ] trying again in a few - 9 more attempts left
[ +524 ms] DevFS: Sync finished
[        ] Syncing files to device Virgo... (completed in 237,929ms, longer than expected)
[        ] Synced 12.4MB.
[   +1 ms] <- accept
[   +2 ms] Connected to _flutterView/0x10a831e20.

After running find . -name '.DS_Store' -type f -delete inside the project:

[   +6 ms] Syncing files to device Virgo...
[   +1 ms] Scanning asset files
[   +4 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +1 ms] <- recompile package:app/main.dart 03188f56-7ea7-4f86-b19a-7ee35f1623e5
[        ] <- 03188f56-7ea7-4f86-b19a-7ee35f1623e5
[  +73 ms] Updating files
[ +339 ms] DevFS: Sync finished

flutter doctor -v

[✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.6 19G2021, locale en-US)
    • Flutter version 1.20.2 at /Users/james/Development/flutter
    • Framework revision bbfbf1770c (2 days ago), 2020-08-13 08:33:09 -0700
    • Engine revision 9d5b21729f
    • Dart version 2.9.1

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/james/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.0

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 46.0.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] VS Code (version 1.48.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.13.2

[✓] Connected device (2 available)
    • Virgo (mobile)                      • 00008030-000848D11EF0802E            • ios • iOS 13.6
    • iPhone SE (2nd generation) (mobile) • CC0CE70B-2C12-475B-BFAC-563926246D4D • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: debuggingDebugging, breakpoints, expression evaluationc: performanceRelates to speed or footprint issues (see "perf:" labels)found in release: 1.20Found to occur in 1.20has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions