Skip to content

Threads in waitInNativeState never gets closed in KMM project. #6339

Closed as not planned
@JohnnyXplor

Description

@JohnnyXplor

Version

3.0.0 and above

Summary

Hi guys,
We have a KMM project that uses the Apollo library. It can then run builds for our iOS and Android mobile apps to be consumed. It works well in version 2.x.x. However after we upgraded it to a new version (I tried 3.0.0, 3.8.4 and 4.0.0) it started to have an issue in iOS app where it keeps creating new threads that don't complete. Within a few hours it could create over 2500 threads created, eventually the app would crash. I think it creates the threads to handle the graphql queries (our apps) but somehow those threads are hung there forever.

Some related log:
2 xxx 0x7ce46c (anonymous namespace)::waitInNativeState(_opaque_pthread_cond_t*, _opaque_pthread_mutex_t*) + 68
3 xxx 0x7cd554 Worker::processQueueElement(bool) + 752
4 xxx 0x7cd1c0 (anonymous namespace)::workerRoutine(void*) + 104

Any inputs would be appreciated.

Steps to reproduce the behavior

No response

Logs

(Your logs here)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions