!XQQVyIbcAcHFvzmcTl:nixos.org

NixOS GNOME

400 Members
A room for maintainers of GNOME & GNOME-Related desktop environments (xfce, cinnamon, pantheon...)91 Servers

Load older messages


SenderMessageTime
3 Nov 2024
@ronixx:matrix.orgroshan | byteio.in 🌷
In reply to @k900:0upti.me
No
can i any reference link i want to read it
15:12:08
@ronixx:matrix.orgroshan | byteio.in 🌷
In reply to @k900:0upti.me
No
* can i get any reference link i want to read it
15:12:17
@k900:0upti.meK900You can definitely remove most of that 15:12:34
@k900:0upti.meK900 At least amdgpu.dc=1 is the default 15:12:58
@k900:0upti.meK900 services.xserver.videoDrivers = ["amdgpu"]; is bad 15:13:04
@k900:0upti.meK900AMDVLK is unnecessary15:13:08
@k900:0upti.meK900And do you actually use OpenCL15:13:37
@ronixx:matrix.orgroshan | byteio.in 🌷ok sir, removing it15:13:31
@ronixx:matrix.orgroshan | byteio.in 🌷Thank you so much15:13:44
@k900:0upti.meK900Also see https://gitlab.freedesktop.org/drm/amd/-/issues/3647 for the kernel bug15:13:54
@k900:0upti.meK900(and linked issues)15:13:56
@ronixx:matrix.orgroshan | byteio.in 🌷
In reply to @k900:0upti.me
And do you actually use OpenCL
i don't know about it i got the code from github repo
15:14:00
@k900:0upti.meK900There's a bunch of seemingly interconnected PSR bugs15:14:05
@ronixx:matrix.orgroshan | byteio.in 🌷i think i don't need opencl too15:14:17
@ronixx:matrix.orgroshan | byteio.in 🌷
In reply to @ronixx:matrix.org

BTW, these are my current config for gpu setting

boot.initrd.kernelModules = [ "amdgpu" ];

  boot.kernelPackages = pkgs.linuxPackages_latest;
 
  boot.kernelParams = [
      "amdgpu.dc=1"
      "amdgpu.dcdebugmask=0x10"
  ];

  services.xserver.videoDrivers = ["amdgpu"];

  hardware.enableRedistributableFirmware = true;

  hardware.graphics.extraPackages = with pkgs; [
    amdvlk
  ];

  hardware.amdgpu.amdvlk.enable = true;
  hardware.amdgpu.opencl.enable = true;

refactored config

boot.initrd.kernelModules = [ "amdgpu" ];

  boot.kernelPackages = pkgs.linuxPackages_latest;
 
  boot.kernelParams = [
      "amdgpu.dc=1"
      "amdgpu.dcdebugmask=0x10"
  ];

  hardware.enableRedistributableFirmware = true;
15:15:23
@k900:0upti.meK900 "amdgpu.dc=1" can also go 15:15:44
@k900:0upti.meK900It does nothing15:15:49
@ronixx:matrix.orgroshan | byteio.in 🌷Done15:18:14
@jeff:ocjtech.usJeffHas anyone else had problems with the screen not blanking/locking on Gnome 47? 18:17:40
4 Nov 2024
@jtojnar:matrix.orgJan Tojnar
In reply to @andrew15_5:matrix.org

I was advised to ask here instead of https://matrix.to/#/#users:nixos.org.

I installed home-manager flake on Pop!_OS 22.04 a few weeks ago and since then I got a few programs crashed when opening a home dir. I finally got to the bottom of this and renaming ~/.local/state/nix/profiles/profile to anything else fixes it. Or removing ~/.nix-profile/share from XDG_DATA_DIRS. Can someone explain why that happens and how can I fix this without launching all the problematic apps with env?

strace nautilus:

...
futex(0x62f00be67740, FUTEX_WAKE_PRIVATE, 1) = 1
openat(AT_FDCWD, "/usr/share/icons/Pop/scalable/actions/bookmark-new-symbolic.svg", O_RDONLY) = 26
statx(26, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_TYPE, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=208, ...}) = 0
read(26, "<svg viewBox='0 0 16 16' xmlns='"..., 8192) = 208
read(26, "", 8192)                      = 0
close(26)                               = 0
openat(AT_FDCWD, "/usr/share/icons/Pop/scalable/actions/bookmark-new-symbolic.svg", O_RDONLY) = 26
statx(26, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_TYPE, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=208, ...}) = 0
read(26, "<svg viewBox='0 0 16 16' xmlns='"..., 65536) = 208
read(26, "", 65536)                     = 0
futex(0x7f02b05cf600, FUTEX_WAIT_PRIVATE, 2, NULL) = ?
+++ killed by SIGSEGV (core dumped) +++
zsh: segmentation fault (core dumped)  strace nautilus

rg '\bnix' trace.log | lines gives 778, rg '\bnix' trace.log | rg 'No such file or directory' | lines gives 681, which are basically:

newfstatat(AT_FDCWD, "/home/user/.nix-profile/share/icons/gnome/index.theme", 0x7fffe3436c90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.nix-profile/share/pixmaps/gnome/index.theme", 0x7fffe3436c90, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.nix-profile/share/icons/icon-theme.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.nix-profile/share/pixmaps/icon-theme.cache", O_RDONLY) = -1 ENOENT (No such file or directory)

gdb says this 0x00007ffff7278a2d in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0.

env | rg -i gio:

GIO_LAUNCHED_DESKTOP_FILE_PID=18591
Theme files not being found still should not cause GLib to crash. Could you try getting more lines of backtrace in gdb? Ideally, with debug symbols but it does not look like they are easy to come by in Pop!_OS https://github.com/pop-os/pop/issues/2797
18:55:52
@andrew15_5:matrix.orgAndrew
In reply to @jtojnar:matrix.org
Theme files not being found still should not cause GLib to crash. Could you try getting more lines of backtrace in gdb? Ideally, with debug symbols but it does not look like they are easy to come by in Pop!_OS https://github.com/pop-os/pop/issues/2797
 gdb nautilus
GNU gdb (GDB) 13.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from nautilus...
(No debugging symbols found in nautilus)
(gdb) run
Starting program: /usr/bin/nautilus
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff3000640 (LWP 2015313)]
[New Thread 0x7ffff2600640 (LWP 2015314)]
[New Thread 0x7ffff1c00640 (LWP 2015316)]
[New Thread 0x7ffff1200640 (LWP 2015317)]
[New Thread 0x7fffeae00640 (LWP 2015318)]

(org.gnome.Nautilus:2015304): Handy-WARNING **: 00:44:00.681: Using GtkSettings:gtk-application-prefer-dark-theme together with HdyStyleManager is unsupported. Please use HdyStyleManager:color-scheme instead.
[New Thread 0x7fffea400640 (LWP 2015319)]
[New Thread 0x7fffe9a00640 (LWP 2015320)]
[Thread 0x7fffe9a00640 (LWP 2015320) exited]
[New Thread 0x7fffe9a00640 (LWP 2015321)]
[New Thread 0x7fffe9000640 (LWP 2015322)]
[Thread 0x7fffe9a00640 (LWP 2015321) exited]
[New Thread 0x7fffe9a00640 (LWP 2015323)]
[New Thread 0x7fffdfe00640 (LWP 2015324)]
[Thread 0x7fffe9000640 (LWP 2015322) exited]
[Thread 0x7fffe9a00640 (LWP 2015323) exited]
[Thread 0x7fffdfe00640 (LWP 2015324) exited]
[New Thread 0x7fffdfe00640 (LWP 2015325)]
[New Thread 0x7fffe9a00640 (LWP 2015326)]
[New Thread 0x7fffe9000640 (LWP 2015330)]
[New Thread 0x7fffde800640 (LWP 2015332)]
[New Thread 0x7fffdde00640 (LWP 2015333)]
[New Thread 0x7fffdd400640 (LWP 2015334)]
[New Thread 0x7fffdca00640 (LWP 2015335)]

Thread 18 "pool-org.gnome." received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffdd400640 (LWP 2015334)]
0x00007ffff7278a2d in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
(gdb)
21:45:10
@andrew15_5:matrix.orgAndrew
In reply to @jtojnar:matrix.org
Theme files not being found still should not cause GLib to crash. Could you try getting more lines of backtrace in gdb? Ideally, with debug symbols but it does not look like they are easy to come by in Pop!_OS https://github.com/pop-os/pop/issues/2797
*
 gdb nautilus
GNU gdb (GDB) 13.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from nautilus...
(No debugging symbols found in nautilus)
(gdb) run
Starting program: /usr/bin/nautilus
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff3000640 (LWP 2015313)]
[New Thread 0x7ffff2600640 (LWP 2015314)]
[New Thread 0x7ffff1c00640 (LWP 2015316)]
[New Thread 0x7ffff1200640 (LWP 2015317)]
[New Thread 0x7fffeae00640 (LWP 2015318)]

(org.gnome.Nautilus:2015304): Handy-WARNING **: 00:44:00.681: Using GtkSettings:gtk-application-prefer-dark-theme together with HdyStyleManager is unsupported. Please use HdyStyleManager:color-scheme instead.
[New Thread 0x7fffea400640 (LWP 2015319)]
[New Thread 0x7fffe9a00640 (LWP 2015320)]
[Thread 0x7fffe9a00640 (LWP 2015320) exited]
[New Thread 0x7fffe9a00640 (LWP 2015321)]
[New Thread 0x7fffe9000640 (LWP 2015322)]
[Thread 0x7fffe9a00640 (LWP 2015321) exited]
[New Thread 0x7fffe9a00640 (LWP 2015323)]
[New Thread 0x7fffdfe00640 (LWP 2015324)]
[Thread 0x7fffe9000640 (LWP 2015322) exited]
[Thread 0x7fffe9a00640 (LWP 2015323) exited]
[Thread 0x7fffdfe00640 (LWP 2015324) exited]
[New Thread 0x7fffdfe00640 (LWP 2015325)]
[New Thread 0x7fffe9a00640 (LWP 2015326)]
[New Thread 0x7fffe9000640 (LWP 2015330)]
[New Thread 0x7fffde800640 (LWP 2015332)]
[New Thread 0x7fffdde00640 (LWP 2015333)]
[New Thread 0x7fffdd400640 (LWP 2015334)]
[New Thread 0x7fffdca00640 (LWP 2015335)]

Thread 18 "pool-org.gnome." received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffdd400640 (LWP 2015334)]
0x00007ffff7278a2d in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
(gdb)
21:45:28
@andrew15_5:matrix.orgAndrew

I "fixed" it with

fx = ''env XDG_DATA_DIRS=$(echo $XDG_DATA_DIRS | sd "$HOME/.nix-profile/share:" "") $SHELL'';
21:46:18
@andrew15_5:matrix.orgAndrew

Same with typstwriter, but I can't debug it. And pdb crashes with the typstwriter if I run it. Well, I can do this:

 gdb --args python3 $(which typstwriter)
GNU gdb (GDB) 13.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3...
(No debugging symbols found in python3)
(gdb) r
Starting program: /usr/bin/python3 ~/.local/bin/typstwriter
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
INFO     2024-11-05 00:49:25,414    typstwriter.py       main                       line 18  : Typstwriter started
INFO     2024-11-05 00:49:25,414    typstwriter.py       main                       line 21  : Reading Config
INFO     2024-11-05 00:49:25,419    typstwriter.py       main                       line 25  : Initialising State
INFO     2024-11-05 00:49:25,716    typstwriter.py       main                       line 35  : Initialize Application
[New Thread 0x7fffed800640 (LWP 2021870)]
[New Thread 0x7fffece00640 (LWP 2021871)]
[New Thread 0x7fffe7400640 (LWP 2021872)]
[New Thread 0x7fffe6a00640 (LWP 2021873)]
[New Thread 0x7fffe6000640 (LWP 2021876)]
[Thread 0x7fffe6000640 (LWP 2021876) exited]
[New Thread 0x7fffe6000640 (LWP 2021879)]
[New Thread 0x7fffe5600640 (LWP 2021880)]
[Thread 0x7fffe6000640 (LWP 2021879) exited]
[New Thread 0x7fffe6000640 (LWP 2021881)]
[New Thread 0x7fffe4c00640 (LWP 2021882)]
[Thread 0x7fffe5600640 (LWP 2021880) exited]
[Thread 0x7fffe6000640 (LWP 2021881) exited]
[Thread 0x7fffe4c00640 (LWP 2021882) exited]
QApplication: invalid style override 'kvantum' passed, ignoring it.
        Available styles: Windows, Fusion
[New Thread 0x7fffe4c00640 (LWP 2021889)]
[New Thread 0x7fffe6000640 (LWP 2021890)]
[New Thread 0x7fffe5600640 (LWP 2021891)]
INFO     2024-11-05 00:49:26,212    mainwindow.py        __init__                   line 165 : Gui ready
INFO     2024-11-05 00:49:26,212    typstwriter.py       main                       line 41  : Run Application

Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
0x00007fffee568e33 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
(gdb)
21:50:55
5 Nov 2024
@jtojnar:matrix.orgJan Tojnar Andrew: sorry, I meant using the bt command in gdb 00:16:28
@andrew15_5:matrix.orgAndrew
In reply to @jtojnar:matrix.org
Andrew: sorry, I meant using the bt command in gdb
You will not like this... XD
04:03:37
@andrew15_5:matrix.orgAndrew
#1 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
...
#87214 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87215 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87216 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87217 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87218 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87219 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87220 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87221 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87222 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87223 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87224 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87225 0x00007ffff72061c5 in g_content_type_guess () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87226 0x00007ffff726e84d in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87227 0x00007ffff726ec8b in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87228 0x00007ffff726af15 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87229 0x00007ffff71a1d80 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87230 0x00007ffff71e8194 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87231 0x00007ffff7ed6714 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#87232 0x00007ffff7ed3ab1 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#87233 0x00007ffff6a94ac3 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#87234 0x00007ffff6b26850 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
04:04:15
@andrew15_5:matrix.orgAndrewI guess it crashes on recursion level limit? Which is kinda a lot. I thought the default value is somewhere around 100.04:06:37
@paperdigits:matrix.org@paperdigits:matrix.org left the room.04:40:30
@andrew15_5:matrix.orgAndrew *
#0 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
...
#87214 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87215 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87216 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87217 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87218 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87219 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87220 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87221 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87222 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87223 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87224 0x00007ffff7279073 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87225 0x00007ffff72061c5 in g_content_type_guess () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87226 0x00007ffff726e84d in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87227 0x00007ffff726ec8b in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87228 0x00007ffff726af15 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87229 0x00007ffff71a1d80 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87230 0x00007ffff71e8194 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#87231 0x00007ffff7ed6714 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#87232 0x00007ffff7ed3ab1 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#87233 0x00007ffff6a94ac3 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#87234 0x00007ffff6b26850 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
13:33:15

Show newer messages


Back to Room ListRoom Version: 6