purchases-ios icon indicating copy to clipboard operation
purchases-ios copied to clipboard

Crash on `configure(with:)` call in iOS 15.0

Open sochalewski opened this issue 3 years ago • 2 comments

Describe the bug PurchasesOrchestrator crashes with EXC_BAD_ACCESS on iOS 15.0.

  1. Environment
    1. Platform: iOS
    2. SDK version: 4.13.1
    3. StoreKit 2 (enabled with useStoreKit2IfEnabled) (Y/N): N
    4. OS version: 15.0
    5. Xcode version: 13.4.1
    6. How widespread is the issue. Percentage of devices affected. Don't know.
  2. Debug logs that reproduce the issue
[Purchases] - DEBUG: ℹ️ Looks like you're using a legacy API key.
This is still supported, but it's recommended to migrate to using platform-specific API key, which should look like 'appl_1a2b3c4d5e6f7h'.
See https://rev.cat/auth for more details.
[Purchases] - DEBUG: 👤 Identifying App User ID
  1. Steps to reproduce, with a description of expected vs. actual behavior
  • Configure the SDK:
Purchases.configure(
    with: Configuration.Builder(withAPIKey: apiKey)
        .with(usesStoreKit2IfAvailable: false)
        .build()
)
  • Launch the app on iOS 15.0 device (iPhone 6s if matters).
  • Wait for a crash (PurchasesOrchestrator.swift:44, EXC_BAD_ACCESS)
  1. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.) Screenshots from our QA as this is not reproducible on iOS greater than 15.0. Zrzut ekranu 2022-10-12 o 14 52 00 Zrzut ekranu 2022-10-12 o 15 01 15

Additional context N/A

sochalewski avatar Oct 13 '22 11:10 sochalewski

👀 SDKONCALL-146 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

RCGitBot avatar Oct 13 '22 11:10 RCGitBot

Hey @sochalewski, I'm trying to reproduce this - I'll follow up when I have more information.

codykerns avatar Oct 14 '22 21:10 codykerns

Hey @sochalewski, unfortunately I haven't been able to reproduce this issue. Can you try re-installing the SDK and cleaning Xcode (cmd + shift + K) and trying again?

codykerns avatar Oct 21 '22 19:10 codykerns

@codykerns Interesting… 🤔 Unfortunately I cannot as this does not happen on my device, but I believe it's not cache/derived data related as this occurs on builds from the TestFlight built on CI/CD as well.

sochalewski avatar Oct 25 '22 18:10 sochalewski

Hey @sochalewski - sorry for the delay here. Escalating this with the team, we'll follow up again when we have more information.

codykerns avatar Nov 10 '22 17:11 codykerns

@sochalewski are you able to reproduce this on the simulator? I just downloaded the iOS 15.0 runtime and can't reproduce it, and unfortunately I don't have an iOS 15.0 device.

Could you try this with ASan and TSan enabled? See https://developer.apple.com/documentation/xcode/diagnosing-memory-thread-and-crash-issues-early

That would help us figure out what's happening. Thanks.

Screenshot 2022-11-11 at 09 38 43

NachoSoto avatar Nov 11 '22 17:11 NachoSoto

This issue has been automatically locked due to no recent activity after it was closed. Please open a new issue for related reports.

github-actions[bot] avatar Nov 30 '22 00:11 github-actions[bot]