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

Fatal error in tcp socket #179

Closed
dpad85 opened this issue Jan 21, 2021 · 0 comments · Fixed by #180
Closed

Fatal error in tcp socket #179

dpad85 opened this issue Jan 21, 2021 · 0 comments · Fixed by #180
Assignees
Labels
bug Something isn't working

Comments

@dpad85
Copy link
Member

dpad85 commented Jan 21, 2021

Reproducible on testnet with seed=swap scale student indicate drum collect wealth jewel hope verb balance mammal

Issue happening in :

https://github.com/ACINQ/eclair-kmp/blob/88769628fb5d2d613f28ebed589a6f0d7bf18524/src/commonMain/kotlin/fr/acinq/eclair/io/LightningSession.kt#L16

https://github.com/ACINQ/eclair-kmp/blob/88769628fb5d2d613f28ebed589a6f0d7bf18524/src/commonMain/kotlin/fr/acinq/eclair/io/TcpSocket.kt#L41-L42

Logs

Uncaught Kotlin exception: kotlinx.coroutines.CoroutinesInternalError: Fatal exception in coroutines machinery for DispatchedContinuation[MainDispatcher, Continuation @ $establishConnection$lambda-15COROUTINE$63]. Please read KDoc to 'handleFatalException' method and report this incident to maintainers
    at 0   PhoenixShared                       0x0000000106d6d9ac kfun:kotlin.Error#<init>(kotlin.String?;kotlin.Throwable?){} + 124 (/Users/teamcity/buildAgent/work/cae0e6559deed4c4/runtime/src/main/kotlin/kotlin/Exceptions.kt:14:63)
    at 1   PhoenixShared                       0x00000001070cc48c kfun:kotlinx.coroutines.CoroutinesInternalError#<init>(kotlin.String;kotlin.Throwable){} + 124 (/opt/buildAgent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/Exceptions.common.kt:28:77)
    at 2   PhoenixShared                       0x0000000107149799 kfun:kotlinx.coroutines.DispatchedTask#handleFatalException(kotlin.Throwable?;kotlin.Throwable?){} + 953 (/opt/buildAgent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/internal/DispatchedTask.kt:93:22)
    at 3   PhoenixShared                       0x0000000107149377 kfun:kotlinx.coroutines.DispatchedTask#run(){} + 3543 (/opt/buildAgent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/internal/DispatchedTask.kt:64:13)
    at 4   PhoenixShared                       0x000000010717f958 kfun:kotlinx.coroutines.DarwinMainDispatcher.dispatch$lambda-0#internal + 88 (/opt/buildAgent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/nativeDarwin/src/Dispatchers.kt:35:19)
    at 5   PhoenixShared                       0x000000010717fd2e kfun:kotlinx.coroutines.DarwinMainDispatcher.$dispatch$lambda-0$FUNCTION_REFERENCE$43.invoke#internal + 62 (/opt/buildAgent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/nativeDarwin/src/Dispatchers.kt:34:51)
    at 6   PhoenixShared                       0x000000010717fd8e kfun:kotlinx.coroutines.DarwinMainDispatcher.$dispatch$lambda-0$FUNCTION_REFERENCE$43.$<bridge-UNN>invoke(){}#internal + 62 (/opt/buildAgent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/nativeDarwin/src/Dispatchers.kt:34:51)
    at 7   PhoenixShared                       0x0000000107180e47 _6f72672e6a6574627261696e732e6b6f746c696e783a6b6f746c696e782d636f726f7574696e65732d636f7265_knbridge8 + 183 (/opt/buildAgent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/nativeDarwin/src/Dispatchers.kt:34:51)
    at 8   libdispatch.dylib                   0x0000000108c7a7ec _dispatch_call_block_and_release + 12
    at 9   libdispatch.dylib                   0x0000000108c7b9c8 _dispatch_client_callout + 8
    at 10  libdispatch.dylib                   0x0000000108c89e75 _dispatch_main_queue_callback_4CF + 1152
    at 11  CoreFoundation                      0x00007fff2038edbb __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    at 12  CoreFoundation                      0x00007fff2038963e __CFRunLoopRun + 2685
    at 13  CoreFoundation                      0x00007fff203886d6 CFRunLoopRunSpecific + 567
    at 14  GraphicsServices                    0x00007fff2bededb3 GSEventRunModal + 139
    at 15  UIKitCore                           0x00007fff24690e0b -[UIApplication _run] + 912
    at 16  UIKitCore                           0x00007fff24695cbc UIApplicationMain + 101
    at 17  Phoenix                             0x0000000105d0073b main + 75 (/Users/Dominique/git/phoenix-kmm/phoenix-ios/phoenix-ios/AppDelegate.swift:17:7)
    at 18  libdyld.dylib                       0x00007fff202593e9 start + 1
