Hi, sometimes in my compose multiplatform app, for...
# compose-ios
s
Hi, sometimes in my compose multiplatform app, for ios gets some logs related to Too many open files, Please check thread for logs.
👍 1
These are the logs:
Copy code
2023-06-21 13:12:35.091783+0530 My application[7003:230120] [] networkd_settings_read_from_file networkd settings file open failed [24: Too many open files]
2023-06-21 13:12:35.156911+0530 My application[7003:230120] [] networkd_settings_read_from_file networkd settings file open failed [24: Too many open files], dumping backtrace:
        [arm64] libnetcore-3100.102.1
    0   Network                             0x0000000110903174 __nw_create_backtrace_string + 188
    1   Network                             0x0000000110c6a3dc _ZL32networkd_settings_read_from_filev + 1208
    2   Network                             0x0000000110c694c0 networkd_settings_init + 116
    3   Network                             0x0000000110c6b83c networkd_settings_get_int64_with_default + 28
    4   Network                             0x0000000110508bdc -[NWConcrete_nw_context initWithIdentifier:] + 152
    5   Network                             0x0000000110508b08 __nw_context_copy_implicit_context_block_invoke + 36
    6   libdispatch.dylib                   0x000000010b6db708 _dispatch_client_callout + 16
    7   libdispatch.dylib                   0x000000010b6dcefc _dispatch_once_callout + 28
    8   Network                             0x000000011050bcb4 nw_context_copy_implicit_context + 60
    9   CFNetwork                           0x000000010e236ed8 __CFTubeSetTubeTypeNotifier + 110176
    10  CFNetwork                           0x000000010e237568 __CFTubeSetTubeTypeNotifier + 111856
    11  libdispatch.dylib                   0x000000010b6db708 _dispatch_client_callout + 16
    12  libdispatch.dylib                   0x000000010b6dcefc _dispatch_once_callout + 28
    13  CFNetwork                           0x000000010e237280 __CFTubeSetTubeTypeNotifier + 111112
    14  My application                      0x0000000105291754 kfun:io.ktor.client.engine.darwin.internal#createSession(io.ktor.client.engine.darwin.DarwinClientEngineConfig;platform.Foundation.NSOperationQueue?){}kotlin.Pair<platform.Foundation.NSURLSession,io.ktor.client.engine.darwin.KtorNSURLSessionDelegate> + 400
    15  My application                      0x000000010528fd94 kfun:io.ktor.client.engine.darwin.internal.DarwinSession#<init>(io.ktor.client.engine.darwin.DarwinClientEngineConfig;platform.Foundation.NSOperationQueue?){} + 488
    16  My application                      0x0000000105287968 kfun:io.ktor.client.engine.darwin.DarwinClientEngine#<init>(io.ktor.client.engine.darwin.DarwinClientEngineConfig){} + 1612
    17  My application                      0x0000000105287148 kfun:io.ktor.client.engine.darwin.Darwin#create(kotlin.Function1<io.ktor.client.engine.darwin.DarwinClientEngineConfig,kotlin.Unit>){}io.ktor.client.engine.HttpClientEngine + 420
    18  My application                      0x000000010524cf10 kfun:io.ktor.client.engine.HttpClientEngineFactory#create$default(kotlin.Function1<1:0,kotlin.Unit>?;kotlin.Int){}io.ktor.client.engine.HttpClientEngine + 316
    19  My application                      0x000000010531baf8 kfun:com.seiko.imageloader.util#<get-httpEngine>(){}io.ktor.client.engine.HttpClientEngine + 144
    20  My application                      0x00000001053656a8 kfun:com.seiko.imageloader.component.setupDefaultComponents$lambda$0#internal + 116
    21  My application                      0x0000000105365774 kfun:com.seiko.imageloader.component.$setupDefaultComponents$lambda$0$FUNCTION_REFERENCE$0.invoke#internal + 88
    22  My application                      0x000000010469f148 kfun:kotlin.native.concurrent.SynchronizedLazyImpl#<get-value>(){}1:0 + 824
    23  My application                      0x000000010533cd3c kfun:com.seiko.imageloader.component.fetcher.KtorUrlFetcher.<get-httpClient>#internal + 236
    24  My application                      0x000000010533d198 kfun:com.seiko.imageloader.component.fetcher.KtorUrlFetcher.$fetchCOROUTINE$0.invokeSuspend#internal + 764
    25  My application                      0x000000010533dc00 kfun:com.seiko.imageloader.component.fetcher.KtorUrlFetcher#fetch#suspend(kotlin.coroutines.Continuation<com.seiko.imageloader.component.fetcher.FetchResult>){}kotlin.Any + 284
    26  My application                      0x0000000105346424 kfun:com.seiko.imageloader.intercept.FetchInterceptor.$fetchCOROUTINE$1.invokeSuspend#internal + 1088
    27  My application                      0x0000000105346840 kfun:com.seiko.imageloader.intercept.FetchInterceptor.fetch#internal + 396
    28  My application                      0x00000001053453e0 kfun:com.seiko.imageloader.intercept.FetchInterceptor.$interceptCOROUTINE$0.invokeSuspend#internal + 1260
    29  My application                      0x0000000105345a0c kfun:com.seiko.imageloader.intercept.FetchInterceptor#intercept#suspend(com.seiko.imageloader.intercept.Interceptor.Chain;kotlin.coroutines.Continuation<com.seiko.imageloader.model.ImageResult>){}kotlin.Any + 316
    30  My application                      0x000000010534bc64 kfun:com.seiko.imageloader.intercept.RealInterceptorChain#proceed#suspend(com.seiko.imageloader.model.ImageRequest;kotlin.coroutines.Continuation<com.seiko.imageloader.model.ImageResult>){}kotlin.Any + 876
    31  My application                      0x0000000105342c7c kfun:com.seiko.imageloader.intercept.DiskCacheInterceptor.$interceptCOROUTINE$0.invokeSuspend#internal + 3420
    32  My application                      0x00000001053435a4 kfun:com.seiko.imageloader.intercept.DiskCacheInterceptor#intercept#suspend(com.seiko.imageloader.intercept.Interceptor.Chain;kotlin.coroutines.Continuation<com.seiko.imageloader.model.ImageResult>){}kotlin.Any + 316
    33  My application                      0x000000010534bc64 kfun:com.seiko.imageloader.intercept.RealInterceptorChain#proceed#suspend(com.seiko.imageloader.model.ImageRequest;kotlin.coroutines.Continuation<com.seiko.imageloader.model.ImageResult>){}kotlin.Any + 876
    34  My application                      0x000000010533f910 kfun:com.seiko.imageloader.intercept.DecodeInterceptor.$proceedCOROUTINE$0.invokeSuspend#internal + 1100
    35  My application                      0x0000000105340438 kfun:com.seiko.imageloader.intercept.DecodeInterceptor.proceed#internal + 364
    36  My application                      0x000000010533f2fc kfun:com.seiko.imageloader.intercept.DecodeInterceptor#intercept#suspend(com.seiko.imageloader.intercept.Interceptor.Chain;kotlin.coroutines.Continuation<com.seiko.imageloader.model.ImageResult>){}kotlin.Any + 316
    37  My application                      0x000000010534bc64 kfun:com.seiko.imageloader.intercept.RealInterceptorChain#proceed#suspend(com.seiko.imageloader.model.ImageRequest;kotlin.coroutines.Continuation<com.seiko.imageloader.model.ImageResult>){}kotlin.Any + 876
    38  My application                      0x0000000105349adc kfun:com.seiko.imageloader.intercept.MemoryCacheInterceptor.$interceptCOROUTINE$0.invokeSuspend#internal + 3292
    39  My application                      0x000000010534a370 kfun:com.seiko.imageloader.intercept.MemoryCacheInterceptor#intercept#suspend(com.seiko.imageloader.intercept.Interceptor.Chain;kotlin.coroutines.Continuation<com.seiko.imageloader.model.ImageResult>){}kotlin.Any + 316
    40  My application                      0x000000010534bc64 kfun:com.seiko.imageloader.intercept.RealInterceptorChain#proceed#suspend(com.seiko.imageloader.model.ImageRequest;kotlin.coroutines.Continuation<com.seiko.imageloader.model.ImageResult>){}kotlin.Any + 876
    41  My application                      0x000000010534849c kfun:com.seiko.imageloader.intercept.MappedInterceptor#intercept#suspend(com.seiko.imageloader.intercept.Interceptor.Chain;kotlin.coroutines.Continuation<com.seiko.imageloader.model.ImageResult>){}kotlin.Any + 1124
    42  My application                      0x000000010534bc64 kfun:com.seiko.imageloader.intercept.RealInterceptorChain#proceed#suspend(com.seiko.imageloader.model.ImageRequest;kotlin.coroutines.Continuation<com.seiko.imageloader.model.ImageResult>){}kotlin.Any + 876
    43  My application                      0x000000010531ca38 kfun:com.seiko.imageloader.RealImageLoader.$execute$lambda$0COROUTINE$0.invokeSuspend#internal + 792
    44  My application                      0x00000001046901a4 kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith(kotlin.Result<kotlin.Any?>){} + 600
    45  My application                      0x000000010483df5c kfun:kotlinx.coroutines.DispatchedTask#run(){} + 2604
    46  My application                      0x0000000104daff74 kfun:androidx.compose.ui.platform.FlushCoroutineDispatcher.dispatch$lambda$1$lambda$0#internal + 536
    47  My application                      0x0000000104db1c10 kfun:androidx.compose.ui.platform.FlushCoroutineDispatcher.$dispatch$lambda$1$lambda$0$FUNCTION_REFERENCE$1.invoke#internal + 100
    48  My application                      0x0000000104db1d64 kfun:androidx.compose.ui.platform.FlushCoroutineDispatcher.$dispatch$lambda$1$lambda$0$FUNCTION_REFERENCE$1.$<bridge-UNN>invoke(){}#internal + 96
    49  My application                      0x0000000104daf84c kfun:androidx.compose.ui.platform.FlushCoroutineDispatcher.performRun#internal + 368
    50  My application                      0x0000000104db0350 kfun:androidx.compose.ui.platform.FlushCoroutineDispatcher.$dispatch$lambda$1COROUTINE$0.invokeSuspend#internal + 368
    51  My application                      0x00000001046901a4 kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith(kotlin.Result<kotlin.Any?>){} + 600
    52  My application                      0x000000010483df5c kfun:kotlinx.coroutines.DispatchedTask#run(){} + 2604
    53  My application                      0x0000000104a9f9bc kfun:org.jetbrains.skiko.NsQueueDispatcher.dispatch$lambda$0#internal + 156
    54  My application                      0x0000000104a9fd3c kfun:org.jetbrains.skiko.NsQueueDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$0.invoke#internal + 96
    55  My application                      0x0000000104a9fe50 kfun:org.jetbrains.skiko.NsQueueDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$0.$<bridge-UNN>invoke(){}#internal + 96
    56  My application                      0x0000000104aa0fcc _6f72672e6a6574627261696e732e736b696b6f3a736b696b6f2f6f70742f6275696c644167656e742f776f726b2f613634643361613437376431326636622f736b696b6f2f7372632f64617277696e4d61696e2f6b6f746c696e2f6f72672f6a6574627261696e732f736b696b6f2f44697370617463686572732e6b74_knbridge6 + 280
    57  libdispatch.dylib                   0x000000010b6d9ee4 _dispatch_call_block_and_release + 24
    58  libdispatch.dylib                   0x000000010b6db708 _dispatch_client_callout + 16
    59  libdispatch.dylib                   0x000000010b6eafd8 _dispatch_main_queue_drain + 1220
    60  libdispatch.dylib                   0x000000010b6eab04 _dispatch_main_queue_callback_4CF + 40
    61  CoreFoundation                      0x0000000109c99784 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
    62  CoreFoundation                      0x0000000109c93de4 __CFRunLoopRun + 1912
    63  CoreFoundation                      0x0000000109c93254 CFRunLoopRunSpecific + 584
    64  GraphicsServices                    0x000000010f863c9c GSEventRunModal + 160
    65  UIKitCore                           0x000000012247aff0 -[UIApplication _run] + 868
    66  UIKitCore                           0x000000012247ef3c UIApplicationMain + 124
    67  SwiftUI                             0x00000001124ff34c OUTLINED_FUNCTION_54 + 500
    68  SwiftUI                             0x00000001124ff1ec
Are they serious anyhow?
n
Hi! From what I can see, you are using the
com.seiko.imageloader.*
library to load images. It seems that the issue might be related to that library. However, I could be mistaken. Would you mind trying to disable image loading and see if the error persists? Thank you!