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 0x00000001737bc6cc #14194

Open
shozab14 opened this issue Nov 29, 2024 · 2 comments
Open

EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000001737bc6cc #14194

shozab14 opened this issue Nov 29, 2024 · 2 comments
Labels
sessions Changes pertaining to the Firebase Sessions SDK

Comments

@shozab14
Copy link

Description

Using Firebase version 10.25.0 on an iPhone 13 Pro running iOS 17.6.1, a crash occurs exclusively with TestFlight builds. The app successfully configures Firebase on the first launch. However, if the app is sent to the background for 15 minutes or longer and then reopened, it crashes when transitioning back to the active state.

Reproducing the issue

Using Firebase version 10.25.0 on an iPhone 13 Pro running iOS 17.6.1, a crash occurs exclusively with TestFlight builds. The app successfully configures Firebase on the first launch. However, if the app is sent to the background for 15 minutes or longer and then reopened, it crashes when transitioning back to the active state.

Firebase SDK Version

10.25.0

Xcode Version

15.4 (15F31D)

Installation Method

CocoaPods

Firebase Product(s)

Authentication, Crashlytics, Database, Messaging

Targeted Platforms

iOS

Relevant Log Output

Crashed: com.apple.main-thread
0  nanopb                         0x6104 encode_field + 100
1  nanopb                         0x6074 pb_encode + 172
2  FirebaseSessions               0x413c FIRSESEncodeProto + 64
3  FirebaseSessions               0xf04c $s16FirebaseSessions17SessionStartEventC14transportBytes10Foundation4DataVyF + 232
4  FirebaseSessions               0xf2d4 $s16FirebaseSessions17SessionStartEventC14transportBytes10Foundation4DataVyFTo + 28
5  GoogleDataTransport            0x9e78 -[GDTCOREvent setDataObject:] + 68
6  FirebaseSessions               0x5e48 $s16FirebaseSessions14EventGDTLoggerC03logC05event10completionyAA012SessionStartC0C_ys6ResultOyyts5Error_pGctF + 104
7  FirebaseSessions               0x5f44 $s16FirebaseSessions14EventGDTLoggerCAA0cD8ProtocolA2aDP03logC05event10completionyAA012SessionStartC0C_ys6ResultOyyts5Error_pGctFTW + 20
8  FirebaseSessions               0xd1c4 $s16FirebaseSessions18SessionCoordinatorC014attemptLoggingC5Start5event8callbackyAA0cG5EventC_ys6ResultOyytAA0aB5ErrorOGctFyAMcfU_ + 176
9  FirebaseSessions               0xd3c4 $s16FirebaseSessions18SessionCoordinatorC10fillInFIID33_A99E81F187A7BA47A5374F4DC053A423LL5event8callbackyAA0C10StartEventC_ys6ResultOyytAA0aB5ErrorOGctFyAKySSs0V0_pGcfU_ + 180
10 FirebaseSessions               0xabe4 $sSo16FIRInstallationsC16FirebaseSessionsE14installationID10completionyys6ResultOySSs5Error_pGc_tFySSSg_sAH_pSgtcfU_TA + 48
11 FirebaseSessions               0xaaa8 $sSSSgs5Error_pSgIeggg_So8NSStringCSgSo7NSErrorCSgIeyByy_TR + 96
12 FirebaseInstallations          0x49bc __49-[FIRInstallations installationIDWithCompletion:]_block_invoke + 56
13 FBLPromises                    0x5130 __56-[FBLPromise chainOnQueue:chainedFulfill:chainedReject:]_block_invoke.18 + 52
14 libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
15 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
16 libdispatch.dylib              0x125ec _dispatch_main_queue_drain + 1060
17 libdispatch.dylib              0x121b8 _dispatch_main_queue_callback_4CF + 44
18 CoreFoundation                 0x56710 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
19 CoreFoundation                 0x53914 __CFRunLoopRun + 1996
20 CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
21 GraphicsServices               0x11a8 GSEventRunModal + 164
22 UIKitCore                      0x40aae8 -[UIApplication _run] + 888
23 UIKitCore                      0x4bed98 UIApplicationMain + 340
24 UIKitCore                      0x638504 keypath_get_selector_hoverStyle + 11024
25 MyWhooshConnectApp             0x2cebd4 static UIApplicationDelegate.main() + 120 (<compiler-generated>:120)
26 MyWhooshConnectApp             0x2ceb4c static AppDelegate.$main() + 44 (<compiler-generated>:44)
27 MyWhooshConnectApp             0x2d0660 main + 18 (AppDelegate.swift:18)
28 ???                            0x1c77d3154 (Missing)

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
PODS:
  - CHIPageControl/Aji (0.2)
  - CocoaMQTT/Core (2.1.6):
    - MqttCocoaAsyncSocket (~> 1.0.8)
  - CocoaMQTT/WebSockets (2.1.6):
    - CocoaMQTT/Core
    - Starscream (~> 3.1.1)
  - DGCharts (5.1.0):
    - DGCharts/Core (= 5.1.0)
  - DGCharts/Core (5.1.0)
  - Firebase/Auth (10.25.0):
    - Firebase/CoreOnly
    - FirebaseAuth (~> 10.25.0)
  - Firebase/CoreOnly (10.25.0):
    - FirebaseCore (= 10.25.0)
  - Firebase/Crashlytics (10.25.0):
    - Firebase/CoreOnly
    - FirebaseCrashlytics (~> 10.25.0)
  - Firebase/Database (10.25.0):
    - Firebase/CoreOnly
    - FirebaseDatabase (~> 10.25.0)
  - FirebaseAppCheckInterop (10.25.0)
  - FirebaseAuth (10.25.0):
    - FirebaseAppCheckInterop (~> 10.17)
    - FirebaseCore (~> 10.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/Environment (~> 7.8)
    - GTMSessionFetcher/Core (< 4.0, >= 2.1)
    - RecaptchaInterop (~> 100.0)
  - FirebaseCore (10.25.0):
    - FirebaseCoreInternal (~> 10.0)
    - GoogleUtilities/Environment (~> 7.12)
    - GoogleUtilities/Logger (~> 7.12)
  - FirebaseCoreExtension (10.25.0):
    - FirebaseCore (~> 10.0)
  - FirebaseCoreInternal (10.25.0):
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
  - FirebaseCrashlytics (10.25.0):
    - FirebaseCore (~> 10.5)
    - FirebaseInstallations (~> 10.0)
    - FirebaseRemoteConfigInterop (~> 10.23)
    - FirebaseSessions (~> 10.5)
    - GoogleDataTransport (~> 9.2)
    - GoogleUtilities/Environment (~> 7.8)
    - nanopb (< 2.30911.0, >= 2.30908.0)
    - PromisesObjC (~> 2.1)
  - FirebaseDatabase (10.25.0):
    - FirebaseAppCheckInterop (~> 10.17)
    - FirebaseCore (~> 10.0)
    - FirebaseSharedSwift (~> 10.0)
    - GoogleUtilities/UserDefaults (~> 7.13)
    - leveldb-library (~> 1.22)
  - FirebaseInstallations (10.25.0):
    - FirebaseCore (~> 10.0)
    - GoogleUtilities/Environment (~> 7.8)
    - GoogleUtilities/UserDefaults (~> 7.8)
    - PromisesObjC (~> 2.1)
  - FirebaseMessaging (10.25.0):
    - FirebaseCore (~> 10.0)
    - FirebaseInstallations (~> 10.0)
    - GoogleDataTransport (~> 9.3)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/Environment (~> 7.8)
    - GoogleUtilities/Reachability (~> 7.8)
    - GoogleUtilities/UserDefaults (~> 7.8)
    - nanopb (< 2.30911.0, >= 2.30908.0)
  - FirebaseRemoteConfigInterop (10.25.0)
  - FirebaseSessions (10.25.0):
    - FirebaseCore (~> 10.5)
    - FirebaseCoreExtension (~> 10.0)
    - FirebaseInstallations (~> 10.0)
    - GoogleDataTransport (~> 9.2)
    - GoogleUtilities/Environment (~> 7.13)
    - GoogleUtilities/UserDefaults (~> 7.13)
    - nanopb (< 2.30911.0, >= 2.30908.0)
    - PromisesSwift (~> 2.1)
  - FirebaseSharedSwift (10.25.0)
  - FlatBuffers (22.9.24)
  - FSCalendar (2.8.4)
  - GoogleDataTransport (9.4.1):
    - GoogleUtilities/Environment (~> 7.7)
    - nanopb (< 2.30911.0, >= 2.30908.0)
    - PromisesObjC (< 3.0, >= 1.2)
  - GoogleMaps (7.4.0):
    - GoogleMaps/Maps (= 7.4.0)
  - GoogleMaps/Base (7.4.0)
  - GoogleMaps/Maps (7.4.0):
    - GoogleMaps/Base
  - GoogleUtilities/AppDelegateSwizzler (7.13.3):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
    - GoogleUtilities/Privacy
  - GoogleUtilities/Environment (7.13.3):
    - GoogleUtilities/Privacy
    - PromisesObjC (< 3.0, >= 1.2)
  - GoogleUtilities/Logger (7.13.3):
    - GoogleUtilities/Environment
    - GoogleUtilities/Privacy
  - GoogleUtilities/Network (7.13.3):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Privacy
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (7.13.3)":
    - GoogleUtilities/Privacy
  - GoogleUtilities/Privacy (7.13.3)
  - GoogleUtilities/Reachability (7.13.3):
    - GoogleUtilities/Logger
    - GoogleUtilities/Privacy
  - GoogleUtilities/UserDefaults (7.13.3):
    - GoogleUtilities/Logger
    - GoogleUtilities/Privacy
  - GTMSessionFetcher/Core (3.4.1)
  - HaishinKit (2.0.0-rc.0):
    - Logboard (~> 2.5.0)
  - IQKeyboardManagerSwift (7.0.3)
  - leveldb-library (1.22.5)
  - Logboard (2.5.0)
  - MqttCocoaAsyncSocket (1.0.8)
  - nanopb (2.30910.0):
    - nanopb/decode (= 2.30910.0)
    - nanopb/encode (= 2.30910.0)
  - nanopb/decode (2.30910.0)
  - nanopb/encode (2.30910.0)
  - PromisesObjC (2.4.0)
  - PromisesSwift (2.4.0):
    - PromisesObjC (= 2.4.0)
  - RecaptchaInterop (100.0.0)
  - SDWebImage (5.19.2):
    - SDWebImage/Core (= 5.19.2)
  - SDWebImage/Core (5.19.2)
  - Starscream (3.1.1)
  - SwiftCharts (0.6.5)
  - TrustKit (3.0.4)
  - TTGSnackbar (1.12.0)

DEPENDENCIES:
  - CHIPageControl/Aji
  - CocoaMQTT/WebSockets
  - DGCharts
  - Firebase/Auth
  - Firebase/Crashlytics
  - Firebase/Database
  - FirebaseCore
  - FirebaseMessaging
  - FlatBuffers
  - FSCalendar
  - GoogleMaps
  - HaishinKit (~> 2.0.0-beta.3)
  - IQKeyboardManagerSwift
  - SDWebImage
  - SwiftCharts
  - TrustKit
  - TTGSnackbar

SPEC REPOS:
  trunk:
    - CHIPageControl
    - CocoaMQTT
    - DGCharts
    - Firebase
    - FirebaseAppCheckInterop
    - FirebaseAuth
    - FirebaseCore
    - FirebaseCoreExtension
    - FirebaseCoreInternal
    - FirebaseCrashlytics
    - FirebaseDatabase
    - FirebaseInstallations
    - FirebaseMessaging
    - FirebaseRemoteConfigInterop
    - FirebaseSessions
    - FirebaseSharedSwift
    - FlatBuffers
    - FSCalendar
    - GoogleDataTransport
    - GoogleMaps
    - GoogleUtilities
    - GTMSessionFetcher
    - HaishinKit
    - IQKeyboardManagerSwift
    - leveldb-library
    - Logboard
    - MqttCocoaAsyncSocket
    - nanopb
    - PromisesObjC
    - PromisesSwift
    - RecaptchaInterop
    - SDWebImage
    - Starscream
    - SwiftCharts
    - TrustKit
    - TTGSnackbar

SPEC CHECKSUMS:
  CHIPageControl: a787bf7205c9b7e7fbfc412be36c5e8636b68f86
  CocoaMQTT: 1f206228b29318eabdacad0c2e4e88575922c27a
  DGCharts: 1c6daf585b6cfc78807af44ea690d357c410627f
  Firebase: 0312a2352584f782ea56f66d91606891d4607f06
  FirebaseAppCheckInterop: 5da5ce93e8797a215e3f677fb0654b74e736c8b8
  FirebaseAuth: c0f93dcc570c9da2bffb576969d793e95c344fbb
  FirebaseCore: 7ec4d0484817f12c3373955bc87762d96842d483
  FirebaseCoreExtension: 8a47811d0b155501559ef05d089518152a0a1677
  FirebaseCoreInternal: 910a81992c33715fec9263ca7381d59ab3a750b7
  FirebaseCrashlytics: 4b96efb0ce73b38b2a85e8b8bd1bd8f63f09d015
  FirebaseDatabase: faa489a42f5f868d23a55dd442d6e2099348458e
  FirebaseInstallations: 91950fe859846fff0fbd296180909dd273103b09
  FirebaseMessaging: 88950ba9485052891ebe26f6c43a52bb62248952
  FirebaseRemoteConfigInterop: b25018791b204c0d78a90e394d6c62d9b1f22da8
  FirebaseSessions: c0939656253a1fa0e94ecc266ccf770cc8b33732
  FirebaseSharedSwift: 0274086954b1b2d5fd7e829eccc587044d72a4ba
  FlatBuffers: 8ee1d1388605afc251375ce568e1d76cf8a4ca64
  FSCalendar: 2d1d0d9398f12d439f55c1fe0f01525b151b8260
  GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
  GoogleMaps: 032f676450ba0779bd8ce16840690915f84e57ac
  GoogleUtilities: ea963c370a38a8069cc5f7ba4ca849a60b6d7d15
  GTMSessionFetcher: 8000756fc1c19d2e5697b90311f7832d2e33f6cd
  HaishinKit: cf1885078ade47751f5241a5ad6a4d32c45acfd6
  IQKeyboardManagerSwift: f9c5dc36cba16ddd2e51fa7d51c34a2e083029b5
  leveldb-library: e8eadf9008a61f9e1dde3978c086d2b6d9b9dc28
  Logboard: 4674a3d86681539a0ad1fca528d888b90871e268
  MqttCocoaAsyncSocket: 77d3b74f76228dd5a05d1f9526eab101d415b30c
  nanopb: 438bc412db1928dac798aa6fd75726007be04262
  PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
  PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
  RecaptchaInterop: 7d1a4a01a6b2cb1610a47ef3f85f0c411434cb21
  SDWebImage: dfe95b2466a9823cf9f0c6d01217c06550d7b29a
  Starscream: 4bb2f9942274833f7b4d296a55504dcfc7edb7b0
  SwiftCharts: 2e755ea292f0b87d3e4b2c1eb5afc080a20cdc15
  TrustKit: 403e8d2cfbff2abfc37cd41acc558dab8ec78e59
  TTGSnackbar: 8e7650b9b1f5f44e40228473455986f5c12213c7

PODFILE CHECKSUM: fa9ce593b8d7e49ec70f1f1f6e6e6afb61ba0252

COCOAPODS: 1.15.2
@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@rizafran rizafran added sessions Changes pertaining to the Firebase Sessions SDK and removed needs-triage labels Dec 2, 2024
@paulb777
Copy link
Member

paulb777 commented Dec 2, 2024

See the discussion at #13080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sessions Changes pertaining to the Firebase Sessions SDK
Projects
None yet
Development

No branches or pull requests

4 participants