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

TableView for a form demo crashes on iOS with unhandled exception #394

Open
bgever opened this issue Nov 25, 2023 · 0 comments
Open

TableView for a form demo crashes on iOS with unhandled exception #394

bgever opened this issue Nov 25, 2023 · 0 comments

Comments

@bgever
Copy link

bgever commented Nov 25, 2023

With commit 38f5f7f

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
Screenshot 2023-11-25 at 11 30 33 AM

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant