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

EXC_BAD_ACCESS (KERN_INVALID_ADDRESS) #40

Open
hetthummar opened this issue Nov 11, 2024 · 0 comments
Open

EXC_BAD_ACCESS (KERN_INVALID_ADDRESS) #40

hetthummar opened this issue Nov 11, 2024 · 0 comments

Comments

@hetthummar
Copy link

I’m encountering a crash issue on iPad when initializing Superwall. Although I don’t have an iPad, I’ve observed this error in Crashlytics from my client’s iPad (iPad Pro, 12.9-inch, 6th generation). This issue might be similar to this reported issue, but I haven’t found a solution.

Details:

  • Superwall Version: ^1.3.3
  • RevenueCat Version: ^8.2.1

Here’s the initialization code:

initialize({required String? appFlyerId}) async {
  try {
    String? apiKey = dotenv.env['SUPERWALL_IOS_KEY'];
    final appLinks = AppLinks();
    InAppPurchaseService purchaseController = locator<InAppPurchaseService>();

    Superwall.configure(
      apiKey!,
      purchaseController: purchaseController,
    );
    await Superwall.shared.setDelegate(this);

    await purchaseController.initialize(appFlyerId: appFlyerId);
  } catch (e) {
    rethrow;
  }
}

Whenever this code executes on the specified iPad model, the app crashes. However, it works fine on the iPhone and in the simulator.

Here’s a video of the issue: Crash Video

Any guidance on resolving this for iPad would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant