emacs-eaf / eaf-browser

A modern, customizable and extensible browser in Emacs
GNU General Public License v3.0
129 stars 26 forks source link

eaf-demo tells me that everything works but the web browser is not #41

Open mattiasdrp opened 1 year ago

mattiasdrp commented 1 year ago
QGLXContext: Failed to create dummy context
qt.webenginecontext: 

GL Type: desktop
Surface Type: OpenGL
Surface Profile: NoProfile
Surface Version: 1.4
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: no
Using Multithreaded OpenGL: no

Init Parameters:
  *  application-name eaf.py 
  *  browser-subprocess-path /home/mattias/.local/lib/python3.10/site-packages/PyQt6/Qt6/libexec/QtWebEngineProcess 
  *  disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture 
  *  disable-setuid-sandbox  
  *  disable-speech-api  
  *  disable-web-security  
  *  enable-features NetworkServiceInProcess,TracingServiceInProcess 
  *  enable-gpu-rasterization  
  *  enable-native-gpu-memory-buffers  
  *  enable-threaded-compositing  
  *  ignore-gpu-blocklist  
  *  in-process-gpu  
  *  use-gl desktop 

QQuickWidget: Failed to make context current
QQuickRenderControl: grabs are not supported with the current Qt Quick backend
[8028:8028:0914/183304.065229:ERROR:shared_context_state.cc(410)] SharedContextState::InitializeGL failure max_texture_units : 0 is less that minimum required : 8
[8028:8028:0914/183304.065284:ERROR:gpu_channel_manager.cc(865)] ContextResult::kFatalFailure: Failed to Initialize GL for  SharedContextState
[8028:8028:0914/183304.065676:ERROR:shared_image_stub.cc(524)] SharedImageStub: unable to create context
[8028:8028:0914/183304.065712:ERROR:gpu_channel.cc(568)] GpuChannel: Failed to create SharedImageStub
...

The ... are the last 4 lines (the ones starting with [8028...] repeating without stopping.

Describe the bug

It looks like eaf-browser is unable to generate a webpage.

To Reproduce

M-x eaf-open-browser RET duckduckgo.com RET and nothing happens.

Expected behavior

A webpage should be displayed.

Versions (please complete the following info):

Additional context

I haven't tested on my Linux computer but I think it's related to WSL

manateelazycat commented 1 year ago

I guess WSL2 break GPU that cause Qt WebEngine failed to start.