Skip to content

ChatAudioIO is aborted by JavaScript stack overflow #1635

@stc1988

Description

@stc1988

Build environment: macOS,
Moddable SDK version: 8.2.0
Target device: M5Stack CoreS3

Steps to Reproduce
Build and install the example app chataudioio-tools and see error XS abort: JavaScript stack overflow

Other information

It seems to occur when JSON.stringify is called in ChatWorker.sendJSON.

The issue appears to be resolved by specifying something like nativeStack: 8192 when creating the worker..

The required value will likely vary depending on future use cases, so it may be a good idea to extend ChatAudioIO to allow WorkerOptions to be specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions