Hyprland
Hyprland copied to clipboard
Crash at 5120x1440 on nvidia
I've been setting up Hyprland over the last couple of days, so it's somewhat difficult to pin down exactly when this "broke" but as of this morning using 5120x1440 causes some strange behaviour and a segfault.
I changed the resolution in config and updated the nvidia driver from 525.60 -> 525.78 around the same time yesterday. I'm 99% sure I had both working at the same time but I can't really remember. I definitely has 5120x1440 working at some point though - and sway works fine at that resolution.
I've reproduced on the autogenerated config with only changing the res. When loading in 3840x1080 everything works fine, but when setting to 5120x1440 then:
- the entire screen looks a bit dim, cycling workspaces fixes this
- wofi will open on a keybind but won't refresh.. typing doesn't display until I hit enter
- opening any app causes an assertion failure here
I built in debug mode and captured a stacktrace as well - logs:
crash log - hyprlandd.log stacktrace - asan.log
I built locally from 6a56d1e4d035824ea5dc94180994017346c5c067 with the nvidia.patch applied from the hyprland-nvidia-git AUR package.
can you try setting the scale explicitly, manually, on that res? Like 1, 1.5, 2. The default is auto.
Explicitly setting the scale resolved this - thanks! I tried 1, 1.5 & 2 and it worked fine for all values :+1:
can you give me the hyprland log of that happening after compiling f14e8088478bf1e80e02a213a23c528fe32d3b91
:point_right: hyprland.f14e808.log.txt
That log has the crash however when explicitly setting the scale (to workaround the crash) the debug log line looks identical.
~ $ find /tmp/hypr -name '*log' -exec grep -H 'Monitor DP-1 data dump:' {} \;
/tmp/hypr/f14e8088478bf1e80e02a213a23c528fe32d3b91_1673991128/hyprland.log:[LOG] Monitor DP-1 data dump: res 0x0@6mHz, scale 5120.00, transform 0, pos 0x-1, 10b 0
/tmp/hypr/f14e8088478bf1e80e02a213a23c528fe32d3b91_1673991076/hyprland.log:[LOG] Monitor DP-1 data dump: res 0x0@6mHz, scale 5120.00, transform 0, pos 0x-1, 10b 0
oops I fucked up the types. Can you plox do that again on head? they should be fixed with the recent commit
Sorry for the slow reply, debug log and stacktrace from the crash running 5112056fdbda989191310364444f328240bbf6f1
For me, I can't even get Hyprland to active this resolution. Running the current version of Hyprland and the Nvidia DKMS drivers with an Nvidia card, hyprctl monitors only reports 3840x1080 as the only resolution.
I have set explicit values for all arguments, tried adding @120 or @60 behind the resolution. No help. No crashes either but rendering, especially font rendering, looks very weird at 3840x1080.
My current line looks like
monitor=G9,5120x1440,0x0,1.5
Update: in case it helps, this is the output of xrandr --verbose for that screen (in X11, everything works fine):
DP-4 connected primary 5120x1440+0+0 (0x1c4) normal (normal left inverted right x axis y axis) 1mm x 1mm
Identifier: 0x1c2
Timestamp: 2043397
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 1.0
Clones:
CRTC: 0
CRTCs: 0 1 2 3
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0
EDID:
00ffffffffffff004c2d537055385843
2f1e0104b57722783bc725b14b46a826
0e5054bfef80714f810081c08180a9c0
b3009500d1c074d600a0f03840403020
3a00a9504100001a000000fd003c78b7
b761010a202020202020000000fc004c
433439473935540a20202020000000ff
0048345a4e4230303038370a202002b8
02032df044105a3f5c23090707830100
00e305c0006d1a0000020f3c7800048b
127317e3060501e5018b849001565e00
a0a0a0295030203500a9504100001a58
4d00b8a1381440f82c4500a950410000
1e1a6800a0f0381f4030203a00a95041
00001a6fc200a0a0a0555030203500a9
504100001a00000000000000000000fc
70127900000301282f790188ff139f00
2f801f009f0553000200090033b70008
ff139f002f801f009f05280002000900
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000004f90
BorderDimensions: 4
supported: 4
Border: 0 0 0 0
range: (0, 65535)
SignalFormat: DisplayPort
supported: DisplayPort
ConnectorType: DisplayPort
ConnectorNumber: 0
_ConnectorLocation: 0
non-desktop: 0
supported: 0, 1
3840x1080 (0x1c3) 549.000MHz +HSync -VSync +preferred
h: width 3840 start 3888 end 3920 total 4000 skew 0 clock 137.25KHz
v: height 1080 start 1083 end 1093 total 1144 clock 119.97Hz
5120x1440 (0x1c4) 965.600MHz +HSync -VSync *current
h: width 5120 start 5168 end 5200 total 5280 skew 0 clock 182.88KHz
v: height 1440 start 1443 end 1453 total 1524 clock 120.00Hz
5120x1440 (0x1c5) 469.000MHz +HSync -VSync
h: width 5120 start 5168 end 5200 total 5280 skew 0 clock 88.83KHz
v: height 1440 start 1443 end 1453 total 1481 clock 59.98Hz
3840x1080 (0x1c6) 266.500MHz +HSync -VSync
h: width 3840 start 3888 end 3920 total 4000 skew 0 clock 66.62KHz
v: height 1080 start 1083 end 1093 total 1111 clock 59.97Hz
2560x1440 (0x1c7) 497.750MHz +HSync -VSync
h: width 2560 start 2608 end 2640 total 2720 skew 0 clock 183.00KHz
v: height 1440 start 1443 end 1448 total 1525 clock 120.00Hz
2560x1440 (0x1c8) 241.500MHz +HSync -VSync
h: width 2560 start 2608 end 2640 total 2720 skew 0 clock 88.79KHz
v: height 1440 start 1443 end 1448 total 1481 clock 59.95Hz
2560x1080 (0x1c9) 494.510MHz +HSync +VSync
h: width 2560 start 3108 end 3152 total 3300 skew 0 clock 149.85KHz
v: height 1080 start 1084 end 1089 total 1250 clock 119.88Hz
2560x1080 (0x1ca) 198.000MHz +HSync +VSync
h: width 2560 start 2808 end 2852 total 3000 skew 0 clock 66.00KHz
v: height 1080 start 1084 end 1089 total 1100 clock 60.00Hz
2560x1080 (0x1cb) 197.800MHz +HSync +VSync
h: width 2560 start 2808 end 2852 total 3000 skew 0 clock 65.93KHz
v: height 1080 start 1084 end 1089 total 1100 clock 59.94Hz
1920x1080 (0x1cc) 296.700MHz +HSync +VSync
h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 134.86KHz
v: height 1080 start 1084 end 1089 total 1125 clock 119.88Hz
1920x1080 (0x1cd) 148.500MHz +HSync +VSync
h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.50KHz
v: height 1080 start 1084 end 1089 total 1125 clock 60.00Hz
1920x1080 (0x1ce) 148.350MHz +HSync +VSync
h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.43KHz
v: height 1080 start 1084 end 1089 total 1125 clock 59.94Hz
1680x1050 (0x1cf) 146.250MHz -HSync +VSync
h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.29KHz
v: height 1050 start 1053 end 1059 total 1089 clock 59.95Hz
1600x900 (0x1d0) 108.000MHz +HSync +VSync
h: width 1600 start 1624 end 1704 total 1800 skew 0 clock 60.00KHz
v: height 900 start 901 end 904 total 1000 clock 60.00Hz
1440x900 (0x1d1) 106.500MHz -HSync +VSync
h: width 1440 start 1520 end 1672 total 1904 skew 0 clock 55.93KHz
v: height 900 start 903 end 909 total 934 clock 59.89Hz
1280x1024 (0x1d2) 135.000MHz +HSync +VSync
h: width 1280 start 1296 end 1440 total 1688 skew 0 clock 79.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 75.02Hz
1280x1024 (0x1d3) 108.000MHz +HSync +VSync
h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz
1280x800 (0x1d4) 83.500MHz -HSync +VSync
h: width 1280 start 1352 end 1480 total 1680 skew 0 clock 49.70KHz
v: height 800 start 803 end 809 total 831 clock 59.81Hz
1280x720 (0x1d5) 74.250MHz +HSync +VSync
h: width 1280 start 1390 end 1430 total 1650 skew 0 clock 45.00KHz
v: height 720 start 725 end 730 total 750 clock 60.00Hz
1152x864 (0x1d6) 108.000MHz +HSync +VSync
h: width 1152 start 1216 end 1344 total 1600 skew 0 clock 67.50KHz
v: height 864 start 865 end 868 total 900 clock 75.00Hz
1024x768 (0x1d7) 78.750MHz +HSync +VSync
h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.02KHz
v: height 768 start 769 end 772 total 800 clock 75.03Hz
1024x768 (0x1d8) 75.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1328 skew 0 clock 56.48KHz
v: height 768 start 771 end 777 total 806 clock 70.07Hz
1024x768 (0x1d9) 65.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
v: height 768 start 771 end 777 total 806 clock 60.00Hz
800x600 (0x1da) 49.500MHz +HSync +VSync
h: width 800 start 816 end 896 total 1056 skew 0 clock 46.88KHz
v: height 600 start 601 end 604 total 625 clock 75.00Hz
800x600 (0x1db) 50.000MHz +HSync +VSync
h: width 800 start 856 end 976 total 1040 skew 0 clock 48.08KHz
v: height 600 start 637 end 643 total 666 clock 72.19Hz
800x600 (0x1dc) 40.000MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
v: height 600 start 601 end 605 total 628 clock 60.32Hz
800x600 (0x1dd) 36.000MHz +HSync +VSync
h: width 800 start 824 end 896 total 1024 skew 0 clock 35.16KHz
v: height 600 start 601 end 603 total 625 clock 56.25Hz
640x480 (0x1de) 31.500MHz -HSync -VSync
h: width 640 start 656 end 720 total 840 skew 0 clock 37.50KHz
v: height 480 start 481 end 484 total 500 clock 75.00Hz
640x480 (0x1df) 31.500MHz -HSync -VSync
h: width 640 start 656 end 696 total 832 skew 0 clock 37.86KHz
v: height 480 start 481 end 484 total 520 clock 72.81Hz
640x480 (0x1e0) 25.175MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
v: height 480 start 490 end 492 total 525 clock 59.94Hz
What does wlr-randr show when in Hyprland? eg I get this
$ wlr-randr
DP-1 "Samsung Electric Company C49RG9x (DP-1)"
Make: Samsung Electric Company
Model: C49RG9x
Physical size: 1190x340 mm
Enabled: yes
Modes:
3840x1080 px, 119.973999 Hz (preferred)
5120x1440 px, 119.970001 Hz
5120x1440 px, 99.996002 Hz
5120x1440 px, 59.977001 Hz (current)
3840x1080 px, 99.956001 Hz
3840x1080 px, 59.967999 Hz
2560x1440 px, 59.951000 Hz
2560x1080 px, 119.880997 Hz
2560x1080 px, 100.000000 Hz
2560x1080 px, 60.000000 Hz
2560x1080 px, 59.938999 Hz
1920x1080 px, 119.878998 Hz
1920x1080 px, 100.000000 Hz
1920x1080 px, 60.000000 Hz
1920x1080 px, 59.938999 Hz
1680x1050 px, 59.953999 Hz
1600x900 px, 60.000000 Hz
1280x1024 px, 75.025002 Hz
1280x1024 px, 60.020000 Hz
1440x900 px, 59.887001 Hz
1280x800 px, 59.810001 Hz
1152x864 px, 75.000000 Hz
1280x720 px, 60.000000 Hz
1024x768 px, 75.028999 Hz
1024x768 px, 70.069000 Hz
1024x768 px, 60.004002 Hz
800x600 px, 75.000000 Hz
800x600 px, 72.188004 Hz
800x600 px, 60.317001 Hz
800x600 px, 56.250000 Hz
640x480 px, 75.000000 Hz
640x480 px, 72.808998 Hz
640x480 px, 59.939999 Hz
Position: 0,0
Transform: normal
Scale: 1.000000
Adaptive Sync: disabled
is this still a thing?
closing