TableView for a form demo crashes on iOS with unhandled exception
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
With commit 38f5f7f50a222292cf8b5c5195bbfde4908d7132
```
Exception has occurred: System.InvalidOperationException
Unable to load image file.
at at Microsoft.Maui.FileImageSourceService.GetImageAsync(IFileImageSource imageSource, Single scale, CancellationToken cancellationToken)
at at Microsoft.Maui.FileImageSourceService.GetImageAsync(IImageSource imageSource, Single scale, CancellationToken cancellationToken)
at at Microsoft.Maui.ImageSourceExtensions.GetPlatformImageAsync(IImageSourceService imageSourceService, IImageSource imageSource, IMauiContext mauiContext)
at at Microsoft.Maui.ImageSourceExtensions.GetPlatformImageAsync(IImageSource imageSource, IMauiContext mauiContext)
at at Microsoft.Maui.ImageSourceExtensions.LoadImage(IImageSource source, IMauiContext mauiContext, Action`1 finished)
at at Microsoft.Maui.Controls.Handlers.Compatibility.ImageCellRenderer.SetImage(ImageCell cell, CellTableViewCell target)
at at Microsoft.Maui.Controls.Handlers.Compatibility.ImageCellRenderer.GetCell(Cell item, UITableViewCell reusableCell, UITableView tv)
at at Microsoft.Maui.Controls.Handlers.Compatibility.CellRenderer.CreatePlatformElement()
at at Microsoft.Maui.Handlers.ElementHandler`2[[Microsoft.Maui.Controls.Cell, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[UIKit.UITableViewCell, Microsoft.iOS, Version=17.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]].OnCreatePlatformElement()
at at Microsoft.Maui.Handlers.ElementHandler.CreatePlatformElement()
at at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
at at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
at at Microsoft.Maui.Controls.Handlers.Compatibility.CellTableViewCell.GetPlatformCell(UITableView tableView, Cell cell, Boolean recycleCells, String templateId)
at at Microsoft.Maui.Controls.Handlers.Compatibility.TableViewModelRenderer.GetCell(UITableView tableView, NSIndexPath indexPath)
at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:58
at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:94
at ControlGallery.Program.Main(String[] args) in /Users/bart/repos/maui-samples/8.0/UserInterface/ControlGallery/ControlGallery/Platforms/iOS/Program.cs:13
```
Environment:
- macOS 14.1.1 (osx-arm64, M1)
- .NET SDK 8.0.100
- VS Code 1.84.2 /w MAUI extension v0.5.50
- iOS simulator: iPhone 15 (iOS 17)
- Xcode 15.0.1
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.