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

Crash in AmplitudeDestinationPlugin due to objc_moveWeak error in uploadsQueue.amplitude.com #252

Closed
rakeshCradle19 opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@rakeshCradle19
Copy link

rakeshCradle19 commented Jan 8, 2025

Expected Behavior

The Amplitude SDK should process events without crashing.

Current Behavior

The application crashes intermittently during the execution.
This crash impacts app stability and user experience.

Environment
• SDK Version: 1.6.2
• OS Version: iOS 18.2.1
• Device Model: iPhone 15 Pro Max

Below is the full stack trace:

Crashed: uploadsQueue.amplitude.com
0 libobjc.A.dylib 0xeea0 objc_moveWeak + 196
1 CoreFoundation 0x4da84 _CFXNotificationRegistrarAddObserver + 392
2 CoreFoundation 0x4d880 CFXNotificationRegistrarAdd + 576
3 CoreFoundation 0x4d060 _CFXNotificationRegisterObserver + 248
4 FirebasePerformance 0x121e8 -[FPRNetworkTrace start] + 508
5 FirebasePerformance 0x187d0 __InstrumentUploadTaskWithRequestFromDataCompletionHandler_block_invoke + 128
6 AppName 0x6e0720 closure #1 in EventPipeline.flush(completion:) + 40 (HttpClient.swift:40)
7 AppName 0x613e74 thunk for @callee_guaranteed () -> () + 4317150836 (:4317150836)
8 AppName 0x5152b4 thunk for @escaping @callee_guaranteed () -> () + 4316107444 (:4316107444)
9 libdispatch.dylib 0x3fa8 _dispatch_client_callout + 20
10 libdispatch.dylib 0x137fc _dispatch_lane_barrier_sync_invoke_and_complete + 56
11 AppName 0x6dfff8 EventPipeline.flush(completion:) + 65 (EventPipeline.swift:65)
12 AppName 0x6df9f8 EventPipeline.put(event:completion:) + 47 (EventPipeline.swift:47)
13 AppName 0x6c44c4 AmplitudeDestinationPlugin.enqueue(event:) + 17 (AmplitudeDestinationPlugin.swift:17)
14 AppName 0x6c45ec AmplitudeDestinationPlugin.groupIdentify(event:) + 36 (AmplitudeDestinationPlugin.swift:36)
15 AppName 0x6c8454 DestinationPlugin.execute(event:) + 47 (DestinationPlugin.swift:47)
16 AppName 0x68c378 closure #1 in Amplitude.process(event:) + 31 (Mediator.swift:31)
17 AppName 0x404bf0 thunk for @escaping @callee_guaranteed () -> () + 4314991600 (:4314991600)
18 libdispatch.dylib 0x2248 _dispatch_call_block_and_release + 32
19 libdispatch.dylib 0x3fa8 _dispatch_client_callout + 20
20 libdispatch.dylib 0xb5cc _dispatch_lane_serial_drain + 768
21 libdispatch.dylib 0xc124 _dispatch_lane_invoke + 380
22 libdispatch.dylib 0x1738c _dispatch_root_queue_drain_deferred_wlh + 288
23 libdispatch.dylib 0x16bd8 _dispatch_workloop_worker_thread + 540
24 libsystem_pthread.dylib 0x3680 _pthread_wqthread + 288
25 libsystem_pthread.dylib 0x1474 start_wqthread + 8

@rakeshCradle19 rakeshCradle19 added the bug Something isn't working label Jan 8, 2025
@crleona
Copy link
Collaborator

crleona commented Jan 8, 2025

Hi @rakeshCradle19, this appears to be a crash from Firebase, please see firebase/firebase-ios-sdk#14275.

I'd also recommend updating to the latest version of our SDK (1.11.2), as it contains some unrelated fixes.

@crleona crleona closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants