webui icon indicating copy to clipboard operation
webui copied to clipboard

Segmentation fault on calls to backend functions

Open renatoathaydes opened this issue 8 months ago • 6 comments

Describe the Bug

I am running into segmentation faults very often when invoking backend functions from the browser. I am just starting with WebUI and this makes me think the project is still a bit early in development, is that correct?

I am using the Deno runtime, is that perhaps not well supported or segmentation faults are usually problems in the "core" engine itself?

Expected Behavior

No segmentation faults.

Reproduction Steps

Setup a function using bind:

myWindow.bind('runScript', (e: WebUI.Event) => {
    myWindow.script(e.arg.string(0));
});

From the browser UI, just invoke that with broken JS code:

foo()))

This kills the application due to a segmentation fault.

Error Logs

[1]    85807 segmentation fault  deno run --allow-all app.ts


### Possible Solution

_No response_

### Version

2.4.4

### Environment details (OS name and version, etc.)

```shell
Darwin 23.4.0 x86_64

renatoathaydes avatar Jun 15 '24 20:06 renatoathaydes