dotnet / dotnet/maui

App crash when FilePicker selects large files

Open
#6,503 13 comments 0 reactions 0 assignees View on GitHub
area-essentials platform/android s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 10h
Merged PRs (30d)
297

Description

### Description

When I select a "large" file of 1.90 GB (or larger) with FilePicker on Android, the app crashes, I've tried smaller files eg 1.01 GB and it works, from 1.90 GB, FilePicker crashes the app.

Repository:
https://github.com/nacompllo/MauiCollectionView/tree/test/FilePicker

### Steps to Reproduce

Clone the attached repository, start the application on Android and press the "Select file" button and select a video with a size equal to or greater than 1.90 GB then the app will crash.

### Version with bug

Release Candidate 1 (current)

### Last version that worked well

Unknown/Other

### Affected platforms

Android, I was *not* able test on other platforms

### Affected platform versions

Android 10

### Did you find any workaround?

_No response_

### Relevant log output

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.