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

File Picker Get Directory Crash on IOS Real Device ... #1485

Closed
Aggie85 opened this issue Apr 9, 2024 · 3 comments
Closed

File Picker Get Directory Crash on IOS Real Device ... #1485

Aggie85 opened this issue Apr 9, 2024 · 3 comments
Labels
new issue An issue that hasn't yet been seen from the maintainer stale

Comments

@Aggie85
Copy link

Aggie85 commented Apr 9, 2024

QUICK UPDATE:

Just compile the example app to a real Apple IOS device to see the issue.

I also tried several versions of file_picker going back to 5.5 and they all have the same issue under IOS 17.5. Unfortunately, I only have the one IPAd and IPhone and they both are set to 17.5 of IOS.

ISSUE:

The lastest version of file_picker 8.0.0+1 trying to select a folder on a REAL IPhone15 Pro Max and IPad 12.9 in IOS beta version 17.5 causes the following exception:

Exception NSException * "*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array" 0x000000030322cd20
name __NSCFConstantString * "NSRangeException" 0x00000001f39035d0
reason __NSCFString * "*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array" 0x0000000301920540
userInfo void * NULL 0x0000000000000000
reserved __NSDictionaryM * 3 key/value pairs 0x0000000303df8320

Code snippet causing the issue:

  String? path = await FilePicker.platform.getDirectoryPath(
    dialogTitle: widget._dialogTitle,
    // initialDirectory: _selectedDirectory,
    lockParentWindow: false,
  );

Flutter Version:

Flutter 3.19.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 300451adae (12 days ago) • 2024-03-27 21:54:07 -0500
Engine • revision e76c956498
Tools • Dart 3.3.3 • DevTools 2.31.1

Other Notes:

Code works in IOS Emulator on same phone running 17.4.2, Android REAL devices, macOS, and Windows.

@Aggie85 Aggie85 added the new issue An issue that hasn't yet been seen from the maintainer label Apr 9, 2024
Copy link

This issue is stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added stale and removed stale labels Apr 18, 2024
Copy link

github-actions bot commented May 1, 2024

This issue is stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added the stale label May 1, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new issue An issue that hasn't yet been seen from the maintainer stale
Projects
None yet
Development

No branches or pull requests

1 participant