Caused by: kotlin.IllegalArgumentException
    at 0   PhoenixShared                       0x0000000106d754e1 kfun:kotlin.Throwable#<init>(){} + 65 (/Users/teamcity/buildAgent/work/cae0e6559deed4c4/runtime/src/main/kotlin/kotlin/Throwable.kt:27:21)
    at 1   PhoenixShared                       0x0000000106d6daca kfun:kotlin.Exception#<init>(){} + 58 (/Users/teamcity/buildAgent/work/cae0e6559deed4c4/runtime/src/main/kotlin/kotlin/Exceptions.kt:21:28)
    at 2   PhoenixShared                       0x0000000106d6dd1a kfun:kotlin.RuntimeException#<init>(){} + 58 (/Users/teamcity/buildAgent/work/cae0e6559deed4c4/runtime/src/main/kotlin/kotlin/Exceptions.kt:32:28)
    at 3   PhoenixShared                       0x0000000106d6e18a kfun:kotlin.IllegalArgumentException#<init>(){} + 58 (/Users/teamcity/buildAgent/work/cae0e6559deed4c4/runtime/src/main/kotlin/kotlin/Exceptions.kt:57:28)
    at 4   PhoenixShared                       0x0000000106dc615a ThrowIllegalArgumentException + 122 (/Users/teamcity/buildAgent/work/cae0e6559deed4c4/runtime/src/main/kotlin/kotlin/native/internal/RuntimeUtils.kt:72:11)
    at 5   PhoenixShared                       0x0000000106e96839 AllocArrayInstanceStrict + 73
    at 6   PhoenixShared                       0x000000010741abd8 kfun:fr.acinq.eclair.io.$receiveFullyCOROUTINE$67#invokeSuspend(kotlin.Result<kotlin.Any?>){}kotlin.Any? + 600 (/Users/Dominique/git/eclair-kmp/src/commonMain/kotlin/fr/acinq/eclair/io/TcpSocket.kt:41:9)
    at 7   PhoenixShared                       0x000000010741af9b kfun:fr.acinq.eclair.io#receiveFully@fr.acinq.eclair.io.TcpSocket(kotlin.Int){}kotlin.ByteArray + 283 (/Users/Dominique/git/eclair-kmp/src/commonMain/kotlin/fr/acinq/eclair/io/TcpSocket.kt:41:9)
    at 8   PhoenixShared                       0x0000000107402421 kfun:fr.acinq.eclair.io.Peer.$establishConnection$lambda-15$receive$lambda-9COROUTINE$52.invokeSuspend#internal + 641 (/Users/Dominique/git/eclair-kmp/src/commonMain/kotlin/fr/acinq/eclair/io/Peer.kt:210:53)
    at 9   PhoenixShared                       0x0000000107402959 kfun:fr.acinq.eclair.io.Peer.$establishConnection$lambda-15$receive$lambda-9COROUTINE$52.invoke#internal + 233 (/Users/Dominique/git/eclair-kmp/src/commonMain/kotlin/fr/acinq/eclair/io/Peer.kt:210:36)
    at 10  PhoenixShared                       0x0000000107402c6e kfun:fr.acinq.eclair.io.Peer.$establishConnection$lambda-15$receive$lambda-9COROUTINE$52.$<bridge-NNNU>invoke(kotlin.Int){}kotlin.Any?#internal + 238 (/Users/Dominique/git/eclair-kmp/src/commonMain/kotlin/fr/acinq/eclair/io/Peer.kt:210:36)
    at 11  PhoenixShared                       0x00000001073bba05 kfun:fr.acinq.eclair.io.LightningSession.$receiveCOROUTINE$22#invokeSuspend(kotlin.Result<kotlin.Any?>){}kotlin.Any? + 2741 (/Users/Dominique/git/eclair-kmp/src/commonMain/kotlin/fr/acinq/eclair/io/LightningSession.kt:16:27)
    at 12  PhoenixShared                       0x0000000106d97736 kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith(kotlin.Result<kotlin.Any?>){} + 758 (/Users/teamcity/buildAgent/work/cae0e6559deed4c4/runtime/src/main/kotlin/kotlin/coroutines/ContinuationImpl.kt:30:39)
    at 13  PhoenixShared                       0x0000000107149092 kfun:kotlinx.coroutines.DispatchedTask#run(){} + 2802 (/opt/buildAgent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/internal/DispatchedTask.kt:39:50)
    at 14  PhoenixShared                       0x000000010717f958 kfun:kotlinx.coroutines.DarwinMainDispatcher.dispatch$lambda-0#internal + 88 (/opt/buildAgent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/nativeDarwin/src/Dispatchers.kt:35:19)
    ... and 14 more common stack frames skipped

@dpad85 dpad85 added the bug Something isn't working label Jan 21, 2021
@sstone sstone self-assigned this Jan 21, 2021
@sstone sstone linked a pull request Jan 21, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants