AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-429595

Jan Černý's questions

Martin Hope
Jan Černý
Asked: 2025-01-18 07:40:03 +0800 CST

Arch linux:gem 更新

  • 5

当我尝试使用系统更新我的宝石时,gem update出现此错误:

/usr/lib/ruby/3.3.0/rdoc/version.rb:8: warning: already initialized constant RDoc::VERSION
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/version.rb:8: warning: previous definition of VERSION was here
/usr/lib/ruby/3.3.0/rdoc.rb:70: warning: already initialized constant RDoc::VISIBILITIES
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:68: warning: previous definition of VISIBILITIES was here
/usr/lib/ruby/3.3.0/rdoc.rb:76: warning: already initialized constant RDoc::DOT_DOC_FILENAME
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:74: warning: previous definition of DOT_DOC_FILENAME was here
/usr/lib/ruby/3.3.0/rdoc.rb:81: warning: already initialized constant RDoc::GENERAL_MODIFIERS
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:79: warning: previous definition of GENERAL_MODIFIERS was here
/usr/lib/ruby/3.3.0/rdoc.rb:86: warning: already initialized constant RDoc::CLASS_MODIFIERS
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:84: warning: previous definition of CLASS_MODIFIERS was here
/usr/lib/ruby/3.3.0/rdoc.rb:91: warning: already initialized constant RDoc::ATTR_MODIFIERS
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:89: warning: previous definition of ATTR_MODIFIERS was here
/usr/lib/ruby/3.3.0/rdoc.rb:96: warning: already initialized constant RDoc::CONSTANT_MODIFIERS
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:94: warning: previous definition of CONSTANT_MODIFIERS was here
/usr/lib/ruby/3.3.0/rdoc.rb:101: warning: already initialized constant RDoc::METHOD_MODIFIERS
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:99: warning: previous definition of METHOD_MODIFIERS was here
Updating installed gems
Updating bundler
Fetching bundler-2.6.3.gem
Successfully installed bundler-2.6.3
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:36: warning: already initialized constant RDoc::RDoc::GENERATORS
/usr/lib/ruby/3.3.0/rdoc/rdoc.rb:36: warning: previous definition of GENERATORS was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:41: warning: already initialized constant RDoc::RDoc::UNCONDITIONALLY_SKIPPED_DIRECTORIES
/usr/lib/ruby/3.3.0/rdoc/rdoc.rb:41: warning: previous definition of UNCONDITIONALLY_SKIPPED_DIRECTORIES was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:46: warning: already initialized constant RDoc::RDoc::TEST_SUITE_DIRECTORY_NAMES
/usr/lib/ruby/3.3.0/rdoc/rdoc.rb:46: warning: previous definition of TEST_SUITE_DIRECTORY_NAMES was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/darkfish.rb:64: warning: already initialized constant RDoc::Generator::Darkfish::BUILTIN_STYLE_ITEMS
/usr/lib/ruby/3.3.0/rdoc/generator/darkfish.rb:64: warning: previous definition of BUILTIN_STYLE_ITEMS was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/darkfish.rb:80: warning: already initialized constant RDoc::Generator::Darkfish::GENERATOR_DIR
/usr/lib/ruby/3.3.0/rdoc/generator/darkfish.rb:80: warning: previous definition of GENERATOR_DIR was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/darkfish.rb:85: warning: already initialized constant RDoc::Generator::Darkfish::VERSION
/usr/lib/ruby/3.3.0/rdoc/generator/darkfish.rb:85: warning: previous definition of VERSION was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/darkfish.rb:90: warning: already initialized constant RDoc::Generator::Darkfish::DESCRIPTION
/usr/lib/ruby/3.3.0/rdoc/generator/darkfish.rb:90: warning: previous definition of DESCRIPTION was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/darkfish.rb:637: warning: already initialized constant RDoc::Generator::Darkfish::SVNID_PATTERN
/usr/lib/ruby/3.3.0/rdoc/generator/darkfish.rb:637: warning: previous definition of SVNID_PATTERN was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/ri.rb:12: warning: already initialized constant RDoc::Generator::RI::DESCRIPTION
/usr/lib/ruby/3.3.0/rdoc/generator/ri.rb:12: warning: previous definition of DESCRIPTION was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/pot.rb:63: warning: already initialized constant RDoc::Generator::POT::DESCRIPTION
/usr/lib/ruby/3.3.0/rdoc/generator/pot.rb:63: warning: previous definition of DESCRIPTION was here
Parsing documentation for bundler-2.6.3
Before reporting this, could you check that the file you're documenting
has proper syntax:

  /usr/bin/ruby -c lib/bundler.rb

RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.

The internal error was:

    (ArgumentError) wrong number of arguments (given 4, expected 5)

