-
Notifications
You must be signed in to change notification settings - Fork 109
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
iOS Crash: NullReferenceException after VS 2019 update. #363
Comments
Have you found any workaround for this issue? |
Unfortunately no. In my debug builds I've manually added the iOS map view renderer and commented out the call to It will prevent it from crashing and let me work "normally", but it is not a reliable solution for production builds. I'm still waiting for a fix and hope we'll get one soon, might be an issue with Xamarin.iOS as it worked just fine with the previous version. |
same here! android is fine as well just tested.
lets just hope they can provide a fix. but not to enthusiastic about it since they havent provide any update or release in about a year.
… On Apr 18, 2019, at 1:56 PM, Bulzan Sergiu ***@***.***> wrote:
Unfortunately no. In my debug builds I've manually added the iOS map view renderer and commented out the call to base.Dispose() (you can check my sample app, did the same thing there).
It will prevent it from crashing and let me work "normally", but it is not a reliable solution for production builds.
I'm still waiting for a fix and hope we'll get one soon, might be an issue with Xamarin.iOS as it worked just fine with the previous version.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Closing this as it was a Xamarin.iOS bug, the fix is ready and will soon be released. Check for more info: |
I'm encountering an issue on iOS after the update to VS 2019. I'm using XF 3.6.0 and Xamarin.iOS 12.8.0.0. It happens when an instance of TKCustomMap gets disposed.
Within the iOS's
TKCustomMapRenderer
the app crashes withNullReferenceException
whenbase.Dispose(disposing)
is called in the overridden method:protected override void Dispose(bool disposing)
It can easily be reproduced by
pushing
a page which contains a Map instance and thenpopping
it from the Navigation.You can download a sample app from here:
TKMaps_DisposeFailsSampleProject.zip
It opens two different pages:
MapViewRenderer.cs
) and commented out the call tobase.Dispose()
within theprotected override void Dispose(bool disposing)
. App wont crash now.The same issue is also opened here:
xamarin/xamarin-macios#5899
The text was updated successfully, but these errors were encountered: