mobile-sdk icon indicating copy to clipboard operation
mobile-sdk copied to clipboard

AccessViolationException when having more than one MapView() in UWP Xamarin.Forms

Open l4nk4b3l opened this issue 3 years ago • 4 comments

Issue: The App will crash with the following Exception when having more than one MapView().

System.AccessViolationException: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

I provided a SampleApp.zip for easy reproduction of the issue.

Steps to reproduce:

  • Open SampleApp
  • Click on the Button "Navigate" will cause AccessViolationException

Steps to reproduce:

  • Open SampleApp
  • Klick on the Button "Add second MapView" will cause AccessViolationException

Plattform: UWP CartoMobileSDK.UWP: 4.4.6

l4nk4b3l avatar Jul 27 '22 09:07 l4nk4b3l

Hi. Indeed, thanks a lot for the sample app. I have reproduced the issue and it is related to interaction between Angle GLES UWP wrapper and threading. We will likely have a fix for this in 4.4.7 release.

mtehver avatar Aug 02 '22 12:08 mtehver

Can you tell me when release 4.4.7 is planned.

l4nk4b3l avatar Sep 07 '22 07:09 l4nk4b3l

@l4nk4b3l We plan to release RC next week and final 4.4.7 by the end of September.

mtehver avatar Sep 07 '22 12:09 mtehver

@l4nk4b3l 4.4.7RC1 is now available and should fix the issue.

mtehver avatar Sep 14 '22 10:09 mtehver

Closing this, 4.4.7 is now released.

mtehver avatar Oct 10 '22 07:10 mtehver