Open xusiai opened 5 months ago
There is a new version in master. You can test with:
nix-shell -p logseq -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.tar.gz
Please also test the official AppImage from https://logseq.com/downloads
appimage-run Logseq-linux-x64-0.10.5.AppImage
If it's an issue with the official AppImage as well, report also upstream (if no report exist).
There is a new version in master.
Well it still doesn't launch but at least this resulted in some output
00:48:42.630 › Logseq App(0.10.5) Starting...
00:48:42.644 › restore proxy settings {:type "system"}
00:48:42.645 › set proxy to {:type "system"}
[126117:0121/004842.771191:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[126117:0121/004842.771886:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[126117:0121/004842.772102:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[126117:0121/004842.772174:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[126117:0121/004842.772251:ERROR:shared_image_factory.cc(926)] CreateSharedImage: could not create backing.
[126117:0121/004842.772337:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[126117:0121/004842.772605:ERROR:gpu_service_impl.cc(1089)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[126054:0121/004842.785005:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
[126169:0121/004842.879258:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[126169:0121/004842.879379:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[126169:0121/004842.879573:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[126169:0121/004842.879656:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[126169:0121/004842.879727:ERROR:shared_image_factory.cc(926)] CreateSharedImage: could not create backing.
[126169:0121/004842.879795:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[126169:0121/004842.879886:ERROR:gpu_service_impl.cc(1089)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[126054:0121/004842.894351:ERROR:command_buffer_proxy_impl.cc(319)] GPU state invalid after WaitForGetOffsetInRange.
[126054:0121/004842.895294:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
[126179:0121/004843.000361:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[126179:0121/004843.000522:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[126179:0121/004843.000705:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[126179:0121/004843.000759:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[126179:0121/004843.000828:ERROR:shared_image_factory.cc(926)] CreateSharedImage: could not create backing.
[126179:0121/004843.000920:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[126179:0121/004843.001038:ERROR:gpu_service_impl.cc(1089)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[126054:0121/004843.011736:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
Please also test the official AppImage
The AppImage launches and seem to work fine.
I have exactly the same issue and tried the things above, however I noticed that if you run logseq
from and wait long enough there is a final error that appears after what the user above posted and seems to be related to vulkan
.
(rsapi) init loggers
20:16:27.393 › Logseq App(0.10.5) Starting...
20:16:27.397 › restore proxy settings {:type "system"}
20:16:27.397 › set proxy to {:type "system"}
[26562:0130/201627.444503:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[26562:0130/201627.444575:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[26562:0130/201627.444773:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[26562:0130/201627.444814:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[26562:0130/201627.444841:ERROR:shared_image_factory.cc(926)] CreateSharedImage: could not create backing.
[26562:0130/201627.444872:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[26562:0130/201627.444974:ERROR:gpu_service_impl.cc(1089)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[26491:0130/201627.449747:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
[26608:0130/201627.499547:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[26608:0130/201627.499642:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[26608:0130/201627.499741:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[26608:0130/201627.499774:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[26608:0130/201627.499799:ERROR:shared_image_factory.cc(926)] CreateSharedImage: could not create backing.
[26608:0130/201627.499828:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[26608:0130/201627.499884:ERROR:gpu_service_impl.cc(1089)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[26491:0130/201627.503392:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
[26619:0130/201627.553205:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[26619:0130/201627.553276:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[26619:0130/201627.553401:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[26619:0130/201627.553442:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[26619:0130/201627.553474:ERROR:shared_image_factory.cc(926)] CreateSharedImage: could not create backing.
[26619:0130/201627.553506:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[26619:0130/201627.553553:ERROR:gpu_service_impl.cc(1089)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[26491:0130/201627.557181:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
20:16:29.552 › :electron.handler/watch-dir {:path "/home/edheliel/.logseq/config"}
20:16:29.574 › :electron.handler/unwatch-dir {:path "/home/edheliel/Desktop/underdark/2ndBrain"}
20:16:29.574 › :electron.handler/watch-dir {:path "/home/edheliel/Desktop/underdark/2ndBrain"}
Warning: vkCreateInstance: Found no drivers!
Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)
I am also attaching my nvidia
and opengl
configurations
{ config, lib, pkgs, ... }:
{
# Enable OpenGL
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
# Load nvidia driver for Xorg and Wayland
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
# Modesetting is needed most of the time
modesetting.enable = true;
# Enable power management (do not disable this unless you have a reason to).
# Likely to cause problems on laptops and with screen tearing if disabled.
powerManagement.enable = true;
# Use the NVidia open source kernel module (which isn't “nouveau”).
# Support is limited to the Turing and later architectures. Full list of
# supported GPUs is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# Only available from driver 515.43.04+
open = false;
# Enable the Nvidia settings menu,
# accessible via `nvidia-settings`.
nvidiaSettings = true;
# Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
}
From what I read it seems to be related to Electron
- https://github.com/NixOS/nixpkgs/issues/276021 in this one it seems that the application was using it's own unpatched vulkan
loader and it seems that recently there was some Electron related issues with downgrading and people pushing new version etc. Unfortunately I have no clue about Vulkan and Electron so I cannot debug it on my own
PS: I just tried some things and if use #extraPackages = [ pkgs.mesa.drivers ];
then opening Logseq
fails with:
[2024-01-30 20:51:19.386] [info] open-url {:url "/nix/store/f5a74hi9nhi5gplmachqbr31y7gwj7sf-logseq-0.10.5/share/logseq/resources/app"}
[2024-01-30 20:51:19.386] [info] upon opening non-url {:error #object[TypeError TypeError [ERR_INVALID_URL]: Invalid URL]}
Describe the bug
Logseq does not open.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Logseq opens.
Additional context
It is worth mentioning this is on Hyprland with Nvidia's proprietary drivers as that has been a problematic combination for Electron packages in the past (though most seem to work as of now).
Running Logseq from a shell outputs
(rsapi) init loggers
and nothing else.Logseq's log file content:
Notify maintainers
@kilianar
Metadata