Skip to content

[Windows] SIGTERM / Crash on connection #121

Closed
@rokk4

Description

@rokk4

Using the example app results in a crash when connecting.

The issue was always there, in all LiveKit versions that I tried, not just the recent releases.

The WebRTC Example App is working fine for me on windows.
How can I try to debug this?

client_sdk: 1.0.0
server: 1.0.1
flutter: 3.0.1

Connecting to VM Service at ws://127.0.0.1:51014/Pl7Ck9atwPw=/ws
flutter: Connecting with url: wss://live.xxxx-xxxx.net, token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NTQ3ODY4NTAsImlzcyI6IkFQSWFlb0JFeENOdG5CUyIsIm5iZiI6MTY1MjE5NDg1MCwic3ViIjoic2wiLCJ2aWRlbyI6eyJyb29tIjoidGVzdDAxIiwicm9vbUpvaW4iOnRydWV9fQ.7m6xVj3UFXIZfAucgqLjziZEefuX8ZLmgAMPYnEAWVE...
flutter: 12:57:06: Engine ConnectionState disconnected -> connecting
flutter: 12:57:06: [EngineEvent] Engine#148511108 EngineConnectionStateUpdatedEvent(newState: connecting, didReconnect: false, disconnectReason: null)
flutter: 12:57:06: SignalClient connecting with url: wss://live.xxxx-xxxx.net/rtc?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NTQ3ODY4NTAsImlzcyI6IkFQSWFlb0JFeENOdG5CUyIsIm5iZiI6MTY1MjE5NDg1MCwic3ViIjoic2wiLCJ2aWRlbyI6eyJyb29tIjoidGVzdDAxIiwicm9vbUpvaW4iOnRydWV9fQ.7m6xVj3UFXIZfAucgqLjziZEefuX8ZLmgAMPYnEAWVE&auto_subscribe=1&adaptive_stream=0&protocol=7&sdk=flutter&version=1.0.0&os=windows
flutter: 12:57:06: SignalClient ConnectionState disconnected -> connecting
flutter: 12:57:06: [SignalClient#728484996] cleanUp()
flutter: 12:57:06: [SignalEvent] SignalConnectionStateUpdatedEvent(newState: connecting, didReconnect: false, disconnectReason: null)
flutter: 12:57:06: [WebSocketIO] Connecting(uri: wss://live.xxxx-xxxx.net/rtc?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NTQ3ODY4NTAsImlzcyI6IkFQSWFlb0JFeENOdG5CUyIsIm5iZiI6MTY1MjE5NDg1MCwic3ViIjoic2wiLCJ2aWRlbyI6eyJyb29tIjoidGVzdDAxIiwicm9vbUpvaW4iOnRydWV9fQ.7m6xVj3UFXIZfAucgqLjziZEefuX8ZLmgAMPYnEAWVE&auto_subscribe=1&adaptive_stream=0&protocol=7&sdk=flutter&version=1.0.0&os=windows)...
flutter: 12:57:06: [WebSocketIO] Connected
flutter: 12:57:06: SignalClient ConnectionState connecting -> connected
flutter: 12:57:06: [SignalEvent] SignalConnectionStateUpdatedEvent(newState: connected, didReconnect: false, disconnectReason: null)
flutter: 12:57:06: [SignalEvent] Instance of 'SignalJoinResponseEvent'
flutter: 12:57:06: onConnected subscriberPrimary: true, serverVersion: 1.0.1, iceServers: [urls: turn:23.88.43.252:443?transport=udp
urls: turns:live-turn.xxxx-xxxx.net:443?transport=tcp
username: test01
credential: esfxSYymurP5zq7IwkfScqIlEb0N3nYLNRvruWzzSTbB
flutter: 12:57:06: [PCTransport] creating {sdpSemantics: unified-plan, iceServers: [{urls: [turn:23.88.43.252:443?transport=udp, turns:live-turn.therapy-lift.net:443?transport=tcp], username: test01, credential: test01}]}
flutter: 12:57:06: [Engine] Received JoinResponse, serverVersion: 1.0.1
flutter: 12:57:06: Room Connect completed
flutter: 12:57:06: [ParticipantEvent] ParticipantPermissionsUpdatedEvent(participant: LocalParticipant(sid: PA_mFLZ9tREXocx, identity: sl), permissions: Instance of 'ParticipantPermissions'), will notifyListeners()
flutter: 12:57:06: [RoomEvent] ParticipantPermissionsUpdatedEvent(participant: LocalParticipant(sid: PA_mFLZ9tREXocx, identity: sl), permissions: Instance of 'ParticipantPermissions'), will notifyListeners()
flutter: 12:57:06: [PCTransport] creating {sdpSemantics: unified-plan, iceServers: [{urls: [turn:23.88.43.252:443?transport=udp, turns:live-turn.therapy-lift.net:443?transport=tcp], username: test01, credential: test01}]}
flutter: 12:57:06: [SignalEvent] Instance of 'SignalTokenUpdatedEvent'
flutter: 12:57:06: [SignalEvent] Instance of 'SignalOfferEvent'
9
flutter: 12:57:06: [SignalEvent] Instance of 'SignalTrickleEvent'
Lost connection to device.
Exited (sigterm)
PS C:\Users\winislose\client-sdk-flutter> flutter doctor -v
[√] Flutter (Channel stable, 3.0.1, on Microsoft Windows [Version 10.0.19044.1706], locale de-DE)
    • Flutter version 3.0.1 at D:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fb57da5f94 (12 hours ago), 2022-05-19 15:50:29 -0700
    • Engine revision caaafc5604
    • Dart version 2.17.1
    • DevTools version 2.12.2

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) 
    • Android SDK at D:/android
    • Platform android-31, build-tools 30.0.3
    • Java binary at: D:\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.14)
    • Visual Studio at D:\Microsoft Visual Studio\2019
    • Visual Studio Community 2019 version 16.11.32428.217
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 4.1)
    • Android Studio at D:\androidstudio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Android Studio (version 2021.3)
    • Android Studio at D:\android-studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[√] VS Code (version 1.67.2)
    • VS Code at C:\Users\winislose\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.40.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19044.1706]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 101.0.4951.67
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 99.0.1150.55

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions