We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Happens with 1.1.6 and 1.1.7 and seems to be related to calling webview.eval
webview.eval
Ran: bun webview.js
bun webview.js
I've included the content of the two files which I am loading with Bun.file and injecting into the webview:
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <table is="tui-table"></table> </body> <template id="table-content" ><thead><tr><th>head</th></tr></thead><tbody><tr><td>row</td></tr></tbody></template> </html>
// tui.ts class TUITable extends HTMLTableElement { constructor() { super(); } connectedCallback() { console.log("Custom element added to page."); } disconnectedCallback() { console.log("Custom element removed from page."); } adoptedCallback() { console.log("Custom element moved to new page."); } attributeChangedCallback(name, oldValue, newValue) { console.log(`Attribute ${name} has changed.`); } } customElements.define("tui-table", TUITable, { extends: "table" });
import { Webview } from "webview-bun"; const index = Bun.file("index.html"); const script = Bun.file("out/tui.js"); const webview = new Webview(); async function init() { var html = await index.text(); var js = await script.text(); webview.setHTML(html); webview.run(); webview.eval(js); } init();
(bun:1333647): Gtk-CRITICAL **: 17:04:45.141: gtk_main_quit: assertion 'main_loops != NULL' failed ============================================================ Bun v1.1.6 (e58d67b4) Linux x64 Args: "bun", "webview.js" Features: tsconfig Builtins: "bun:ffi" "bun:main" Elapsed: 36564ms | User: 399ms | Sys: 144ms RSS: 1.07GB | Peak: 0.27GB | Commit: 1.07GB | Faults: 0
Bun v1.1.6 (e58d67b) on linux x86_64 [AutoCommand]
e58d67b
Segmentation fault at address 0x00000010
ld-temp.o:0
WTF::jscSignalHandler
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How can we reproduce the crash?
Happens with 1.1.6 and 1.1.7 and seems to be related to calling
webview.eval
Ran:
bun webview.js
I've included the content of the two files which I am loading with Bun.file and injecting into the webview:
index.html
out/tui.js
JavaScript/TypeScript code that reproduces the crash?
Relevant log output
Stack Trace (bun.report)
Bun v1.1.6 (
e58d67b
) on linux x86_64 [AutoCommand]Segmentation fault at address 0x00000010
ld-temp.o:0
:WTF::jscSignalHandler
The text was updated successfully, but these errors were encountered: