Skip to content

EXC_BAD_ACCESS (KERN_INVALID_ADDRESS) #40

@hetthummar

Description

@hetthummar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions