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

"Error downloading audio" when recording a voice mesage #24904

Open
RayBB opened this issue Mar 23, 2023 · 8 comments
Open

"Error downloading audio" when recording a voice mesage #24904

RayBB opened this issue Mar 23, 2023 · 8 comments
Labels
A-Voice-Messages O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect

Comments

@RayBB
Copy link

RayBB commented Mar 23, 2023

Steps to reproduce

  1. I was in a 1:1 non encrypted chat
  2. I clicked the button to record a voice message twice and talked for about a minute.
  3. When I clicked stop recording it said: "Error downloading audio"

Note: This was the first time I send a voice memo since I opened the app. The 2nd attempt to send a voice message worked fine.

image

voicemessageissue.mp4

Outcome

What did you expect?

To be able to listen to and send my audio

What happened instead?

Can't listen to my audio or send it

Operating system

macOS

Application version

1.11.25

How did you install the app?

https://packages.riot.im/desktop/install/macos/Element.dmg

Homeserver

matrix.org

Will you send logs?

Yes

@RayBB RayBB added the T-Defect label Mar 23, 2023
@germain-gg germain-gg added S-Major Severely degrades major functionality or product features, with no satisfactory workaround A-Voice-Messages O-Uncommon Most users are unlikely to come across this or unexpected workflow labels Mar 27, 2023
@madduck
Copy link

madduck commented Apr 26, 2024

I have the same problem on 1.11.65 on Linux, using Firefox:

image

It's notworthy that I can download the file and it'll play just fine in VLC, so not sure what the error actually is.

@t3chguy
Copy link
Member

t3chguy commented Apr 26, 2024

so not sure what the error actually is.

Without sharing the logs, neither do we.

@t3chguy
Copy link
Member

t3chguy commented Apr 26, 2024

The original logs for this issue have expired

@t3chguy t3chguy added the X-Needs-Info This issue is blocked awaiting information from the reporter label Apr 26, 2024
@madduck
Copy link

madduck commented Apr 26, 2024

Let me know what you need. There is nothing in the browser console, and /rageshake doesn't work:

image

PS: I accidentally filed this under "not in a browser" but I am actually just using Firefox, with my own 1.11.65.

@t3chguy
Copy link
Member

t3chguy commented Apr 26, 2024

@madduck you didn't file this issue, it was filed in 2023 by @RayBB.

If you want to contribute logs to this such that it isn't closed you'd need to reproduce on a client with rageshake configured, e.g. app.element.io or better yet develop.element.io

@madduck
Copy link

madduck commented Apr 26, 2024

Done, submitted via develop

@t3chguy t3chguy removed the X-Needs-Info This issue is blocked awaiting information from the reporter label Apr 26, 2024
@t3chguy
Copy link
Member

t3chguy commented Apr 26, 2024

2024-04-26T11:08:37.408Z E Error decoding recording:  The buffer passed to decodeAudioData contains an unknown content type. (EncodingError | 0)
2024-04-26T11:08:37.408Z W Trying to re-encode to WAV instead...
2024-04-26T11:08:37.408Z D Decoder WASM path: https://develop.element.io/bundles/d45bd6959fe3a2a3b9d2/../../decoderWorker.min.wasm
2024-04-26T11:08:37.408Z E Caught decoding error: attempting to access detached ArrayBuffer
./matrix-react-sdk/src/audio/compat.ts/decodeOgg/<@https://develop.element.io/bundles/d45bd6959fe3a2a3b9d2/bundle.js:206308:24
decodeOgg@https://develop.element.io/bundles/d45bd6959fe3a2a3b9d2/bundle.js:206305:10
./matrix-react-sdk/src/audio/Playback.ts/prepare/this.audioBuf</<@https://develop.element.io/bundles/d45bd6959fe3a2a3b9d2/bundle.js:205555:58

2024-04-26T11:08:37.408Z E Error processing audio file: attempting to access detached ArrayBuffer
./matrix-react-sdk/src/audio/compat.ts/decodeOgg/<@https://develop.element.io/bundles/d45bd6959fe3a2a3b9d2/bundle.js:206308:24
decodeOgg@https://develop.element.io/bundles/d45bd6959fe3a2a3b9d2/bundle.js:206305:10
./matrix-react-sdk/src/audio/Playback.ts/prepare/this.audioBuf</<@https://develop.element.io/bundles/d45bd6959fe3a2a3b9d2/bundle.js:205555:58

2024-04-26T11:08:37.425Z error Unhandled promise rejection: EncodingError: The buffer passed to decodeAudioData contains an unknown content type.

@madduck can you share the View Source for the impacted event?

@madduck
Copy link

madduck commented Apr 26, 2024

@t3chguy here you go:

{
  "type": "m.room.message",
  "content": {
    "body": "Voice message",
    "msgtype": "m.audio",
    "file": {
      "v": "v2",
      "key": {
        "alg": "A256CTR",
        "ext": true,
        "k": "tWZbUUgu7YqooPNuRAKb0E7sAjnjCLgUa8oqW5DN-Wk",
        "key_ops": [
          "encrypt",
          "decrypt"
        ],
        "kty": "oct"
      },
      "iv": "OSgZsfltb3AAAAAAAAAAAA",
      "hashes": {
        "sha256": "oRhIs49cQkE1BA+wx3IxVTYuaW1/HvHibKNtBNxCcWQ"
      },
      "url": "mxc://madduck.net/ZiNdsIhUUhucVCdjMepQPzrF"
    },
    "info": {
      "duration": 2817,
      "mimetype": "audio/ogg",
      "size": 3385
    },
    "org.matrix.msc1767.text": "Voice message",
    "org.matrix.msc1767.file": {
      "file": {
        "v": "v2",
        "key": {
          "alg": "A256CTR",
          "ext": true,
          "k": "tWZbUUgu7YqooPNuRAKb0E7sAjnjCLgUa8oqW5DN-Wk",
          "key_ops": [
            "encrypt",
            "decrypt"
          ],
          "kty": "oct"
        },
        "iv": "OSgZsfltb3AAAAAAAAAAAA",
        "hashes": {
          "sha256": "oRhIs49cQkE1BA+wx3IxVTYuaW1/HvHibKNtBNxCcWQ"
        },
        "url": "mxc://madduck.net/ZiNdsIhUUhucVCdjMepQPzrF"
      },
      "name": "Voice message.ogg",
      "mimetype": "audio/ogg",
      "size": 3385
    },
    "org.matrix.msc1767.audio": {
      "duration": 2817,
      "waveform": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ]
    },
    "org.matrix.msc3245.voice": {},
    "m.mentions": {}
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Voice-Messages O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect
Projects
None yet
Development

No branches or pull requests

4 participants