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

Adding MKTileOverlayRenderer to MapKit.MKMapView causes crash #21810

Open
Evige opened this issue Dec 13, 2024 · 1 comment
Open

Adding MKTileOverlayRenderer to MapKit.MKMapView causes crash #21810

Evige opened this issue Dec 13, 2024 · 1 comment
Labels
need-repro Waiting for a test case before the bug can be investigated
Milestone

Comments

@Evige
Copy link

Evige commented Dec 13, 2024

Apple platform

iOS

Framework version

net8.0-*

Affected platform version

VS 2022 17.12.2 Xamarin.iOS 16.4.02.3

Description

iOS MapView is visible but crashes when calling a line "MapView.OverlayRenderer = (view, overlay) => new MKTileOverlayRenderer(overlay as MKTileOverlay);"

Steps to Reproduce

  1. Go to a ViewController which contains MapKit's MKMapView and custom tile rendering with MKTileOverlayRenderer as OverlayRenderer.
  2. Experience the crash when code proceeds to the line where new MKTileOverlayRenderer is set to MapView.OverlayRenderer.

Did you find any workaround?

Remove the creation line of MKTileOverlayRenderer "MapView.OverlayRenderer = (view, overlay) => new MKTileOverlayRenderer(overlay as MKTileOverlay);". But then, of course, MKMapView will not show tiles on top of the map.

Relevant logs

No response

@rolfbjarne rolfbjarne added the need-repro Waiting for a test case before the bug can be investigated label Dec 18, 2024
@rolfbjarne rolfbjarne added this to the Future milestone Dec 18, 2024
Copy link
Contributor

Hi @Evige. We have added the "need-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/xamarin/xamarin-macios/blob/main/docs/bug-repro.md
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-repro Waiting for a test case before the bug can be investigated
Projects
None yet
Development

No branches or pull requests

2 participants