https://kotlinlang.org logo
#ktor
Title
# ktor
j

John O'Reilly

12/03/2020, 4:19 PM
Should Ktor 1.4.3 work with Kotlin/Native and, if so, are there particular associated dependencies it needs? I see for example it still has transitive dependency to
v1.3.9-native-mt-2
of kotlinx coroutines whereas I'm using
1.4.2-native-mt
(which is working btw with Ktor 1.4.0)
getting following crash on iOS for example
Copy code
Uncaught Kotlin exception: kotlinx.coroutines.CoroutinesInternalError: Fatal exception in coroutines machinery for DispatchedContinuation[MainDispatcher, Continuation @ $<init>$lambda-1COROUTINE$4]. Please read KDoc to 'handleFatalException' method and report this incident to maintainers
    at 0   PeopleInSpaceSwiftUI                0x000000010d9e63ae kfun:kotlin.Error#<init>(kotlin.String?;kotlin.Throwable?){} + 126
    at 1   PeopleInSpaceSwiftUI                0x000000010db9e3de kfun:kotlinx.coroutines.CoroutinesInternalError#<init>(kotlin.String;kotlin.Throwable){} + 126
    at 2   PeopleInSpaceSwiftUI                0x000000010dbec7c4 kfun:kotlinx.coroutines.DispatchedTask#handleFatalException(kotlin.Throwable?;kotlin.Throwable?){} + 900
    at 3   PeopleInSpaceSwiftUI                0x000000010dbec3d3 kfun:kotlinx.coroutines.DispatchedTask#run(){} + 3235
    at 4   PeopleInSpaceSwiftUI                0x000000010dc22d1a kfun:kotlinx.coroutines.DarwinMainDispatcher.dispatch$lambda-0#internal + 90
    at 5   PeopleInSpaceSwiftUI                0x000000010dc230e0 kfun:kotlinx.coroutines.DarwinMainDispatcher.$dispatch$lambda-0$FUNCTION_REFERENCE$44.invoke#internal + 64
    at 6   PeopleInSpaceSwiftUI                0x000000010dc23140 kfun:kotlinx.coroutines.DarwinMainDispatcher.$dispatch$lambda-0$FUNCTION_REFERENCE$44.$<bridge-UNN>invoke(){}#internal + 64
    at 7   PeopleInSpaceSwiftUI                0x000000010dc24259 _6f72672e6a6574627261696e732e6b6f746c696e783a6b6f746c696e782d636f726f7574696e65732d636f7265_knbridge8 + 185
    at 8   libdispatch.dylib                   0x000000010ea508ac _dispatch_call_block_and_release + 12
    at 9   libdispatch.dylib                   0x000000010ea51a88 _dispatch_client_callout + 8
    at 10  libdispatch.dylib                   0x000000010ea5ff23 _dispatch_main_queue_callback_4CF + 1152
3 Views