reddit / emacs

xwidget-webkit working, but crashes emacs when I go to certain sites

HumanBrainMapper · 2022-09-24 06:05
I am running emacs 29.0.50 on Ubuntu 20.04 compiled with xwidgets-webkit. It is working generally well, but certain websites (such as youtube) immediately crash emacs upon load (see the error message below). Any suggestions to fix this are welcome. (emacs:6295): Gtk-CRITICAL **: 23:55:54.306: gtk_window_resize: assertion 'width > 0' failed ** (emacs:6295): ERROR **: 23:55:57.249: Unable to configure xdg-desktop-portal access in the WebKit sandbox: GApplication is required. Fatal error 5: Trace/breakpoint trap Backtrace: emacs(+0x1a5612)[0x55c6760fe612] emacs(+0x544c3)[0x55c675fad4c3] emacs(+0x54a34)[0x55c675fada34] emacs(+0x1a3c2d)[0x55c6760fcc2d] emacs(+0x1a3d1f)[0x55c6760fcd1f] /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7f226e279420] /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x58295)[0x7f2274b5a295] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log_default_handler+0xb9)[0x7f2274b5b319] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_logv+0x21c)[0x7f2274b5b55c] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log+0x93)[0x7f2274b5b743] /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37(+0xc85a14)[0x7f2270c39a14] /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37(+0xc86c43)[0x7f2270c3ac43] /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37(+0xae5ae4)[0x7f2270a99ae4] /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37(+0xb6d1b0)[0x7f2270b211b0] /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37(+0xb7a4e1)[0x7f2270b2e4e1] /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37(+0x7fc18c)[0x7f22707b018c] /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37(+0x7f8a28)[0x7f22707aca28] /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37(+0xa4a7f8)[0x7f22709fe7f8] /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37(+0xa4bacd)[0x7f22709ffacd] /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37(+0xa4d131)[0x7f2270a01131] /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18(+0x1372ed7)[0x7f226fb7bed7] /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18(+0x13cf82d)[0x7f226fbd882d] /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18(+0x13d0153)[0x7f226fbd9153] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x14e)[0x7f2274b5404e] emacs(+0x2c2ce8)[0x55c67621bce8] emacs(+0x2744ba)[0x55c6761cd4ba] emacs(+0x67804)[0x55c675fc0804] emacs(+0x19537f)[0x55c6760ee37f] emacs(+0x195a9a)[0x55c6760eea9a] emacs(+0x197650)[0x55c6760f0650] emacs(+0x211577)[0x55c67616a577] emacs(+0x1831ea)[0x55c6760dc1ea] emacs(+0x2114b9)[0x55c67616a4b9] emacs(+0x183186)[0x55c6760dc186] emacs(+0x189cf7)[0x55c6760e2cf7] emacs(+0x18a0a0)[0x55c6760e30a0] emacs(+0x5cc1f)[0x55c675fb5c1f] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f226c3ed083] emacs(+0x5d1de)[0x55c675fb61de] zsh: trace trap emacs
BlueFlo0d · 2022-09-25 00:52
Try setting the environment variable `WEBKIT_FORCE_SANDBOX=0`, e.g. by running your Emacs with `WEBKIT_FORCE_SANDBOX=0 emacs`
HumanBrainMapper · 2022-09-27 04:12
Thank you for your reply. This allows the website to load, but not the videos. I read about this in another thread too (other OP, same issue, and same potential solution with the same outcome), that I can't seem to find anymore now. Edit: found it again: putting [the link](https://www.reddit.com/r/emacs/comments/wm0wro/unable_to_configure_xdgdesktopportal_access_in/) here for reference.