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

[Bug] The SDK blocks the main thread when showing a survey #87

Open
maciejsurmacz opened this issue Jun 26, 2024 · 0 comments
Open

[Bug] The SDK blocks the main thread when showing a survey #87

maciejsurmacz opened this issue Jun 26, 2024 · 0 comments

Comments

@maciejsurmacz
Copy link

When requesting a survey through a call to sendEvent, the SDK will temporarily block the main thread till the survey is shown on screen. This is especially evident when the network is slow. I attach a video of a sample app running on an emulator (API 34, network set to UMTS/poor). Notice the loading spinner animation stopping.

Screen.Recording.2024-06-26.at.17.10.28.mov

Here's the code for the sample app (I noticed the same behaviour in our production app which we are trying to integrate with the SDK).

From my testing, it seems that the freeze happens between the DISPLAYED event being fired and the survey being shown on the screen.

I am testing the 1.3.0 version of the SDK.

Here's a choreographer log when this happens:

2024-06-26 17:10:37.027 5844-5844 Choreographer com.example.iteratetest I Skipped 306 frames! The application may be doing too much work on its main thread.

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

No branches or pull requests

1 participant