ERROR:  While executing gem ... (ArgumentError)
    wrong number of arguments (ArgumentError)
    /usr/lib/ruby/3.3.0/rdoc/parser.rb:167:in `for'
    /home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:359:in `parse_file'
    /home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:415:in `block in parse_files'
    /home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:413:in `map'
    /home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:413:in `parse_files'
    /home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rubygems_hook.rb:202:in `block in generate'
    /home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rubygems_hook.rb:201:in `chdir'
    /home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rubygems_hook.rb:201:in `generate'
    /home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rubygems_hook.rb:62:in `block in generate'
    /home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rubygems_hook.rb:61:in `each'
    /home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rubygems_hook.rb:61:in `generate'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/request_set.rb:313:in `block in install_hooks'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/request_set.rb:312:in `each'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/request_set.rb:312:in `install_hooks'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/request_set.rb:210:in `install'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/dependency_installer.rb:250:in `install'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/commands/update_command.rb:248:in `update_gem'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/commands/update_command.rb:260:in `block in update_gems'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/commands/update_command.rb:259:in `each'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/commands/update_command.rb:259:in `update_gems'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/commands/update_command.rb:120:in `execute'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/command.rb:326:in `invoke_with_build_args'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/command_manager.rb:253:in `invoke_command'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/command_manager.rb:194:in `process_args'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/command_manager.rb:152:in `run'
    /usr/lib/ruby/site_ruby/3.3.0/rubygems/gem_runner.rb:57:in `run'
    /sbin/gem:12:in `<main>'

我正在使用gem 3.5.23和ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]

谢谢你的帮助

arch-linux
  • 1 个回答
  • 50 Views
Martin Hope
Jan Černý
Asked: 2024-12-30 17:53:27 +0800 CST

在 arch linux 上安装 Gimp-devel:找不到所有必需的软件包:gegl >=0.4.52

  • 5

当我运行yay升级系统时,我遇到了以下问题:

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Searching AUR for updates...
 -> No AUR package found for gegl>=0.4.52

...

:: 1 packages to upgrade/install.
1  aur/gimp-devel            3.0.0rc1-1 -> 3.0.0rc2-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==> 
 -> could not find all required packages: gegl >=0.4.52

我使用的是完全更新的 Arch Linux。我该如何解决这个问题?

arch-linux
  • 2 个回答
  • 94 Views
Martin Hope
Jan Černý
Asked: 2024-01-07 19:52:30 +0800 CST

Arch linux:QT 应用程序在启动时崩溃:qt.qpa.plugin:无法在“”中找到 Qt 平台插件“wayland”

  • 5

当我尝试启动一些 QT 应用程序时,我收到以下消息:

qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, xcb, minimal, offscreen, vnc.

fish: Job 1, './app' terminated by signal SIGABRT (Abort)

如何解决这个问题,让QT应用程序可以正常运行?
谢谢你的帮助


信息:

  • 我用wayland + sway
  • 我qt5-wayland已经qt6-wayland安装了
arch-linux
  • 1 个回答
  • 31 Views
Martin Hope
Jan Černý
Asked: 2023-12-16 02:42:43 +0800 CST

Arch linux:AMD ryzen + AMD radeon 遇到浏览器冻结和崩溃问题

  • 7

我通过更换 SSD 将安装从 intel i7 + intel iris 转移到 AMD ryzen 5 + AMD radeon。我遇到这些问题:


症状

  • 一切工作正常,除了 CPU 负载随机爆炸到 30+ 并且系统冻结了几分钟。
  • 所有 Firefox、Brave 和 Electron 应用程序都会随机崩溃。我高度怀疑这将是具有硬件加速功能的东西。
  • 启动时我AMDGPU securedisplay: generic failrure在日志中看到这是在journalctl中:
Dec 18 02:26:00 archlinux kernel: amdgpu 0000:04:00.0: amdgpu: Secure display: Generic Failure.
Dec 18 02:26:00 archlinux kernel: amdgpu 0000:04:00.0: amdgpu: SECUREDISPLAY: query securedisplay TA failed. ret 0x0
  • Sway 随机崩溃
  • Discord 崩溃并显示以下消息:
