title: Visual Studio 2019 - Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7a7bff4000 in tid 12503 (Thread Pool Wor), pid 11057
body: <p>I have been stuck with Fatal Signal errors since using Visual Studio 2019 or 2022 to compile my  Xamarin Android Project for more than 3 weeks.</p>
  <p>I have used ndk-stack and other tools to see any meaningful stack trace I have failed and our project is not going ahead because of this.</p>
  <p>Please note that the same exact code base works perfectly stable if I produce an APK using visual Studio 2017.</p>
  <p>Visual Studio 2019 uses Xamarin.Andriod.SDK 12.0.0.3</p>
  <p>Visual Studio 2017 uses Xamarin.Android.SDK 9.7.1.0</p>
  <p>I have attempted to upgrade to Android 12 but our project is Huge and require significant amount of work. It does not seem to be an option at this point.</p>
  <p>The reason I want to use 2019 or 2022 is because of google play store and producing app bundle instead of APK. Visual Studio 2017 does not have app bundle option.</p>
  <p>My projects target Android 9 and I am also using PortSip Libraries. I have done extensive googling. I have not found any solid evidence if there is a problem with Xamarin Android SKD in 2019 or a problem with my Samsung Device Tab S6. The only answer I found here is:
  <a href="https://stackoverflow.com/questions/13196013/why-application-is-dying-randomly">Why application is dying randomly?</a></p>
  <p>If this the case why an APK produced by 2017 does not have any segmentation faults or any race conditions.</p>
  <p>I have handlers in c# to catch any error but non of them catches these.  My app uses google MAPs and we are drawing many layers and updates on the MAP.</p>
  <p>My app also receives many signalr updates and makes calls to WCF services.</p>
  <p>Examples of errors:</p>
  <p>03-09 19:54:53.811  9984 12254 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x40000000080 in tid 12254 (Thread Pool Wor), pid 9984 (------)
  03-09 19:54:53.836 12404 12404 E chromium: [0309/195453.835730:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)</p>
  <p>03-11 00:35:05.469 27236 27236 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7c13725238</p>