romgrk / node-gtk

GTK+ bindings for NodeJS (via GObject introspection)
MIT License
493 stars 41 forks source link

Broadway html5 display crash with webkit2 example #332

Open bresnow opened 1 year ago

bresnow commented 1 year ago

I have a fairly unique issue as I built an alpine nodejs container running the appropriate dependencies. Using broadway as my GTK display. Some of the example apps work with node-gtk and thats great. But after the stderr below broadway crashes 100% of the time when i run the browser.js example. Any ideas why?

Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal
error: XDG_RUNTIME_DIR not set in the environment.
EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
webSettings:  WebKitSettings {}

These are the dependencies i have installed in the dockerfile

RUN apk update &&\
    apk add --no-cache git wget yajl dub dmd terminator xfce4 midori gedit \
    nautilus  htop gcc gcompat gjs vim bash  gnome gtk4.0 libsoup webkit2gtk \
    mate-desktop-environment dbus dbus-x11 lxdm \
    adwaita-icon-theme faenza-icon-theme gobject-introspection pkgconf \
    g++ make cairo py-pip python3 supervisor gobject-introspection &&\
    gvfs_pkgs=$(apk search gvfs -q | grep -v '\-dev' | grep -v '\-lang' | grep -v '\-doc') \
    apk add --no-cache $gvfs_pkgs &&\
    chmod -R 777 /etc/supervisord/  &&\
    mkdir -p /var/log/supervisord/ 

Notes: My GJS webit example does work without crashing. So.... curious case indeed