[109734:1216/144012.453719:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[109734:1216/144018.594445:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[109734:1216/144025.341187:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[109688:1216/144035.692207:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=9
(electron) 'gpu-process-crashed event' is deprecated and will be removed. Please use 'child-process-gone event' instead.
notificationScreen.webContentsSend: win is invalid undefined.
child-process-gone! child: GPU (undefined) exitCode: 9
blackbox: 2023-12-16T13:40:35.738Z 59 before-quit
blackbox: 2023-12-16T13:40:35.763Z 60 window.close win8
blackbox: 2023-12-16T13:40:35.772Z 61 ❌ child-process-gone { type: 'GPU', reason: 'killed', exitCode: 9, serviceName: 'GPU' }
blackbox: 2023-12-16T13:40:36.319Z 62 webContents.destroyed web8
  • 这是 Brave 浏览器日志:
[158080:158080:1218/173945.959830:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[158080:158080:1218/173945.966721:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[158080:158080:1218/173950.934755:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
Warning: terminator_CreateInstance: Failed to CreateInstance in ICD 0.  Skipping ICD.
Warning: terminator_CreateInstance: Found no drivers!
Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
    at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:101)
    at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:493)
    at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:379)
    at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:301)
    at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:556)
  • 经过一次强烈的冻结后,我在以下位置发现了这一点journalctl:
Dec 23 22:19:05 arch-thinkpad kernel: Out of memory: Killed process 2068 (electron) total-vm:1190296860kB, anon-rss:175928kB, file-rss:256kB, shmem-rss:600kB, UID:1000 pgtables:1752kB oom_score_adj:300
Dec 23 22:21:22 arch-thinkpad kernel: Out of memory: Killed process 10923 (brave) total-vm:1186204220kB, anon-rss:51484kB, file-rss:512kB, shmem-rss:3648kB, UID:1000 pgtables:928kB oom_score_adj:300
Dec 23 22:21:33 arch-thinkpad kernel: Out of memory: Killed process 8797 (brave) total-vm:1186202212kB, anon-rss:51528kB, file-rss:256kB, shmem-rss:1084kB, UID:1000 pgtables:1008kB oom_score_adj:300
Dec 23 22:21:34 arch-thinkpad kernel: Out of memory: Killed process 8753 (brave) total-vm:1186222336kB, anon-rss:50016kB, file-rss:384kB, shmem-rss:1252kB, UID:1000 pgtables:1016kB oom_score_adj:300
  • Firefox 经常崩溃并显示以下日志:
[Parent 2974, IPC I/O Parent] WARNING: process 3081 exited on signal 11: file /build/firefox/src/firefox-121.0/ipc/chromium/src/base/process_util_posix.cc:265
[Parent 2974, IPC I/O Parent] WARNING: process 3917 exited on signal 11: file /build/firefox/src/firefox-121.0/ipc/chromium/src/base/process_util_posix.cc:265
[Parent 2974, IPC I/O Parent] WARNING: process 3958 exited on signal 11: file /build/firefox/src/firefox-121.0/ipc/chromium/src/base/process_util_posix.cc:265
[Parent 2974, IPC I/O Parent] WARNING: process 3633 exited on signal 11: file /build/firefox/src/firefox-121.0/ipc/chromium/src/base/process_util_posix.cc:265
ExceptionHandler::GenerateDump cloned child 7802
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
[GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Failed to open curl lib from binary, use libcurl.so instead
ExceptionHandler::GenerateDump cloned child 10410
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Failed to open curl lib from binary, use libcurl.so instead

Chromium 浏览器在启动时立即崩溃:

[32424:32424:0109/161137.203058:ERROR:policy_logger.cc(156)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(161) Cloud management controller initialization aborted as CBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build.
[32500:1:0109/161137.867689:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[32424:32424:0109/161137.868183:ERROR:gpu_process_host.cc(992)] GPU process exited unexpectedly: exit_code=139
[32500:1:0109/161138.480418:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[32573:1:0109/161138.480549:ERROR:command_buffer_proxy_impl.cc(319)] GPU state invalid after WaitForGetOffsetInRange.
[32583:1:0109/161138.481906:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[32424:32452:0109/161138.483240:ERROR:shared_image_interface_proxy.cc(136)] Buffer handle is null. Not creating a mailbox from it.
[32424:32452:0109/161138.483260:ERROR:one_copy_raster_buffer_provider.cc(365)] Creation of MappableSharedImage failed.
[32424:32452:0109/161138.483313:ERROR:shared_image_interface_proxy.cc(136)] Buffer handle is null. Not creating a mailbox from it.
[32424:32424:0109/161138.484013:ERROR:gpu_process_host.cc(992)] GPU process exited unexpectedly: exit_code=139
[32543:1:0109/161139.231084:ERROR:command_buffer_proxy_impl.cc(319)] GPU state invalid after WaitForGetOffsetInRange.
[32573:1:0109/161139.231223:ERROR:command_buffer_proxy_impl.cc(319)] GPU state invalid after WaitForGetOffsetInRange.
[32424:32452:0109/161139.232795:ERROR:shared_image_interface_proxy.cc(136)] Buffer handle is null. Not creating a mailbox from it.
[32424:32452:0109/161139.232810:ERROR:one_copy_raster_buffer_provider.cc(365)] Creation of MappableSharedImage failed.
[32424:32424:0109/161139.232827:ERROR:gpu_process_host.cc(992)] GPU process exited unexpectedly: exit_code=139
[32714:32714:0109/161139.240747:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (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:1711.
ERR: Display.cpp:1052 (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:1711.
[32714:32714:0109/161139.240832:ERROR:gl_display.cc(515)] 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:1711.
[32714:32714:0109/161139.240859:ERROR:gl_display.cc(786)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[32714:32714:0109/161139.240894:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[32714:32714:0109/161139.240917:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[32714:32714:0109/161139.241169:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (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:1711.
ERR: Display.cpp:1052 (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:1711.
[32714:32714:0109/161139.241204:ERROR:gl_display.cc(515)] 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:1711.
[32714:32714:0109/161139.241228:ERROR:gl_display.cc(786)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[32714:32714:0109/161139.241250:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[32714:32714:0109/161139.241277:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[32714:32714:0109/161139.242947:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[32424:32424:0109/161139.654097:ERROR:gpu_process_host.cc(992)] GPU process exited unexpectedly: exit_code=139
[32424:32424:0109/161140.509961:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
fish: Job 1, 'chromium 2> chromium-log' terminated by signal SIGTRAP (Trace or breakpoint trap)

更多信息

眼镜:

  • 我使用带有 arch linux + wayland + sway 的 HP 笔记本电脑
  • CPU:AMD Ryzen 5 4500U,带 Radeon 显卡 (6) @ 2.375GHz
  • GPU:AMD ATI Radeon RX Vega 6
  • 我有 8Gb 或 RAM,~~没有交换~~,SSD 上有 8GB 交换文件

这是已安装软件包的列表,其中包含amd:

local/amd-ucode 20231211.f2e52a1c-1
    Microcode update image for AMD CPUs
local/amf-headers 1.4.32-1
    Header files for AMD Advanced Media Framework
local/libteam 1.32-1
    Library for controlling team network device
local/nvtop 3.0.2-1
    GPUs process monitoring for AMD, Intel and NVIDIA
local/rocm-dbgapi 5.7.1-1
    Support library necessary for a debugger of AMD's GPUs

这是包含以下内容的软件包列表radeon:

local/hsakmt-roct 5.7.1-1
    Radeon Open Compute Thunk Interface
local/lib32-vulkan-radeon 1:23.3.1-1
    Radeon's Vulkan mesa driver (32-bit)
local/vulkan-radeon 1:23.3.1-1
    Radeon's Vulkan mesa driver

这是输出lspci -nn:

00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex [1022:1630]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU [1022:1631]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:02.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:02.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 51)
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0 [1022:1448]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1 [1022:1449]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2 [1022:144a]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3 [1022:144b]
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4 [1022:144c]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5 [1022:144d]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6 [1022:144e]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7 [1022:144f]
01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter [10ec:c822]
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader [10ec:522a] (rev 01)
03:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller PM9A1/PM9A3/980PRO [144d:a80a]
04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [Radeon RX Vega 6 (Ryzen 4000/5000 Mobile Series)] [1002:1636] (rev c3)
04:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637]
04:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
04:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
04:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
04:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 01)
04:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
04:00.7 Signal processing controller [1180]: Advanced Micro Devices, Inc. [AMD] Sensor Fusion Hub [1022:15e4]

输出lspci -k | grep -A 3 -E "(VGA|3D)":

04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [Radeon RX Vega 6 (Ryzen 4000/5000 Mobile Series)] (rev c3)
    DeviceName: AMD Radeon(TM) Graphics
    Subsystem: Hewlett-Packard Company Renoir [Radeon RX Vega 6 (Ryzen 4000/5000 Mobile Series)]
    Kernel driver in use: amdgpu

我在日志中发现了这一点dmesg:

[    2.906817] [drm] amdgpu kernel modesetting enabled.
[    2.907464] amdgpu: Virtual CRAT table created for CPU
[    2.907479] amdgpu: Topology: Add CPU node
[    2.907685] amdgpu 0000:04:00.0: enabling device (0006 -> 0007)
[    2.907739] [drm] initializing kernel modesetting (RENOIR 0x1002:0x1636 0x103C:0x876E 0xC3).
[    2.934103] [drm] register mmio base: 0xD0400000
[    2.934114] [drm] register mmio size: 524288
[    2.937640] [drm] add ip block number 0 <soc15_common>
[    2.937644] [drm] add ip block number 1 <gmc_v9_0>
[    2.937646] [drm] add ip block number 2 <vega10_ih>
[    2.937647] [drm] add ip block number 3 <psp>
[    2.937649] [drm] add ip block number 4 <smu>
[    2.937651] [drm] add ip block number 5 <dm>
[    2.937652] [drm] add ip block number 6 <gfx_v9_0>
[    2.937654] [drm] add ip block number 7 <sdma_v4_0>
[    2.937655] [drm] add ip block number 8 <vcn_v2_0>
[    2.937656] [drm] add ip block number 9 <jpeg_v2_0>
[    2.937681] amdgpu 0000:04:00.0: amdgpu: Fetched VBIOS from VFCT
[    2.937684] amdgpu: ATOM BIOS: 113-RENOIR-026
[    2.939454] [drm] VCN decode is enabled in VM mode
[    2.939456] [drm] VCN encode is enabled in VM mode
[    2.940642] [drm] JPEG decode is enabled in VM mode
[    2.954319] Console: switching to colour dummy device 80x25
[    2.988195] amdgpu 0000:04:00.0: vgaarb: deactivate vga console
[    2.988210] amdgpu 0000:04:00.0: amdgpu: Trusted Memory Zone (TMZ) feature enabled
[    2.988218] amdgpu 0000:04:00.0: amdgpu: MODE2 reset
[    2.988323] [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
[    2.988337] amdgpu 0000:04:00.0: amdgpu: VRAM: 512M 0x000000F400000000 - 0x000000F41FFFFFFF (512M used)
[    2.988342] amdgpu 0000:04:00.0: amdgpu: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
[    2.988345] amdgpu 0000:04:00.0: amdgpu: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
[    2.988357] [drm] Detected VRAM RAM=512M, BAR=512M
[    2.988360] [drm] RAM width 128bits DDR4
[    2.988686] [drm] amdgpu: 512M of VRAM memory ready
[    2.988692] [drm] amdgpu: 3661M of GTT memory ready.
[    2.988726] [drm] GART: num cpu pages 262144, num gpu pages 262144
[    2.988934] [drm] PCIE GART of 1024M enabled.
[    2.988936] [drm] PTB located at 0x000000F41FC00000
[    2.989313] [drm] Loading DMUB firmware via PSP: version=0x01010028
[    2.989963] [drm] Found VCN firmware Version ENC: 1.21 DEC: 6 VEP: 0 Revision: 0
[    2.989970] amdgpu 0000:04:00.0: amdgpu: Will use PSP to load VCN firmware
[    3.649478] [drm] reserve 0x400000 from 0xf41f800000 for PSP TMR
[    3.744619] amdgpu 0000:04:00.0: amdgpu: RAS: optional ras ta ucode is not available
[    3.754153] amdgpu 0000:04:00.0: amdgpu: RAP: optional rap ta ucode is not available
[    3.759165] [drm] psp gfx command LOAD_TA(0x1) failed and response status is (0x7)
[    3.759289] [drm] psp gfx command INVOKE_CMD(0x3) failed and response status is (0x4)
[    3.759293] amdgpu 0000:04:00.0: amdgpu: Secure display: Generic Failure.
[    3.759305] amdgpu 0000:04:00.0: amdgpu: SECUREDISPLAY: query securedisplay TA failed. ret 0x0
[    3.759720] amdgpu 0000:04:00.0: amdgpu: SMU is initialized successfully!
[    3.760994] [drm] Display Core v3.2.247 initialized on DCN 2.1
[    3.760998] [drm] DP-HDMI FRL PCON supported
[    3.761775] [drm] DMUB hardware initialized: version=0x01010028
[    4.104152] [drm] Alt mode has timed out after 202 ms
[    4.106330] [drm] kiq ring mec 2 pipe 1 q 0
[    4.109571] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[    4.109599] [drm] JPEG decode initialized successfully.
[    4.136633] amdgpu: HMM registered 512MB device memory
[    4.138946] kfd kfd: amdgpu: Allocated 3969056 bytes on gart
[    4.138968] kfd kfd: amdgpu: Total number of KFD nodes to be created: 1
[    4.139127] amdgpu: Virtual CRAT table created for GPU
[    4.139236] amdgpu: Topology: Add dGPU node [0x1636:0x1002]
[    4.139239] kfd kfd: amdgpu: added device 1002:1636
[    4.139253] amdgpu 0000:04:00.0: amdgpu: SE 1, SH per SE 1, CU per SH 8, active_cu_number 6
[    4.139421] amdgpu 0000:04:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
[    4.139424] amdgpu 0000:04:00.0: amdgpu: ring gfx_low uses VM inv eng 1 on hub 0
[    4.139425] amdgpu 0000:04:00.0: amdgpu: ring gfx_high uses VM inv eng 4 on hub 0
[    4.139427] amdgpu 0000:04:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 5 on hub 0
[    4.139428] amdgpu 0000:04:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 6 on hub 0
[    4.139430] amdgpu 0000:04:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 7 on hub 0
[    4.139431] amdgpu 0000:04:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 8 on hub 0
[    4.139432] amdgpu 0000:04:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 9 on hub 0
[    4.139434] amdgpu 0000:04:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 10 on hub 0
[    4.139435] amdgpu 0000:04:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 11 on hub 0
[    4.139437] amdgpu 0000:04:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 12 on hub 0
[    4.139438] amdgpu 0000:04:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 13 on hub 0
[    4.139439] amdgpu 0000:04:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 8
[    4.139441] amdgpu 0000:04:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 8
[    4.139443] amdgpu 0000:04:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 8
[    4.139444] amdgpu 0000:04:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 8
[    4.139445] amdgpu 0000:04:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 8
[    4.141078] [drm] Initialized amdgpu 3.54.0 20150101 for 0000:04:00.0 on minor 1
[    4.147509] fbcon: amdgpudrmfb (fb0) is primary device
[    4.147823] [drm] DSC precompute is not needed.
[    4.854418] Console: switching to colour frame buffer device 240x67
[    4.874494] amdgpu 0000:04:00.0: [drm] fb0: amdgpudrmfb frame buffer device
[   11.871434] Key type trusted registered
[   11.886779] Key type encrypted registered

...

[ 3001.667474] ThreadPoolForeg[7212]: segfault at 3fe173700008 ip 00005632b4aca97b sp 00007f667e7efdc0 error 4 in electron[5632b332f000+7732000] likely on CPU 0 (core 0, socket 0)
[ 3001.667500] Code: 06 48 03 08 5d e9 25 0c 00 00 cc cc cc cc cc 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 18 49 89 cd 49 81 e5 00 00 fc ff <41> f6 45 08 40 0f 85 a1 00 00 00 49 89 cf 49 89 f6 80 7f 3a 00 75
[ 4538.486544] electron[8432]: segfault at 80000000008 ip 00005578c8450e12 sp 00007fff90612410 error 4 in electron[5578c26d9000+7aaf000] likely on CPU 4 (core 5, socket 0)
[ 4538.486557] Code: f0 0f b1 0f 75 f2 eb 06 67 e8 7a 7d dc fe 48 8b bb b0 01 00 00 48 85 ff 0f 85 8e 01 00 00 48 8b bb a8 01 00 00 48 85 ff 74 24 <8b> 47 08 a8 02 75 1d 8b 07 0f 1f 44 00 00 83 f8 01 74 0b 8d 48 ff
[ 4595.501146] Isolated Web Co[10781]: segfault at 7702dd668c80 ip 00007f02e972e336 sp 00007ffc2f669840 error 4 in libxul.so[7f02e8f3a000+5f91000] likely on CPU 4 (core 5, socket 0)
[ 4595.501158] Code: 24 20 48 8b b4 24 a0 00 00 00 48 85 f6 0f 84 2c 01 00 00 8b 84 24 a8 00 00 00 48 3d ff ff ff 7f 0f 83 4e 0b 00 00 48 8b 4d 00 <8b> 11 0f ba e2 1e 0f 83 67 01 00 00 8b 79 08 48 29 f9 4c 89 4c 24

这是输出eglinfo -B:

GBM platform:
eglinfo: eglInitialize failed

Wayland platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 16.0.6, DRM 3.54, 6.6.9-arch1-1)
OpenGL core profile version: 4.6 (Core Profile) Mesa 23.3.2-arch1.2
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 16.0.6, DRM 3.54, 6.6.9-arch1-1)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 23.3.2-arch1.2
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 16.0.6, DRM 3.54, 6.6.9-arch1-1)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 23.3.2-arch1.2
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

X11 platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 16.0.6, DRM 3.54, 6.6.9-arch1-1)
OpenGL core profile version: 4.6 (Core Profile) Mesa 23.3.2-arch1.2
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 16.0.6, DRM 3.54, 6.6.9-arch1-1)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 23.3.2-arch1.2
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 16.0.6, DRM 3.54, 6.6.9-arch1-1)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 23.3.2-arch1.2
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Surfaceless platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 16.0.6, DRM 3.54, 6.6.9-arch1-1)
OpenGL core profile version: 4.6 (Core Profile) Mesa 23.3.2-arch1.2
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 16.0.6, DRM 3.54, 6.6.9-arch1-1)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 23.3.2-arch1.2
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 16.0.6, DRM 3.54, 6.6.9-arch1-1)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 23.3.2-arch1.2
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device platform:
Device #0:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 16.0.6, DRM 3.54, 6.6.9-arch1-1)
OpenGL core profile version: 4.6 (Core Profile) Mesa 23.3.2-arch1.2
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 16.0.6, DRM 3.54, 6.6.9-arch1-1)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 23.3.2-arch1.2
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 16.0.6, DRM 3.54, 6.6.9-arch1-1)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 23.3.2-arch1.2
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #1:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 16.0.6, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 23.3.2-arch1.2
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 16.0.6, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 23.3.2-arch1.2
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 16.0.6, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 23.3.2-arch1.2
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

这些是我的内核参数:

Kernel command line: initrd=\amd-ucode.img initrd=\initramfs-linux.img root="LABEL=arch_os" rw i915.enable_psr=0 rd.luks.name=02e...eee=root CONFIG_DRM_AMDGPU_CIK=Y

我尝试过的:

  • 我安装了 AMD 微码并在 systemdboot 的加载器选项中进行了设置
  • 我将内核更新到最新的
  • 我安装了xf86-video-amdgpu
  • 我使用更新了所有固件fwupdmgr
  • 我卸载了 X.org 驱动程序 ( xf86-video-amdgpu)
  • 我卸载了所有amdvlk驱动程序并安装了 radeon 驱动程序
  • 我安装了桌面门户
  • 我添加CONFIG_DRM_AMDGPU_CIK=Y到内核参数。这会产生Unknown kernel command line parameters "CONFIG_DRM_AMDGPU_CIK=Y", will be passed to user space.dmesg。
  • 我尝试添加radeon.dpm=0但radeon.dpm=1没有效果
  • 我尝试记录 sway 的调试日志,但没有发现任何有趣的东西
  • 我删除了~/.cache/mesa目录
  • 添加 8GB 交换对冻结有一点帮助,但不能解决崩溃问题。程序崩溃得更快。

似乎没有什么可以解决这个问题。


问题

我应该怎么做才能摆脱这种冻结和崩溃?您对如何诊断此类问题有什么建议吗?
谢谢你的帮助

wayland
  • 1 个回答
  • 480 Views
Martin Hope
Jan Černý
Asked: 2023-11-25 23:54:13 +0800 CST

拱门Linux;org.freedesktop.DBus.Error.InvalidArgs:没有这样的接口“org.freedesktop.portal.FileChooser”

  • 5

我在 arch linux 上使用 sway,很多应用程序都会记录以下错误消息:

org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”

我该如何解决这个问题?
谢谢你的帮助

PS:我使用wayland + sway

arch-linux
  • 1 个回答
  • 92 Views
Martin Hope
Jan Černý
Asked: 2023-11-19 06:35:33 +0800 CST

如何为 GTK-4 应用程序全局设置暗模式?

  • 5

我正在尝试将 nautilus 设置为黑暗模式,但没有成功。

我试过:

  • 运行这个命令:
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
  • 设置配色方案~/.config/gtk-4.0/gtk.css
@import url("resource:///org/gtk/libadwaita/ado.css");

AdwStyleContext {
  color-scheme: dark;
}
  • 将其设置为~/.config/gtk-4.0/settings.ini
[Settings]
gtk-enable-animations=true
gtk-icon-theme-name=Adwaita-dark
gtk-application-prefer-dark-theme=0

但这没有任何效果并会删除此警告:

(org.gnome.Nautilus:69565): Adwaita-WARNING **: 23:24:29.934:
Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported.
Please use AdwStyleManager:color-scheme instead.

我应该如何为我的系统上的 gtk4 应用程序设置全局暗模式?

附加信息:我使用 Arch linux + wayland + sway
我正在使用ly显示管理器。我以 systemd 服务启动:

● ly.service - TUI display manager
     Loaded: loaded (/usr/lib/systemd/system/ly.service; enabled; preset: disabled)
     Active: active (running) since Wed 2024-01-03 10:31:36 CET; 3h 52min ago
   Main PID: 1042 (ly-dm)
      Tasks: 0 (limit: 8734)
     Memory: 2.5M (peak: 5.0M)
        CPU: 39ms
     CGroup: /system.slice/ly.service
             ‣ 1042 /usr/bin/ly-dm
arch-linux
  • 1 个回答
  • 456 Views
Martin Hope
Jan Černý
Asked: 2023-11-06 18:25:41 +0800 CST

Arch linux - 更新软件包时出错:jdk-openjdk 和 jre-openjdk 存在冲突

  • 6

当我尝试更新系统时出现jdk-openjdk and jre-openjdk are in conflict 错误:

这是更新尝试的日志:

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Searching AUR for updates...
:: Searching databases for updates...
 -> Packages not in AUR: bunjs-bin  flite1-patched  jellyfin-server-bin  jellyfin-web-bin  js78  libgweather  libopenaptx  libvterm01  nodejs-lts-gallium  progsreiserfs  python-backcall
 -> Orphan (unmaintained) AUR Packages: anki-official-binary-bundle  jdk-jetbrains  jetbrains-clion-pj  python-gymnasium-notices  python-hijri-converter  python-jax-jumpy  python-pep517
 -> Flagged Out Of Date AUR Packages: anki-official-binary-bundle  blades-bin  logseq-desktop-wayland-bin  marp-cli  python-mypy-protobuf  steamcmd  vrms-arch
 -> gcc10: local (1:10.3.0-2) is newer than AUR (10.5.0-1)
 -> gcc10-libs: local (1:10.3.0-2) is newer than AUR (10.5.0-1)
:: 8 packages to upgrade/install.
8  extra/jdk-openjdk             21.u35-3     -> 21.u35-7
7  extra/jdk11-openjdk           11.0.21.u9-2 -> 11.0.21.u9-3
6  extra/jre-openjdk             21.u35-3     -> 21.u35-7
5  extra/jre-openjdk-headless    21.u35-3     -> 21.u35-7
4  extra/jre11-openjdk           11.0.21.u9-2 -> 11.0.21.u9-3
3  extra/jre11-openjdk-headless  11.0.21.u9-2 -> 11.0.21.u9-3
2  extra/jre17-openjdk           17.0.9.u8-1  -> 17.0.9.u8-2
1  extra/jre17-openjdk-headless  17.0.9.u8-1  -> 17.0.9.u8-2
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==>
Sync Dependency (4): jre11-openjdk-headless-11.0.21.u9-3, jre17-openjdk-headless-17.0.9.u8-2, jre-openjdk-headless-21.u35-7, jre11-openjdk-11.0.21.u9-3
Sync Explicit (4): jre17-openjdk-17.0.9.u8-2, jdk-openjdk-21.u35-7, jdk11-openjdk-11.0.21.u9-3, jre-openjdk-21.u35-7
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: jdk-openjdk and jre-openjdk are in conflict
 -> error installing repo packages

解决这一冲突的最佳方法是什么?
谢谢你的帮助


编辑:
我尝试过sudo pacman -R jre-openjdk,但收到此错误:

checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing jre-openjdk breaks dependency 'jre21-openjdk=21.u35-3' required by jdk-openjdk
arch-linux
  • 2 个回答
  • 1635 Views
Martin Hope
Jan Černý
Asked: 2023-10-08 23:39:54 +0800 CST

Arch linux:无法挂载/boot

  • 5

当我尝试启动我的系统时出现此错误:

[Failed] Failed to mount /boot
See 'systemctl status boot.mount' for details
[DEPEND] Dependency filed for Local File System

然后还有一些日志和

You are in emergency mode. After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, or "exit" to continue bootup.

Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.

Press Enter to contienue

我能做什么来修复它?我无法登录 mu 系统,但我可以arch-chroot从实时 USB 运行。

编辑:这在systemctl status boot.mount

mount: /boot: unknown file system 'vfat'
arch-linux
  • 1 个回答
  • 41 Views
Martin Hope
Jan Černý
Asked: 2022-01-20 08:43:45 +0800 CST

如何使用 i3wm 的 exec 启动带有 rofi 的应用程序?

  • 1

我有这个问题,现在我知道如何解决它。我需要使用i3wm的exec命令启动应用程序。

但是我使用rofi作为启动菜单,我不知道如何使用i3wm的exec命令启动应用程序?

我使用此配置绑定了 rofi菜单:

 bindsym $mod+space exec --no-startup-id rofi -show combi -show-icons

我怎么能韭菜呢?
谢谢你的帮助

i3 exec
  • 2 个回答
  • 3141 Views
Martin Hope
Jan Černý
Asked: 2022-01-10 11:16:54 +0800 CST

Linux:Redshift 闪烁

  • 1

我正在使用带有 i3wm 和 picom 作为合成器的 Arch linux。我希望能够使用redshift. 但是当我启动时redshift,它会每两秒自动打开和关闭一次,导致令人讨厌的屏幕闪烁。

我能做些什么来停止这种闪烁并redshift安心使用?

arch-linux x11
  • 1 个回答
  • 236 Views
Martin Hope
Jan Černý
Asked: 2022-01-10 11:07:01 +0800 CST

Arch linux:查找丢失的字体并安装它们

  • 0

我在 Arch linux 上的 i3wm 中使用 firefox,我经常发现页面字体损坏。它看起来像这样:

破碎的字体截图

如何找到我缺少的字体以及如何安装它们?

谢谢你的帮助

arch-linux x11
  • 1 个回答
  • 1809 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve