webview / webview_deno

🌐 Deno bindings for webview, a tiny library for creating web-based desktop GUIs
https://deno.land/x/webview
MIT License
1.44k stars 75 forks source link

Gtk error at exit #174

Open sigmaSd opened 2 months ago

sigmaSd commented 2 months ago
import { Webview } from "jsr:@webview/webview";

const html = `
  <html>
  <body>
    <h1>Hello from deno v${Deno.version.deno}</h1>
  </body>
  </html>
`;

const webview = new Webview();

webview.navigate(`data:text/html,${encodeURIComponent(html)}`);
webview.run();

deno run -A a.ts

(deno:32997): Gtk-CRITICAL **: 00:43:14.284: gtk_main_quit: assertion 'main_loops != NULL' failed
fish: Job 1, 'deno -A a.ts' terminated by signal SIGSEGV (Address boundary error)
gtk3-3.24.43-1.fc40.x86_64
gtk4-4.14.4-2.fc40.x86_64

The error seems to be a warning, but some times it casues issues, specially when invoking a worker it seems it make it not exit or segfault

The current workaround it to use Deno.exit(0)