Skip to content

Mic does not turn on in room; throws LiveKitException: publisher is closed #676

@4555jan

Description

@4555jan

🐛 Describe the bug

There is an issue where the microphone does not turn on inside a room.

As shown in the attached video, toggling the mic has no effect and eventually throws a runtime exception. The mic remains disabled and gives following error and in the video as well shows certain errors

screen-recording-2025-12-28-233542_6V7fCYIz.1.mp4

Error Logs

[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: LiveKit Exception: [UnexpectedConnectionState] publisher is closed E/flutter ( 6046): #0 EngineInternalMethods.createTransceiverRTCRtpSender (package:livekit_client/src/core/engine.dart:1255:7) engine.dart:1255 E/flutter ( 6046): #1 LocalParticipant.publishAudioTrack.negotiate (package:livekit_client/src/participant/local.dart:127:45) local.dart:127 E/flutter ( 6046): #2 LocalParticipant.publishAudioTrack (package:livekit_client/src/participant/local.dart:134:87) local.dart:134 E/flutter ( 6046): #3 LocalParticipant.setSourceEnabled (package:livekit_client/src/participant/local.dart:701:22) local.dart:701 E/flutter ( 6046): <asynchronous suspension> E/flutter ( 6046): #4 SingleRoomController.turnOnMic (package:resonate/controllers/single_room_controller.dart:263:5) single_room_controller.dart:263 E/flutter ( 6046): <asynchronous suspension> E/flutter ( 6046):

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions