Amplitude-iOS icon indicating copy to clipboard operation
Amplitude-iOS copied to clipboard

Data race in -[AMPIdentifyInterceptor transferInterceptedIdentify]

Open charleslima opened this issue 1 year ago • 1 comments

Current Behavior

Found a data race warning in [AMPIdentifyInterceptor transferInterceptedIdentify]

datarace

Steps to Reproduce

  1. Enable Thread Sanitizer in target's scheme
  2. Run the app and see the warning

Environment

  • SDK Version: 8.17.1
  • Device: iPhone 14 Pro
  • OS Version: iOS 17.0

charleslima avatar Aug 08 '23 21:08 charleslima

Hi @charleslima, I turned Thread Sanitizer on as the following screenshots. However, I didn't see a data race warning when running the app. Is there anything else you set up?

I can see there is a data race as transferInterceptedIdentify rans on a background queue. I will investigate more on this and keep you updated. Also we are deprecating iOS SDK gradually and will GA Swift SDK in about two weeks. As we are having a high volume of support tickets right now you could also try the Swift SDK. image

image

Mercy811 avatar Aug 09 '23 18:08 Mercy811