Skip to content

Bug: WASM Error #498

@orimay

Description

@orimay

Describe the bug

I am getting the following error:

surrealdb-wasm.mjs:1349  Uncaught Error: recursive use of an object detected which would lead to unsafe aliasing in rust
    at imports.wbg.__wbindgen_throw (surrealdb-wasm.mjs:1349:9)
    at 02e0af06:0x8fe4d5
    at 02e0af06:0x8fe4e4
    at 02e0af06:0x866e5b
    at 02e0af06:0x8640a8
    at 02e0af06:0x384677
    at 02e0af06:0x68947d
    at 02e0af06:0x88401c
    at __wbg_adapter_59 (surrealdb-wasm.mjs:279:7)
    at real (surrealdb-wasm.mjs:215:11)

Steps to reproduce

I have not been able to detect where it is coming from and couldn't reproduce on a smaller project, but it is consistent within my project, and it makes the first one or two queries to fail, but the rest work well. The query contents doesn't matter (even a RETURN 0; will fail). Happens with both WebWorker and local engines

Expected behaviour

No WASM errors or, at least, errors coming as a result of a corresponding query, and not a random unhandled uncaughtable exception

SurrealDB version

2.0.0-alpha.14

JavaScript SDK version

wasm 2.3.5

Contact Details

[email protected]

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct (repository /surrealdb.js)

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions