fanglingsu / vimb

Vimb - the vim like browser is a webkit based web browser that behaves like the vimperator plugin for the firefox and usage paradigms from the great editor vim. The goal of vimb is to build a completely keyboard-driven, efficient and pleasurable browsing-experience.
https://fanglingsu.github.io/vimb/
GNU General Public License v3.0
1.36k stars 100 forks source link

webkit2gtk libsoup2/3 clash #749

Closed rahlhar closed 1 year ago

rahlhar commented 1 year ago
$ vimb --bug-info
Version:         3.7.0
WebKit compile:  2.40.2
WebKit run:      2.40.4
GTK compile:     3.24.38
GTK run:         3.24.38
libsoup compile: 3.4.2
libsoup run:     3.4.2
Extension dir:   /usr/lib/vimb

Steps to reproduce

Perhaps:

Not entirely known. Running fine having installed on artix, but after installing badwolf and wyebadblock, which I believe pulled in webkit2gtk, I get the following error, resulting in webview crashing.

I've included the whole console output, though I think the initial warnings are unrelated.

I'm using artix with wayland and dwl as the compositor. xwayland is also installed.

$ vimb
** Message: 17:33:42.594: Could not read style file: /home/<user>/.config/vimb/style.css

** (vimb:10576): WARNING **: 17:33:42.597: Error loading plugin: libvoikko.so.1: cannot open shared object file: No such file or directory

** (vimb:10576): WARNING **: 17:33:42.597: Error loading plugin: libhspell.so.0: cannot open shared object file: No such file or directory

** (vimb:10576): WARNING **: 17:33:42.597: Error loading plugin: libnuspell.so.5: cannot open shared object file: No such file or directory

(vimb:10576): Gdk-CRITICAL **: 17:33:42.599: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed

(WebKitWebProcess:10631): libsoup-ERROR **: 17:33:43.240: libsoup3 symbols detected. Using libsoup2 and libsoup3 in the same process is not supported.

Expected behaviour

vimb to use wbkit2gtk-4.1 even if webkit2gtk is also installed, and for webview to run fine.

Actual behaviour

vimb appears to use an older version of webkit2gtk if present, which I believe uses libsoup2 instead of libsoup3; webview crashes.

Notes

This felt like it could be related to issue 708, but that was solved with PR 727.

I thought the issue was that vimb was not using webkit2gtk-4.1, but while writing this report, I can see it should be - it depends on it and it is installed - but it seems it is not prioritising it over older versions.

This looks to be supported by the output from vimb --bug-info.

jjakob commented 1 year ago

Did you use wyebadblock compiled for webkit2gtk-4.1? In my ebuild for it I compile it for 4.1 https://github.com/jjakob/gentoo-overlay/blob/master/www-misc/wyebadblock/wyebadblock-1.0.0_p20230212.ebuild

rahlhar commented 1 year ago

@jjakob Cheers! This was exactly what I needed. Turns out I had also poorly read both the README of wyebadblock and the comments in the AUR.

Altered the PKGBUILD, recompiled and all is well with the world again.

Much appreciated.