Skip to content

[Communication calling] - selectMicrophone causes Uncaught (in promise) TypeError: this._telemetryLogManager is undefined #31461

Open

Description

  • Package Name: @azure/communication-calling
  • Package Version: 1.29.1, 1.28.4, 1.26.2

Describe the bug
After starting or joining room call and calling .selectMicrophone error triggers and microphone does not get changed.

Uncaught (in promise) TypeError: this._telemetryLogManager is undefined
    audioSourceChanged sdk.bundle.js:96
    emit sdk.bundle.js:95
    emit sdk.bundle.js:95
    _audioSourceChangedSub sdk.bundle.js:95
    raiseChanged sdk.bundle.js:72
    raiseEvents sdk.bundle.js:72
    raiseEvents sdk.bundle.js:72
    raiseChanged sdk.bundle.js:72
sdk.bundle.js:96:236229
    audioSourceChanged webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:96
    apply self-hosted:2292
    emit webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:95
    emit webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:95
    _audioSourceChangedSub webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:95
    raiseChanged webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    raiseEvents webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    forEach self-hosted:160
    raiseEvents webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    raiseChanged webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    notifyStreamChange webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    notifyChange webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    forEach self-hosted:1880
    notifyChange webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    onSelectedDevicesChanged webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    deviceManagerSubscriptions webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    _raiseEventImpl webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    raiseEvents webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    forEach self-hosted:160
    raiseEvents webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    _raiseEventImpl webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    raise webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    selectDevices webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    selectDevices webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    selectDevices webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:72
    selectMicrophone webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:96
    value webpack-internal:///./node_modules/@azure/communication-calling/dist/sdk.bundle.js:81
    get webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js:194
    withAsyncErrorTeedToState webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/calling-stateful-client/src/CallContext.js:926
    InterpretGeneratorResume self-hosted:1420
    next self-hosted:1341
    __awaiter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/calling-stateful-client/src/CallContext.js:25
    __awaiter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/calling-stateful-client/src/CallContext.js:21
    withAsyncErrorTeedToState webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/calling-stateful-client/src/CallContext.js:924
    onSelectMicrophone webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js:129
    InterpretGeneratorResume self-hosted:1420
    next self-hosted:1341
    __awaiter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js:19
    __awaiter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js:15
    onSelectMicrophone webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js:125
    setMicrophone webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js:583
    InterpretGeneratorResume self-hosted:1420
    next self-hosted:1341
    __awaiter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js:38
    __awaiter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js:34
    setMicrophone webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js:582
    asyncTeeErrorToEventEmitter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js:1084
    InterpretGeneratorResume self-hosted:1420
    next self-hosted:1341
    __awaiter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js:38
    __awaiter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js:34
    asyncTeeErrorToEventEmitter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js:1082
    setMicrophone webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js:582
    InterpretGeneratorResume self-hosted:1420
    next self-hosted:1341
    __awaiter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js:38
    __awaiter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js:34
    setMicrophone webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js:581
    onSelectMicrophone webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js:89
    InterpretGeneratorResume self-hosted:1420
    next self-hosted:1341
    __awaiter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js:19
    __awaiter webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js:15
    onSelectMicrophone webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js:88
    onClick webpack-internal:///./node_modules/@azure/communication-react/dist/dist-esm/react-components/src/components/DevicesButton.js:134
    executeItemClick webpack-internal:///./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.base.js:551
    onItemClickBase webpack-internal:///./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.base.js:522
    _onItemClick webpack-internal:///./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js:26
    React 19
    forEach self-hosted:4288
    React 16

To Reproduce
Steps to reproduce the behavior:

  1. Setup call and start or join to room call
  2. Select microphone with .selectMicrophone(newMicrophone)

Expected behavior
Microphone to be changed without error

Additional context
Tested with Azure calling sample app (https://github.com/Azure-Samples/communication-services-web-calling-hero) and with my own application.

This error does not happen in version 1.23.2.

This error does not happen BEFORE joining the room so user can change microphone without error before joining.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.CommunicationService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions