Skip to content

[firebase_messaging]: Crash report -[FLTFirebaseMessagingPlugin application:didReceiveRemoteNotification:fetchCompletionHandler:] #18150

@xuantungdev0401

Description

@xuantungdev0401

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Messaging

Which platforms are affected?

iOS

Description

Crashlytic report crash in production.
This crash event happened in the first second of the user's session.
I cannot reproduce locally.
iOS 18.3.0, 18.3.1, 18.2.0

Fatal Exception: NSInvalidArgumentException
-[__NSCFString isSelectorAddedDynamically:]: unrecognized selector sent to instance 0x30116f900

          Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x2d5fc __exceptionPreprocess
1  libobjc.A.dylib                0x31244 objc_exception_throw
2  CoreFoundation                 0x186174 +[NSObject(NSObject) _copyDescription]
3  CoreFoundation                 0x305c8 ___forwarding___
4  CoreFoundation                 0x2fef0 _CF_forwarding_prep_0
5  Flutter                        0x14560 (Missing UUID 4c4c441d55553144a19330365948c2bb)
6  CoreFoundation                 0x30078 ___forwarding___
7  CoreFoundation                 0x2fef0 _CF_forwarding_prep_0
8  Runner                         0x4288b0 -[FLTFirebaseMessagingPlugin application:didReceiveRemoteNotification:fetchCompletionHandler:] + 527 (FLTFirebaseMessagingPlugin.m:527)
9  ???                            0x19da2cde4 (Missing)
10 ???                            0x229706ac8 (Missing)
11 libdispatch.dylib              0x2248 _dispatch_call_block_and_release
12 libdispatch.dylib              0x3fa8 _dispatch_client_callout
13 libdispatch.dylib              0x12a34 _dispatch_main_queue_drain
14 libdispatch.dylib              0x1264c _dispatch_main_queue_callback_4CF
15 CoreFoundation                 0x79bcc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
16 CoreFoundation                 0x761c0 __CFRunLoopRun
17 CoreFoundation                 0xc8284 CFRunLoopRunSpecific
18 GraphicsServices               0x14c0 GSEventRunModal
19 ???                            0x19ccae674 (Missing)
20 ???                            0x19c8d4e88 (Missing)
21 ???                            0x19d01115c (Missing)
22 Runner                         0x96a0 main (AppDelegate.swift)
23 ???                            0x1c03bdde8 (Missing)

Full log: stacktrace.txt
crashlytic_stacktrace.txt

Reproducing the issue

I cannot reproduce the crash.
It happens in the production for about 1% of the users.

Firebase Core version

4.5.0

Flutter Version

3.41.5

Relevant Log Output

Flutter dependencies

firebase_core: 4.5.0
firebase_messaging: 16.1.2
firebase_messaging_platform_interface: 4.7.7

Additional context and comments

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions