ttalvitie / browservice

Browservice: Browse the modern web on historical browsers
MIT License
1.1k stars 32 forks source link

Multiple Library Errors #65

Open xproot opened 2 years ago

xproot commented 2 years ago

OS: Manjaro x86_64; Kernel: 5.15.21-1-MANJARO; This was downloaded from the aur; Won't show any websites

[xproot@xproot-lappy ~]$ browservice --vice-opt-http-listen-addr=0.0.0.0:8081 --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"
INFO @ src/main.cpp:200 -- Loading vice plugin retrojsvice.so
INFO @ src/main.cpp:207 -- Initializing vice plugin retrojsvice.so
INFO @ retrojsvice.so src/context.cpp:281 -- Creating retrojsvice plugin context
INFO @ src/xvfb.cpp:64 -- Starting Xvfb X server as child process
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
INFO @ src/xvfb.cpp:135 -- Xvfb X server :1 successfully started
/usr/lib/gio/modules/libgiolibproxy.so: undefined symbol: g_task_set_name
Failed to load module: /usr/lib/gio/modules/libgiolibproxy.so
/usr/lib/gvfs/libgvfscommon.so: undefined symbol: g_task_set_name
Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so
/usr/lib/gvfs/libgvfscommon.so: undefined symbol: g_task_set_name
Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so
/tmp/.mount_browseNgixk9/opt/browservice/../../usr/lib/libgnutls.so.30: version `GNUTLS_3_6_3' not found (required by /usr/lib/gio/modules/libgiognutls.so)
Failed to load module: /usr/lib/gio/modules/libgiognutls.so
/usr/lib/gio/modules/libgiognomeproxy.so: undefined symbol: g_task_set_name
Failed to load module: /usr/lib/gio/modules/libgiognomeproxy.so
[0226/203049.246421:ERROR:gl_surface_glx.cc(439)] glxQueryVersion failed
[0226/203049.250278:ERROR:gl_ozone_glx.cc(28)] GLSurfaceGLX::InitializeOneOff failed.
[0226/203049.333937:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
INFO @ retrojsvice.so src/context.cpp:331 -- Starting plugin
INFO @ retrojsvice.so src/http.cpp:620 -- Starting HTTP server (listen address: 0.0.0.0:8081)
INFO @ retrojsvice.so src/http.cpp:628 -- HTTP server started successfully
[0226/203049.772037:ERROR:gl_surface_glx.cc(439)] glxQueryVersion failed
[0226/203049.772964:ERROR:gl_ozone_glx.cc(28)] GLSurfaceGLX::InitializeOneOff failed.
[0226/203049.813618:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[0226/203049.917170:ERROR:gl_surface_glx.cc(439)] glxQueryVersion failed
[0226/203049.919345:ERROR:gl_ozone_glx.cc(28)] GLSurfaceGLX::InitializeOneOff failed.
[0226/203049.936683:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[0226/203050.345974:ERROR:angle_platform_impl.cc(44)] Display.cpp:894 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-3): Initialization of an object could not be completed for implementation-specific reasons, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1048.
[0226/203050.346407:ERROR:gl_surface_egl.cc(782)] EGL Driver message (Critical) eglInitialize: Internal Vulkan error (-3): Initialization of an object could not be completed for implementation-specific reasons, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1048.
[0226/203050.347742:ERROR:gl_surface_egl.cc(1382)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[0226/203050.348274:ERROR:gl_ozone_egl.cc(20)] GLSurfaceEGL::InitializeOneOff failed.
[0226/203050.410190:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[0226/203050.523339:WARNING:vaapi_wrapper.cc(611)] VAAPI video acceleration not available for disabled
[0226/203050.523969:ERROR:gpu_init.cc(457)] Passthrough is not supported, GL is disabled, ANGLE is 
INFO @ retrojsvice.so src/window_manager.cpp:317 -- New window requested by user
INFO @ src/server.cpp:51 -- Got request for new window from vice plugin
INFO @ src/window.cpp:477 -- Creating window 1
INFO @ retrojsvice.so src/window_manager.cpp:328 -- Creating window 1
INFO @ src/window.cpp:151 -- CEF browser for window 1 created
INFO @ src/bookmarks.cpp:138 -- Bookmark file '/home/xproot/.browservice/bookmarks' does not exist, using empty set of bookmarks
ttalvitie commented 2 years ago

Can reproduce on Manjaro. The main issue seems to be with the graphics rendering. I noticed that if you add the command line option --chromium-args=disable-gpu, it starts showing webpages correctly again. I suggest that you use that for now.

My action plan on this:

xproot commented 2 years ago

I've had to disable GPU in some apps too, like Spotify (sometimes) and Gnome Online Accounts (seems to have been fixed). I wonder if this is related...

ttalvitie commented 2 years ago

Thanks for the pointer; it sounds very plausible that it is related. Spotify, like Browservice, uses CEF and thus faces the same problem of providing binary packages compatible with Arch that probably has newer graphics libraries and thus may be the first to manifest compatibility issues.

ttalvitie commented 2 years ago

The issue seems to be that I had forgotten to add some Vulkan libraries that were added to CEF to the Browservice distribution. This should be fixed in commits 917331e7cea7dcf4184d7b5fde43a3ad36208d0a and 906e3eac128160fcbf7ec95ed3bfe7d0dd5a01cf ; the fix will be included in the next release.