Skip to content

ClassFinder.swift - Line 33: EXC_BAD_ACCESS KERN_INVALID_ADDRESS #1174

@elfstyle

Description

@elfstyle

Prerequisites

  • This is not a Security Disclosure, otherwise please follow the guidelines in Security Policy.
  • I have searched in this repository's issues to see if it has already been reported.
  • I have updated to the latest released version of the SDK and the issue still persists.

Bug summary

We're using "@adobe/react-native-aepcore": "7.0.0" which uses AEPCore (5.4.0) with lifecycleAutomaticTrackingEnabled == true
The app is crashing on iOS from time to time with the following stack trace:

Crashed: com.apple.root.default-qos
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000

0. 0x5514 class_conformsToProtocol + 136
1. 0x7738c specialized _ArrayProtocol.filter(_:) + 33 (ClassFinder.swift:33)
2. 0x7683c implicit closure #1 in default argument 0 of MobileCoreInitializer.init(classFinder:) + 4364232764 (MobileCoreInitializer.swift:4364232764)
3. 0x76c90 MobileCoreInitializer.setupLifecycle(additionalContextData:) + 75 (MobileCoreInitializer.swift:75)
4. 0x76928 closure #1 in MobileCoreInitializer.initialize(options:_:) + 56 (MobileCoreInitializer.swift:56)

I tried to update AEPCore to 5.6.0, but the same crash happens:

Crashed: com.apple.root.default-qos
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000

0. 0x5514 class_conformsToProtocol + 136
1. 0x7ab94 specialized _ArrayProtocol.filter(_:) + 33 (ClassFinder.swift:33)
2. 0x7a118 implicit closure #1 in default argument 0 of MobileCoreInitializer.init(classFinder:) + 4366016792 (MobileCoreInitializer.swift:4366016792)
3. 0x7a270 closure #1 in MobileCoreInitializer.initialize(options:_:) + 73 (MobileCoreInitializer.swift:73)

Environment

OS: iOS 16.7.0
SDK(s): AEPCore 5.4.0
IDE: Xcode 16.2.0
"react-native": "0.76.9"
"@adobe/react-native-aepcore": "7.0.0"

Steps to reproduce

  1. Start the app
  2. Initialize MobileCore

Current behavior

The app is crashing from time to time on launch

Expected behavior

The app should not crash

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. Used by issue templates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions