Open davidak opened 4 months ago
Their 0.10.5 release uses electron 27.1.3. Our electron_27 in master is 27.2.2.
I tested with our electron_27-bin (27.0.0) and can't reproduce the issue. So the issue seem to be in (our) electron 27.2.2.
Upstream has 27.2.4 available, but the changelog does not list a fix for such an issue. Downgrading electron seem not reasonable. The program is usable, just don't copy blocks.
@yu-re-ka can you ping me here when you have updated electron_27 next time, so i can retest this issue? Electron 27.2.3 and 27.2.4 are identical for some reason. They fix 2 CVEs.
I'm waiting for reviews in #281546 ;)
I tested with our electron_27-bin (27.0.0) and can't reproduce the issue. So the issue seem to be in (our) electron 27.2.2.
I would not make this assumption (that the version is the difference). For electron vs. electron-bin, there might also be differences in the GIO_EXTRA_MODULES and other environment variables set in the wrapper, and how it interacts with other dependencies/components.
I have built it with electron 27.2.3. Surprisingly, copying worked 4 times and i thought the update might have fixed the issue, but the next time i had the issue again. And from there on every time.
Then i have reverted electron to 27.1.3 (what upstream uses) and can confirm that i also have the issue with that. So it's not caused by the different electron version.
I tested again with our electron_27-bin (27.0.0) and copied 10 times without issue. So the issue seem to be in our compiled electron package.
I'm not involved in electron or javascript, so i can't look deeper into this.
Just to add a bit of context to this: I believe at least some of the reports in https://github.com/logseq/logseq/issues/10549 relate to this issue, and although one user mentions using NixOS/nixpkgs (besides me), at least one non-Nixpkgs user shared logs that seem consistent with the one in this issue. So I think it's possible this is an upstream problem more than it is a packaging one.
I've been experiencing the same issue for a long while now. I hope someone can make sense of these logs:
I can reproduce with NixOS 24.05 + Wayland + KDE Plasma 6 + Logseq 0.10.9
Describe the bug
The GUI hangs when clicking "Copy" in context menu. The window turns blank few seconds after.
Closing the window does not work anymore then. Instead, i get this error in Terminal:
Demo: https://www.youtube.com/watch?v=hSdHVRtOZ1E
Similar to https://github.com/NixOS/nixpkgs/issues/264531
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Blocks copied.
Screenshots
Additional context
Pantheon desktop (Gtk-based), X11 i think, amdgpu
The official AppImage (we extract) works.
appimage-run Logseq-linux-x64-0.10.5.AppImage
Get latest version from nixpkgs master:
nix-shell -p logseq -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.tar.gz
This warning comes about 2m 40sec after starting, even when not clicking anything:
Notify maintainers
@kilianar (last updates)
Metadata
"x86_64-linux"
Linux 6.7.0, NixOS, 23.11 (Tapir), 23.11.3019.8bf65f17d807
yes
yes
nix-env (Nix) 2.18.1
"home-manager-23.11.tar.gz, nixos-23.11, nixos-hardware, nixos-unstable"
/nix/var/nix/profiles/per-user/root/channels/nixos
Add a :+1: reaction to issues you find important.