Skip to content

tdweb 1.8.52 - out of bounds on downloadFile #3411

@badm18

Description

@badm18

Browser - google chrome v139.0.7258.66

Hello, I encountered an issue when using TDLib in the browser, which throws the following error.

{
    "@type": "updateFatalError",
    "error": {
       message: ''memory access out of bounds'',
       stack: "'RuntimeError: memory access out of bounds\n    at http://localhost:3001/3954d526ee7f66ea79957ddbbc4f4d44.wasm:wasm-function[45806]:0x8b2030\n    at http://localhost:3001/3954d526ee7f66ea79957ddbbc4f4d44.wasm:wasm-function[1682]:0x52aaf\n    at http://localhost:3001/3954d526ee7f66ea79957ddbbc4f4d44.wasm:wasm-function[12473]:0x2e6cbb\n    at http://localhost:3001/3954d526ee7f66ea79957ddbbc4f4d44.wasm:wasm-function[19319]:0x45a688\n    at http://localhost:3001/3954d526ee7f66ea79957ddbbc4f4d44.wasm:wasm-function[20557]:0x497946\n    at http://localhost:3001/3954d526ee7f66ea79957ddbbc4f4d44.wasm:wasm-function[45541]:0x895dbe\n    at ccall (http://localhost:3001/1.b5452fdafbf71399f7a9.worker.js:2585:4712)\n    at Object.td_receive (http://localhost:3001/1.b5452fdafbf71399f7a9.worker.js:2585:5102)\n    at TdClient.receive (http://localhost:3001/b5452fdafbf71399f7a9.worker.js:5482:39)\n    at http://localhost:3001/b5452fdafbf71399f7a9.worker.js:5534:23'"
}
}

I couldn't find a 100% reproducible way to trigger it, but if you send the downloadFile event, sooner or later this error occurs. I noticed some strange behavior: it happens after the page reloads, meaning after authorization, the download works fine and nothing breaks, but as soon as the page reloads, problems start.

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