Closed lukaszkalnik closed 2 years ago
The exception is thrown by Ktor which Coil doesn't use. It's unrelated to Coil, but you may need to set a CoroutineExceptionHander
for where you launch the Ktor network request to catch the exception.
Ok, thank you for the diagnosis nevertheless and sorry for bothering you!
Ok, thank you for the diagnosis nevertheless and sorry for bothering you!
Hello, can you tell me how you solved this problem later?
I think the emulator had no network or something like this. It was indeed not related to Coil.
I think the emulator had no network or something like this. It was indeed not related to Coil.
But this exception shouldn't cause the app to crash, because Coil used try-catch to try to catch all the exceptions, but apparently it didn't, and now I'm suffering from this issue.
Have you left this problem alone? Or is there some way for Coil's try-catch to catch this exception?
I use
coil-compose
and try to load an image in my composable function:However the app crashes on Android emulator with the following exception:
Coil 1.4.0 Android emulator Android version S
This code works correctly on an Android 9 device.