Ubuntu 20.04 上的 Opera snap 浏览器 - 加载缓慢且出现错误

Ubuntu 20.04 上的 Opera snap 浏览器 - 加载缓慢且出现错误

我正在尝试在 Ubunt20.04 上使用 Opera snap。它已从 Ubuntu 软件应用程序 (snap-store) 加载

Opera 加载速度非常慢。如果从终端运行 Opera,在漫长的加载过程中会显示以下一系列错误:

$ opera

(opera:282340): Gtk-WARNING **: 11:06:10.643: Theme parsing error: gtk.css:1428:23: 'font-feature-settings' is not a valid property name

(opera:282340): Gtk-WARNING **: 11:06:10.649: Theme parsing error: gtk.css:3318:25: 'font-feature-settings' is not a valid property name

(opera:282340): Gtk-WARNING **: 11:06:10.650: Theme parsing error: gtk.css:3780:23: 'font-feature-settings' is not a valid property name
[282340:282340:0506/110629.601695:ERROR:url_pattern_set.cc(259)] Invalid url pattern: chrome://startpage/
[282340:282340:0506/110629.601878:ERROR:url_pattern_set.cc(259)] Invalid url pattern: chrome://startpage/
[282340:282340:0506/110629.601939:ERROR:url_pattern_set.cc(259)] Invalid url pattern: chrome://startpage/
[282340:282340:0506/110629.664197:ERROR:gpu_process_host.cc(975)] GPU process exited unexpectedly: exit_code=512
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[282508:282508:0506/110637.364062:ERROR:angle_platform_impl.cc(44)] Display.cpp:966 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[282508:282508:0506/110637.364421:ERROR:gl_surface_egl.cc(808)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[282508:282508:0506/110637.364500:ERROR:gl_surface_egl.cc(1430)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[282508:282508:0506/110637.603991:ERROR:angle_platform_impl.cc(44)] Display.cpp:966 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[282508:282508:0506/110637.604170:ERROR:gl_surface_egl.cc(808)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[282508:282508:0506/110637.604246:ERROR:gl_surface_egl.cc(1430)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[282508:282508:0506/110637.604318:ERROR:gl_ozone_egl.cc(20)] GLSurfaceEGL::InitializeOneOff failed.
[282508:282508:0506/110637.862536:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[282696:282696:0506/110642.897623:ERROR:angle_platform_impl.cc(44)] Display.cpp:966 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[282696:282696:0506/110642.897863:ERROR:gl_surface_egl.cc(808)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[282696:282696:0506/110642.897940:ERROR:gl_surface_egl.cc(1430)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[282696:282696:0506/110642.899024:ERROR:angle_platform_impl.cc(44)] Display.cpp:966 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[282696:282696:0506/110642.900229:ERROR:gl_surface_egl.cc(808)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[282696:282696:0506/110642.911862:ERROR:gl_surface_egl.cc(1430)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[282696:282696:0506/110642.911979:ERROR:gl_ozone_egl.cc(20)] GLSurfaceEGL::InitializeOneOff failed.
[282696:282696:0506/110642.915592:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
[282340:282340:0506/110646.476259:ERROR:named_platform_channel_posix.cc(146)] connect /home/tony/snap/opera/175/.config/opera/oauc_pipe_r: Connection refused (111)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[282837:282837:0506/110646.578900:ERROR:angle_platform_impl.cc(44)] Display.cpp:966 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[282837:282837:0506/110646.579131:ERROR:gl_surface_egl.cc(808)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[282837:282837:0506/110646.579200:ERROR:gl_surface_egl.cc(1430)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[282837:282837:0506/110646.580011:ERROR:angle_platform_impl.cc(44)] Display.cpp:966 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[282837:282837:0506/110646.580093:ERROR:gl_surface_egl.cc(808)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[282837:282837:0506/110646.580157:ERROR:gl_surface_egl.cc(1430)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[282837:282837:0506/110646.580216:ERROR:gl_ozone_egl.cc(20)] GLSurfaceEGL::InitializeOneOff failed.
[282837:282837:0506/110646.587198:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[283084:283084:0506/110647.570670:ERROR:angle_platform_impl.cc(44)] Display.cpp:966 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[283084:283084:0506/110647.570979:ERROR:gl_surface_egl.cc(808)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[283084:283084:0506/110647.571080:ERROR:gl_surface_egl.cc(1430)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[283084:283084:0506/110647.571936:ERROR:angle_platform_impl.cc(44)] Display.cpp:966 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[283084:283084:0506/110647.572024:ERROR:gl_surface_egl.cc(808)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[283084:283084:0506/110647.572089:ERROR:gl_surface_egl.cc(1430)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[283084:283084:0506/110647.572152:ERROR:gl_ozone_egl.cc(20)] GLSurfaceEGL::InitializeOneOff failed.
[283084:283084:0506/110647.576046:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
[282340:282340:0506/110702.789255:ERROR:gpu_process_host.cc(975)] GPU process exited unexpectedly: exit_code=512
Fontconfig error: Cannot load default config file: No such file: (null)
[283192:283192:0506/110703.865182:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[283192:283192:0506/110707.504485:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
[282671:8:0506/110708.223071:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[282655:7:0506/110708.225664:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[282644:8:0506/110708.226218:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[282659:8:0506/110708.280366:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[282340:282340:0506/110719.419117:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.", source: chrome://startpage/ (0)

答案1

不要使用 Snap! 几乎所有 snap 加载时都很慢。我不知道是否有 opera .deb 包,apt-get install opera因为我不使用此浏览器,但我尽量避免使用 snap,你也应该这样做。

答案2

不幸的是,由于 libffmpeg.so 文件存在缺陷,Opera.deb 软件包在播放视频时存在已知问题。Snap 软件包不存在此问题。

答案3

我还发现 opera snap 加载速度非常慢。这个问题是由于 opera snap(2022 年中)造成的。并不是因为它是一个 snap。许多 snap 第一次加载很慢,随后加载速度很快。这在大型应用程序(例如浏览器)中尤其明显。在 opera snap 的情况下,第一次运行时的优化似乎没有发生。我正在为 3 个浏览器使用 snap,只有 opera snap 有这个问题。我喜欢 snap 沙盒的好处——互联网的手非常脏——我希望它戴上橡胶手套来拜访我。对我来说,这个好处让重复的缓慢加载不是什么大问题。我希望 opera 团队能解决这个问题,因为可能需要超过 10 秒才能达到可用状态。我还发现窗口总是以默认大小加载,而不是全屏加载——窗口加载参数不会被保存。加载后,其他东西似乎正常工作。

相关内容