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

App Hanging inside FBSDKTimeSpentData suspendTimeSpentData #2349

Open
5 tasks done
sergei-mikhailovskii-idf opened this issue Feb 29, 2024 · 2 comments
Open
5 tasks done

Comments

@sergei-mikhailovskii-idf

Checklist before submitting a bug report

Xcode version

15.0.0

Facebook iOS SDK version

16.3.1

Dependency Manager

SPM

SDK Framework

Core

Goals

Get rid of App Hanging

Expected results

No app hanging

Actual results

App hangs during the FBSDKTimeSpentData suspendTimeSpentData method execution
0b080f81e966433a97d953a52477dcd4-symbolicated.txt

Steps to reproduce

Cannot reproduce the case during the test but it happens on prod occasionally

Code samples & details

// INSERT YOUR CODE HERE
var example = "Example code"
@everettjf
Copy link

everettjf commented Mar 20, 2024

Same issue. Could we move the disk writing operations into child thread ?




Application Specific Information:
App hanging for at least 2000 ms.

Thread 0 Crashed:
0   libsystem_kernel.dylib          0x3ae565b48         __getattrlist
1   Foundation                      0x31d6f069c         _NSWriteDataToFileWithExtendedAttributes
2   Foundation                      0x31d6f04e4         writeStringToURLOrPath
3   Moneyman                        0x203b5a888         -[FBSDKTimeSpentData suspendTimeSpentData] (FBSDKTimeSpentData.m:133)
4   libdispatch.dylib               0x32f6e06a4         _dispatch_call_block_and_release
5   libdispatch.dylib               0x32f6e22fc         _dispatch_client_callout
6   libdispatch.dylib               0x32f6f0994         _dispatch_main_queue_drain
7   libdispatch.dylib               0x32f6f05ac         _dispatch_main_queue_callback_4CF
8   CoreFoundation                  0x31f737018         __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
9   CoreFoundation                  0x31f733d24         __CFRunLoopRun
10  CoreFoundation                  0x31f733474         CFRunLoopRunSpecific
11  GraphicsServices                0x3a62154f4         GSEventRunModal
12  UIKitCore                       0x323d82628         -[UIApplication _run]
13  UIKitCore                       0x323d81c64         UIApplicationMain
14  SwiftUI                         0x3282684b4         OUTLINED_FUNCTION_31
15  SwiftUI                         0x3282682f8         OUTLINED_FUNCTION_31
16  SwiftUI                         0x327ed8e8c         OUTLINED_FUNCTION_26
17  Moneyman                        0x202c45528         [inlined] MoneyManApp.$main
18  Moneyman                        0x202c45528         main

we can just move the 2 calls into child thread

2   Foundation                      0x31d6f04e4         writeStringToURLOrPath
3   Moneyman                        0x203b5a888         -[FBSDKTimeSpentData suspendTimeSpentData] (FBSDKTimeSpentData.m:133)

@CCat00
Copy link

CCat00 commented Apr 17, 2024

Same issue, waiting for reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants