xamarin-forms-samples
xamarin-forms-samples copied to clipboard
Calling PostAsync in Webservices / ToDo Rest via iOS throws exception
Background
While running the following project on iOS devices I get and error when adding a new ToDo item. https://github.com/xamarin/xamarin-forms-samples/tree/master/WebServices/TodoREST.
Description
While trying to save the item the response is not return and the debugger shows: 2021-11-22 14:55:50.306 Xamarin.PreBuilt.iOS[3804:2270334] Xamarin.iOS: Received unhandled ObjectiveC exception: NSMallocException Failed to grow buffer.
I have also tried a simple app with a button and a PostAsync request and same behavior.
Steps to Reproduce
- Download the code
- Run the iOS project on a linked iPhone
- Add a new ToDo item and save it
Expected Behavior
The save to work and be added to the list.
Actual Behavior
Nothing happens and I see error in the Output console.
Information
- IDE and IDE version: Visual Studio 2022
- Platform with the issue:
- iOS: 15.0.2 both on iPhone 7 and iPhone 12
It seems to only have effect while working on my laptop with VS2022, multiple people have tested the code on a different machine where it works. Any clues what setting could have this effect?