Closed 6rube closed 1 year ago
Hi @6rube
Apologies for the much delayed response to this. For help and questions about using this product, please ask a question at Microsoft Q&A. Thanks!
@davidbritch
This line crashes FileResult photo = await MediaPicker.Default.CapturePhotoAsync();
once a photo is taken and the user chooses it.
Exception is
System.NullReferenceException
Object reference not set to an instance of an object.
Stack is
D:\a\_work\1\s\src\Essentials\src\FileSystem\FileSystemUtils.android.cs in string FileSystemUtils.EnsurePhysicalPath(Uri uri, bool requireExtendedAccess) at line 58:4
Assembly:
Microsoft.Maui.Essentials
Version:
1.0.0.0
@eli191
It might be worth trying in 8.0.6, as some work was done on media capture on Android in that release.
@davidbritch The version I use is 8.0.6-nightly.9827+sha.aa28d78367-azdo.8893595
@davidbritch Stack of crash : (from sentry.io)
Crashed in non-app: string FileSystemUtils.EnsurePhysicalPath(Uri, bool)
void <>c__DisplayClass7_0.<CaptureAsync>g__OnResult|0(?)+OnResult(Intent intent)
void IntermediateActivity.OnActivityResult(int, Result, Intent)
async Task<FileResult> MediaPickerImplementation.CaptureAsync(MediaPickerOptions, bool)
async Task<bool> PhotoPage.TakePhotoAsync() <- this line is my code
@eli191
Does taking a photo crash for you in this sample?
When i try to make photos the programm just crashes.
My Function:
Other Information:
Debuq Log `> at start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.companyname.ProjectName/crc64cab5159034b1c301.MainActivity"