Skip to content

[FirebaseDatabase] iOS Crash : -[FView generateEventsForChanges:eventCache:registration:] EXC_BAD_ACCESS (KERN_INVALID_ADDRESS) #15514

@Tom3652

Description

@Tom3652

Description

Here is my Flutter issue that redirected me to create one here.

Reproducing the issue

No response

Firebase SDK Version

12.4.0

Xcode Version

26.1.1

Installation Method

Swift Package Manager

Firebase Product(s)

Database

Targeted Platforms

iOS

Relevant Log Output

Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x1444 objc_retain_x0 + 8
1  libobjc.A.dylib                0x1444 objc_retain + 8
2  CoreFoundation                 0x11f74 __NSArrayI_new + 212
3  CoreFoundation                 0x14767c -[NSArray initWithArray:range:copyItems:] + 368
4  CoreFoundation                 0xe1a20 -[__NSPlaceholderArray initWithArray:] + 52
5  FirebaseDatabase               0x55024 -[FView generateEventsForChanges:eventCache:registration:] + 273 (FView.m:273)
6  FirebaseDatabase               0x54c98 -[FView applyOperation:writesCache:serverCache:] + 239 (FView.m:239)
7  FirebaseDatabase               0x4565c -[FSyncPoint applyOperation:toView:writesCache:serverCache:] + 82 (FSyncPoint.m:82)
8  FirebaseDatabase               0x45a88 __53-[FSyncPoint applyOperation:writesCache:serverCache:]_block_invoke + 121 (FSyncPoint.m:121)
9  CoreFoundation                 0x12170 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
10 CoreFoundation                 0x1a47cc -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 288
11 FirebaseDatabase               0x459e0 -[FSyncPoint applyOperation:writesCache:serverCache:] + 119 (FSyncPoint.m:119)
12 FirebaseDatabase               0x4af14 -[FSyncTree applyOperationDescendantsHelper:syncPointTree:serverCache:writesCache:] + 1085 (FSyncTree.m:1085)
13 FirebaseDatabase               0x4ab70 -[FSyncTree applyOperationHelper:syncPointTree:serverCache:writesCache:] + 1004 (FSyncTree.m:1004)
14 FirebaseDatabase               0x4acc0 -[FSyncTree applyOperationHelper:syncPointTree:serverCache:writesCache:] + 1027 (FSyncTree.m:1027)
15 FirebaseDatabase               0x4acc0 -[FSyncTree applyOperationHelper:syncPointTree:serverCache:writesCache:] + 1027 (FSyncTree.m:1027)
16 FirebaseDatabase               0x4aa84 -[FSyncTree applyOperationToSyncPoints:] + 989 (FSyncTree.m:989)
17 FirebaseDatabase               0x47ae8 -[FSyncTree applyListenCompleteAtPath:] + 339 (FSyncTree.m:339)
18 FirebaseDatabase               0x4a8e0 __35-[FSyncTree createListenerForView:]_block_invoke + 932 (FSyncTree.m:932)
19 FirebaseDatabase               0x360e8 __21-[FRepo deferredInit]_block_invoke_3 + 184 (FRepo.m:184)
20 libdispatch.dylib              0x1adc _dispatch_call_block_and_release + 32
21 libdispatch.dylib              0x1b7ec _dispatch_client_callout + 16
22 libdispatch.dylib              0x38b24 _dispatch_main_queue_drain.cold.5 + 812
23 libdispatch.dylib              0x10ec8 _dispatch_main_queue_drain + 180
24 libdispatch.dylib              0x10e04 _dispatch_main_queue_callback_4CF + 44
25 CoreFoundation                 0x6b520 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
26 CoreFoundation                 0x1dd14 __CFRunLoopRun + 1944
27 CoreFoundation                 0x1cc44 _CFRunLoopRunSpecificWithOptions + 532
28 GraphicsServices               0x1498 GSEventRunModal + 120
29 UIKitCore                      0xa9ddc -[UIApplication _run] + 792
30 UIKitCore                      0x4eb0c UIApplicationMain + 336
31 UIKitCore                      0x18a860 -[UIScrollView contentInset] + 588
32 Runner                         0x4a70 main + 4309617264 (AppDelegate.swift:4309617264)
33 ???                            0x18067ae28 (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
Replace this line with the contents of your Podfile.lock!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions