Logs on 2022-07-09 (liberachat/#xmonad)
| 01:57:33 | → | Shadorain joins (~Shadorain@pool-108-53-7-39.nwrknj.fios.verizon.net) |
| 02:03:43 | × | banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 256 seconds) |
| 02:05:43 | <Shadorain> | hey! so I recently compiled and found that there was a few breaking changes in my config. Main one being EwmhDesktops. I have a slightly custom setup that worked great until this and i dont exactly know how to fix it |
| 02:06:08 | <Shadorain> | i have 3 mons and separate workspaces per each, and I want my loghook to only display one monitors worth. This was all setup |
| 02:06:46 | → | telser joins (~quassel@user/telser) |
| 02:08:29 | <Shadorain> | ```myLogHook = do |
| 02:08:29 | <Shadorain> | ewmhDesktopsEventHookCustom (unmarshallWindowSpace . Main.workspacesOn 0 . namedScratchpadFilterOutWorkspace) |
| 02:08:30 | <Shadorain> | logger``` is what i used to have but both the named scratchpad and ewmh functions were deprecated |
| 02:09:06 | <Shadorain> | i was able to figure out how to add the namedScratchpad filter but cant for my other two pieces in that |
| 02:09:22 | <Shadorain> | oops that had a `map` before the unmarshallWindowSpace btw |
| 02:22:40 | → | banc joins (banc@gateway/vpn/airvpn/banc) |
| 02:28:03 | × | jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 276 seconds) |
| 02:32:36 | × | td_ quits (~td@94.134.91.254) (Ping timeout: 276 seconds) |
| 02:34:04 | → | td_ joins (~td@muedsl-82-207-238-037.citykom.de) |
| 02:43:17 | <Shadorain> | sorry i got that wrong, it originally was `ewmhDesktopsLogHookCustom (map unmarshallWindowSpace . Main.workspacesOn 0 . namedScratchpadFilterOutWorkspace)` slightly different than above |
| 03:15:02 | × | Shadorain quits (~Shadorain@pool-108-53-7-39.nwrknj.fios.verizon.net) (Quit: Client closed) |
| 03:17:27 | → | Shadorain joins (~Shadorain@pool-108-53-7-39.nwrknj.fios.verizon.net) |
| 03:18:38 | × | Shadorain quits (~Shadorain@pool-108-53-7-39.nwrknj.fios.verizon.net) (Client Quit) |
| 04:40:06 | × | doppo quits (~doppo@2604:180::e0fc:a07f) (Read error: Connection reset by peer) |
| 04:40:40 | → | doppo joins (~doppo@2604:180::e0fc:a07f) |
| 04:57:04 | <scotabroad[m]> | Chromium-based apps and Electron-based apps don't seem to work. Both app types take a while to open, and even then, I can't interact with them (like searching or typing). I am on Fedora 36 with Xmonad 0.17.0 (and yes, I have ewmhFullscreen and ewmh in that order in my xmonad.hs) |
| 05:12:03 | <scotabroad[m]> | Nevermind, disabling hardware acceleration fixed the issue for the Chromium apps (and probably will be needed for others too), though this required logging into GNOME to disable the option |
| 06:03:40 | × | sagax quits (~sagax_nb@user/sagax) (Remote host closed the connection) |
| 06:10:49 | → | Kaladin joins (~Kaladin@157-131-200-16.fiber.dynamic.sonic.net) |
| 06:13:08 | <Kaladin> | hello #xmonad, I recently updated to 0,17 from 0.15 and had to make changes related to ewmh and now I am having all of my apps flickering, especially noticable at the border which changes color for focus, I seem to be able to use them fine but can anyone help me stop the flickering? |
| 06:13:22 | <Kaladin> | I lwill post the specific change that started it... |
| 06:15:29 | <Kaladin> | myConfig xmproc = ewmh ( docks def ) {...} ... became ... myConfig xmproc = ewmhFullscreen $ ewmh $ docks def {...} |
| 06:15:43 | <Kaladin> | so basically jsut trying to add back in ewmhFullscreen |
| 06:15:49 | <Kaladin> | did I do it wrong? |
| 06:16:39 | → | sagax joins (~sagax_nb@user/sagax) |
| 06:17:10 | <Kaladin> | in 0.15 the fullscreenEventHook was used elsewhere .. "myEventHook =..." |
| 06:26:09 | × | Kaladin quits (~Kaladin@157-131-200-16.fiber.dynamic.sonic.net) (Quit: Leaving) |
| 06:28:36 | → | Kaladin joins (~Kaladin@157-131-200-16.fiber.dynamic.sonic.net) |
| 06:48:00 | <Kaladin> | reverted and flickering gone again but of course now apps don't fullscreen |
| 07:25:49 | × | Kaladin quits (~Kaladin@157-131-200-16.fiber.dynamic.sonic.net) (Quit: Leaving) |
| 08:19:54 | → | chomwitt joins (~chomwitt@2a02:587:dc0d:4a00:c5c0:a118:2df4:ea86) |
| 09:02:51 | → | alternateved joins (~alternate@5.253.206.94) |
| 09:53:50 | → | Zedgamer9128[m] joins (~zedgamer9@2001:470:69fc:105::2:3ee4) |
| 09:57:14 | <Zedgamer9128[m]> | Hello i want to run a picom with different config when more than one windows are open and different when only one window is open |
| 09:59:19 | <Zedgamer9128[m]> | like how spacingRaw does |
| 09:59:34 | <Zedgamer9128[m]> | it adds gaps when more than two windows are open |
| 10:42:06 | → | mvk joins (~mvk@2607:fea8:5ce3:8500::909a) |
| 11:24:43 | → | jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) |
| 12:33:59 | <geekosaur> | that's doable with a custom layout modifier, but it would be really distracting |
| 12:59:37 | → | Shadorain joins (~Shadorain@pool-108-53-7-39.nwrknj.fios.verizon.net) |
| 13:00:44 | × | Shadorain quits (~Shadorain@pool-108-53-7-39.nwrknj.fios.verizon.net) (Client Quit) |
| 13:09:16 | × | alternateved quits (~alternate@5.253.206.94) (Ping timeout: 244 seconds) |
| 13:11:47 | <Zedgamer9128[m]> | can xmonad layout be exported to fish shell |
| 13:12:18 | <Zedgamer9128[m]> | like run a spawn command `fish -c set -U layout $win` |
| 13:12:46 | <Zedgamer9128[m]> | where $win is a variable for xmonad layout and it update upon layout change |
| 13:13:16 | <Zedgamer9128[m]> | <Zedgamer9128[m]> "Hello i want to run a picom with..." <- i kind of done this fish shell here is the code |
| 13:13:28 | <Zedgamer9128[m]> | ``` |
| 13:14:29 | <Zedgamer9128[m]> | * ```... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/6a9d3fa69cc40660f5350060d8cff4a2bd032883) |
| 13:14:48 | <Zedgamer9128[m]> | * done this from fish shell |
| 13:15:56 | <Zedgamer9128[m]> | but it doesnt change when the layout changes to Full because the apps are still open but only one window is shown |
| 13:16:04 | <Zedgamer9128[m]> | thats why i want to export the layout |
| 13:21:38 | <geekosaur> | you would do that in the logHook, probably with a custom dynamicLogString call. note that it's highly unlikely that fish variables are shared in such a way that a spawn could update them for a running shell |
| 13:22:24 | <Zedgamer9128[m]> | geekosaur: universal variable -U works |
| 13:23:17 | <Zedgamer9128[m]> | any example to do that |
| 13:23:32 | <Zedgamer9128[m]> | i dont really know haskell or xmonad enough |
| 13:28:33 | <geekosaur> | dynamicLogString def {ppOrder = \(_:l:_) -> [l]; ppOutput = spawn "…"} |
| 13:30:35 | <Zedgamer9128[m]> | geekosaur: and where would i put that |
| 13:30:53 | <Zedgamer9128[m]> | in myXmobarPP |
| 13:30:57 | <Zedgamer9128[m]> | * in myXmobarPP ? |
| 13:32:09 | <geekosaur> | hm, that wasn't quite right. but it goes in the logHook |
| 13:33:30 | <geekosaur> | void (dynamicLogString def {ppLayout = show; ppOrder = \(_:l:_) -> [l]; ppOutput = \s -> spawn $ "fish -c set -U " ++ s ++ " $win"}) |
| 13:33:48 | <geekosaur> | if I understand your earlier example correctly, which I probably don't because I don't know fish |
| 13:39:17 | <geekosaur> | in particular I am almost certain that needs some extra quotes to work. did you test that command with fish -c to verify it works? |
| 13:42:25 | <Zedgamer9128[m]> | this error is happening |
| 13:42:25 | <Zedgamer9128[m]> | ``` |
| 13:42:25 | <Zedgamer9128[m]> | xmonad.hs:37:44: error: parse error on input ‘;’ |
| 13:42:25 | <Zedgamer9128[m]> | ``` |
| 13:42:58 | <geekosaur> | that doesn't surprise me, I never remember whether that is , or ; |
| 13:43:17 | <geekosaur> | void (dynamicLogString def {ppLayout = show, ppOrder = \(_:l:_) -> [l], ppOutput = \s -> spawn $ "fish -c set -U " ++ s ++ " $win"}) |
| 13:43:27 | <geekosaur> | I still think the spawn will be wrong |
| 13:44:28 | <Zedgamer9128[m]> | the full fish command is "fish -c 'set -U layout Full'" |
| 13:44:49 | <geekosaur> | okay, that is doable |
| 13:45:10 | <Zedgamer9128[m]> | but will ++ work since you will have to close the quotes |
| 13:45:27 | <geekosaur> | void (dynamicLogString def {ppLayout = show, ppOrder = \(_:l:_) -> [l], ppOutput = \s -> spawn $ "fish -c 'set -U layout " ++ s ++ "'"}) |
| 13:45:40 | <geekosaur> | ++ doesn't care if the string includes quotes |
| 13:46:03 | <geekosaur> | and haskell is not a shell, it doesn't track different kinds of quotes like that |
| 13:46:48 | <geekosaur> | also note that the layout name is quoted by the `ppLayout` so you shouldn't need to worry about that either |
| 13:47:29 | <Zedgamer9128[m]> | xmonad.hs:38:1: error:... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/7e9758857c95f93c2b01ea3ae25551f63d2be69e) |
| 13:47:32 | <Zedgamer9128[m]> | new error |
| 13:48:02 | <geekosaur> | once again: this goes in the logHook |
| 13:48:06 | <geekosaur> | not at the top level |
| 13:48:27 | <geekosaur> | https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L127 |
| 13:51:31 | <Zedgamer9128[m]> | xmonad.hs:47:17: error: |
| 13:51:31 | <Zedgamer9128[m]> | Variable not in scope: void :: X String -> X () |
| 13:52:32 | <Zedgamer9128[m]> | ``` |
| 13:52:44 | <Zedgamer9128[m]> | is this right |
| 13:52:44 | <Zedgamer9128[m]> | * ```... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/329e422866ce2f19e45f210418eaa8fea7e33317) |
| 14:03:12 | <geekosaur> | it's right but I forgot void isn't in the Prelude |
| 14:03:16 | <geekosaur> | @index void |
| 14:03:17 | <lambdabot> | Foreign.Marshal.Error, Foreign.Marshal, Foreign, Foreign.Safe, Foreign.Marshal.Safe, Data.Functor, Control.Monad |
| 14:03:41 | <geekosaur> | import Data.Functor at the top, where you should already have an `import XMonad` |
| 14:07:14 | <Zedgamer9128[m]> | no errors but the variable is not shown |
| 14:07:42 | <geekosaur> | actually I think that should have been dynamicLog without the void, but oh well |
| 14:07:51 | <geekosaur> | I don't know how fish works |
| 14:12:00 | <geekosaur> | can you check for errors in ~/.xsession-errors? (unless you're on fedora and then you have to do something with journalctl) |
| 14:12:35 | <Zedgamer9128[m]> | there is no .xsession-errors arch |
| 14:12:58 | <geekosaur> | did you use startx instead of a display manager? |
| 14:13:12 | <Zedgamer9128[m]> | yeah .xinitrc |
| 14:13:40 | <geekosaur> | then it'll be on the original virtual terminal. probably ctrl+alt+f1 |
| 14:14:41 | <Zedgamer9128[m]> | geekosaur: sorry it is started by sddm |
| 14:15:05 | <Zedgamer9128[m]> | by a package i think called xinit-xsession |
| 14:15:20 | <Zedgamer9128[m]> | that turn xinit to desktop to launch from sddm |
| 14:15:40 | <geekosaur> | hm. normally that would put the error log in .xsession-errors |
| 14:18:15 | <geekosaur> | okay, looks like sddm uses ~/.local/sddb/xorg-session.log |
| 14:18:19 | <geekosaur> | er |
| 14:18:28 | <geekosaur> | ~/.local/sddm/xorg-session.log |
| 14:22:13 | <Zedgamer9128[m]> | i made .xsession-errors by editing xinitrc to `exec xmonad 2> ~/.xsession-errors |
| 14:22:23 | <Zedgamer9128[m]> | the only errors i see are gtk and chrome |
| 14:23:01 | → | qther joins (~qther@138.75.66.60) |
| 14:23:07 | <geekosaur> | I don't know if fish sends errors to stderr,m it differs from standard shells in so many other ways… |
| 14:27:24 | <geekosaur> | the other thing to check is ~/.config/fish/fish_variables |
| 14:31:31 | <Zedgamer9128[m]> | geekosaur: no layout variable |
| 14:31:57 | <Zedgamer9128[m]> | i dont think the fish command is running probably because of ++ |
| 14:32:08 | <geekosaur> | why do you suspect the ++? |
| 14:32:12 | <Zedgamer9128[m]> | sorry not that |
| 14:32:33 | <Zedgamer9128[m]> | i changed the command to killall yakuake to see if it will kill and it didnt |
| 14:32:58 | <Zedgamer9128[m]> | so the fish script is not at all running |
| 14:33:02 | <geekosaur> | ppOutput not running at all, hm, suppose that's possible/ hold on |
| 14:33:23 | <geekosaur> | dynamicLog def {ppLayout = show, ppOrder = \(_:l:_) -> [l], ppOutput = \s -> spawn $ "fish -c 'set -U layout " ++ s ++ "'"} |
| 14:33:50 | <Zedgamer9128[m]> | put it in logHook? |
| 14:33:56 | <geekosaur> | (remove the void wrapping the whole thing and change dynamicLogString to dynamicLog, I think ppOutput is not used with dynamicLogString) |
| 14:33:59 | <geekosaur> | yes, same place |
| 14:35:08 | <geekosaur> | > (\s -> id $ "fish -c 'set -U layout " ++ show s ++ "'") "Full" |
| 14:35:10 | <lambdabot> | "fish -c 'set -U layout \"Full\"'" |
| 14:35:22 | <geekosaur> | > text $ (\s -> id $ "fish -c 'set -U layout " ++ show s ++ "'") "Full" |
| 14:35:24 | <lambdabot> | fish -c 'set -U layout "Full"' |
| 14:35:51 | Zedgamer9128[m] | sent a code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/2dee442a204474a6f7f12381ac1645add6ec4427 |
| 14:36:47 | <geekosaur> | oh, it's dynamicLogWithPP |
| 14:37:00 | <geekosaur> | the old API is a bit of a mess, but the new API doesn't expose this stuff |
| 14:37:38 | <Zedgamer9128[m]> | whoa it worked thank you so much |
| 14:38:12 | <geekosaur> | might have a problem if you switch layouts (or workspaces if you use PerWorkspace) too quickly, since spawn is asynchronous |
| 14:40:10 | <Zedgamer9128[m]> | well only the killall command worked |
| 14:42:28 | <geekosaur> | if killall worked but the fish command didn't, you'll have to find someone who knows fish better, I think |
| 14:42:44 | <geekosaur> | I verified the command that it's sending above |
| 14:42:52 | <geekosaur> | and it looks like what you told me |
| 14:43:19 | <geekosaur> | > text $ ((\s -> id $ "fish -c 'set -U layout " ++ s ++ "'") . show) "Full" |
| 14:43:21 | <lambdabot> | fish -c 'set -U layout "Full"' |
| 14:43:36 | → | qbt joins (~qbt@user/edun) |
| 14:44:50 | <Zedgamer9128[m]> | yeah the above cmd is right |
| 14:48:57 | <Zedgamer9128[m]> | i tried running a echo cmd |
| 14:49:09 | <Zedgamer9128[m]> | spawn $ "fish -c 'echo " ++ s ++ " > ~/fi'" |
| 14:49:15 | <Zedgamer9128[m]> | still didnt work |
| 14:49:25 | <Zedgamer9128[m]> | so i think ++ maybe? |
| 14:49:43 | <geekosaur> | this is where you check the session log |
| 14:49:51 | <geekosaur> | ~/.local/sddm/xorg-session.log |
| 14:51:59 | <Zedgamer9128[m]> | sighs |
| 14:52:08 | <Zedgamer9128[m]> | just because of one space |
| 14:52:54 | <Zedgamer9128[m]> | as i said i redirected all error to .xsession-errors |
| 14:53:24 | <Zedgamer9128[m]> | and when i opened that |
| 14:53:43 | Zedgamer9128[m] | sent a code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/e7c278985245e2970676089a6bdfc4096767b71d |
| 14:54:19 | <Zedgamer9128[m]> | so because there was no space between layout and spacing it didnt work |
| 14:54:38 | <Zedgamer9128[m]> | well thanks for help and also for xsession errors idea |
| 15:08:03 | × | qther quits (~qther@138.75.66.60) (Quit: Client closed) |
| 15:59:31 | <Zedgamer9128[m]> | okay one last thing is trayer |
| 16:01:50 | <Zedgamer9128[m]> | okay so trayer has and --distancefrom where a direction can be chose but only one but i want to distancefrom top and right to make it fit in xmobar like how tray has wifi after date time texts that is the thing i want to do but looks like it is not possible in trayer or is it? |
| 16:02:26 | <Zedgamer9128[m]> | * okay so trayer has a --distancefrom cmd where a direction can be chose but only one but i want to distancefrom top and right to make it fit in xmobar like how tray has wifi after date time texts that is the thing i want to do but looks like it is not possible in trayer or is it? |
| 16:02:39 | <Zedgamer9128[m]> | so should i see other sys tray |
| 16:05:40 | <geekosaur> | I think you can repeat it? --distancefrom top ... --distancefrom right ... |
| 16:06:04 | <Zedgamer9128[m]> | geekosaur: i tried but only the last one works |
| 16:08:31 | <geekosaur> | oh, looks like you need the trayer-srg fork for that |
| 16:08:38 | <geekosaur> | also gets you multimonitor support |
| 16:09:27 | <Zedgamer9128[m]> | geekosaur: i have trayer-srg installed |
| 16:09:55 | <geekosaur> | trayer-srg, at least as on github, claims to support double --distancefrom parameters |
| 16:10:54 | <Zedgamer9128[m]> | where |
| 16:10:57 | <geekosaur> | https://github.com/sargon/trayer-srg/commit/4506241b4e60fe12e7c119a21347a158b93e13d6 |
| 16:11:56 | <Zedgamer9128[m]> | ill try installing the -git version from aur |
| 16:12:19 | <Zedgamer9128[m]> | maybe it is updated from the arch repo |
| 16:14:05 | <Zedgamer9128[m]> | oops looks like i have to use comma |
| 16:17:53 | <Zedgamer9128[m]> | okay had to installed the trayer-srg-git from aur and now its working thanks |
| 16:26:38 | × | mvk quits (~mvk@2607:fea8:5ce3:8500::909a) (Ping timeout: 244 seconds) |
| 16:46:15 | × | qbt quits (~qbt@user/edun) (Quit: WeeChat 3.5) |
| 17:28:10 | → | tjmciver_ joins (~tjmciver@cpe-172-101-39-156.maine.res.rr.com) |
| 17:30:30 | × | tjmciver quits (~tjmciver@cpe-172-101-39-156.maine.res.rr.com) (Ping timeout: 240 seconds) |
| 18:01:24 | × | tjmciver_ quits (~tjmciver@cpe-172-101-39-156.maine.res.rr.com) (Ping timeout: 272 seconds) |
| 18:24:43 | → | tjmciver joins (~tjmciver@cpe-172-101-32-70.maine.res.rr.com) |
| 19:53:00 | → | mvk joins (~mvk@2607:fea8:5ce3:8500::909a) |
| 19:55:51 | × | jludwig quits (~justin@li657-110.members.linode.com) (Quit: ZNC - https://znc.in) |
| 19:56:47 | → | jludwig joins (~justin@li657-110.members.linode.com) |
| 20:10:33 | × | jludwig quits (~justin@li657-110.members.linode.com) (Read error: Connection reset by peer) |
| 20:13:30 | → | jludwig joins (~justin@li657-110.members.linode.com) |
| 20:16:19 | × | tjmciver quits (~tjmciver@cpe-172-101-32-70.maine.res.rr.com) (Remote host closed the connection) |
| 20:16:42 | → | tjmciver joins (~tjmciver@cpe-172-101-32-70.maine.res.rr.com) |
| 20:20:43 | × | jludwig quits (~justin@li657-110.members.linode.com) (Quit: ZNC - https://znc.in) |
| 20:21:41 | → | jludwig joins (~justin@li657-110.members.linode.com) |
| 20:22:39 | → | tjmciver_ joins (~tjmciver@cpe-172-101-32-70.maine.res.rr.com) |
| 20:25:20 | × | tjmciver quits (~tjmciver@cpe-172-101-32-70.maine.res.rr.com) (Ping timeout: 244 seconds) |
| 20:28:25 | tjmciver_ | is now known as tjmciver |
| 20:30:20 | × | tjmciver quits (~tjmciver@cpe-172-101-32-70.maine.res.rr.com) (Read error: Connection reset by peer) |
| 20:30:37 | → | tjmciver joins (~tjmciver@cpe-172-101-32-70.maine.res.rr.com) |
| 21:07:11 | → | tjmciver_ joins (~tjmciver@cpe-172-101-32-70.maine.res.rr.com) |
| 21:09:31 | × | tjmciver quits (~tjmciver@cpe-172-101-32-70.maine.res.rr.com) (Ping timeout: 256 seconds) |
| 21:22:18 | × | chomwitt quits (~chomwitt@2a02:587:dc0d:4a00:c5c0:a118:2df4:ea86) (Ping timeout: 240 seconds) |
| 21:49:15 | <zawaken-> | hey, after upgrading to 0.17+ of xmonad(-contrib) on my gentoo VM, I can't seem to get the haskell-dbus module to work, xmonad and x instantly crashes if I have all my DBus configuration enabled, it does not do this on Arch or RHEL, the dbus service in OpenRC is enabled. Just importing the DBus library doesn't crash anything. I am absolutely horrible at haskell, but I doubt theres something wrong |
| 21:49:17 | <zawaken-> | with my xmonad.hs, considering it works on Arch and RHEL |
| 21:49:34 | <zawaken-> | Any thoughts? |
| 21:50:36 | <zawaken-> | If it helps I can send my configuration, even though there shouldn't be anything wrong with it, apart from horrible code that is. |
| 21:51:13 | <geekosaur[m]> | what version of ghc is it using? |
| 21:51:28 | <zawaken-> | 8.10.7 |
| 21:51:44 | × | tjmciver_ quits (~tjmciver@cpe-172-101-32-70.maine.res.rr.com) (Remote host closed the connection) |
| 21:51:44 | <zawaken-> | Stackage LTS 18.23 I believe |
| 21:52:23 | <geekosaur[m]> | hm. so it's not the heap corruption crash then. (doublecheck though, xmonad tickles a heap corruption bug in ghc >= 9.0) |
| 21:53:10 | <zawaken-> | The crash happens after a couple of seconds after I type in startx. |
| 21:54:03 | <geekosaur[m]> | yes, if it were the heap corruption thing it would probably happen after receiving a couple of X events, specifically after the first gc |
| 21:55:53 | <zawaken-> | It does crash faster it seems when I try to do anything, such as open a terminal, but it does crash automatically after a bit |
| 21:56:08 | <zawaken-> | I'm not sure I understand the heap corruption thing though |
| 21:57:08 | <geekosaur[m]> | it's complicated. we allocate memory for an X event ahead of time and reuse it. the bug is ghc doesn't realize it's still in use and gc-s it, after which the next X event received trashes the heap |
| 21:57:31 | <geekosaur[m]> | https://gitlab.haskell.org/ghc/ghc/-/issues/21708 |
| 21:58:25 | <zawaken-> | Thanks for the link :) |
| 21:58:53 | <geekosaur[m]> | we have a patch that seems to work around it, although it needs more testing |
| 21:59:10 | <geekosaur[m]> | and the bug is a blocker for 9.4 release so it will at some point be fixed in ghc |
| 22:00:24 | <zawaken-> | If this bug were to happen, would it be regardless of how your config looks? because I have XMonad up on my VM now, but without Dbus (I use it for Polybar and eww) |
| 22:00:32 | <geekosaur[m]> | but if you're on 8.10.7 then this can't be the issue since it involves optimization of join points and 8.10.7 doesn't have join points |
| 22:01:53 | <zawaken-> | I can send you a link to my dotfile repository if you want to see exactly what commit I am on as well as my config. |
| 22:02:26 | <zawaken-> | It is the same across systems though, so this might be some quirky Gentoo dbus behaviour |
| 22:02:38 | <geekosaur[m]> | that's unclear. one user can reproduce it with any non-default config (`xmonad def` being the default config). others can only reproduce it under specific circumstances. it seems to rely on heap layout, which makes sense because if it can't rearrange the heap to reclaim the memory for something else then there wouldn't be a problem (this seems to happen with my config, for example; I've never managed to reproduce the crash) |
| 22:03:15 | <geekosaur[m]> | do you have a session log? it may depend on how your session starts, but it's often `~/.xsession-errors` |
| 22:04:37 | <zawaken-> | ~/.xsession-errors doesn't exist for me, but I can cook up a Xorg.0.log, aswell as a xmonad.erros |
| 22:04:42 | <zawaken-> | xmonad.errors |
| 22:05:34 | × | noex_ quits (~null@2600:8804:14e0:104::1e13) (Ping timeout: 244 seconds) |
| 22:07:13 | → | chomwitt joins (~chomwitt@2a02:587:dc0d:4a00:eb52:69a9:fa15:908e) |
| 22:07:31 | → | noex_ joins (~null@2600:8804:14e0:104:8804:14e0:104:0) |
| 22:12:45 | <geekosaur[m]> | neither of those is the right log (the first is the server log, the second is for recompilation errors) |
| 22:13:38 | <geekosaur[m]> | if you use `startx` then any errors will be on the original console (try CTRL+ALT+F1). otherwise you'll have to look up the display manager you use and see where it logs session errors |
| 22:15:23 | × | mvk quits (~mvk@2607:fea8:5ce3:8500::909a) (Ping timeout: 244 seconds) |
| 22:16:12 | <zawaken-> | https://wiki.archlinux.org/title/xorg#Session_log_redirection this should suffice no? |
| 22:17:45 | <zawaken-> | I'll see if I can get something out of that. |
| 22:20:33 | <zawaken-> | I think what might have happened, is that I have used a dbus-launch command that doesn't work as it should. |
| 22:20:44 | <zawaken-> | It seems like it might work as it should now |
| 22:21:16 | <zawaken-> | So pebcak |
| 22:22:02 | <geekosaur[m]> | maybe. seems like the dbus bindings should handle that better |
| 22:23:27 | <geekosaur[m]> | looks like they should at least throw an exception, but the example code doesn't pay attention to exceptions or error returns |
| 22:23:39 | <zawaken-> | It doesn't work if I put it straight as 'exec xmonad', but with exec dbus-launch --sh-syntax --exit-with-session xmonad it seems to work well |
| 22:25:01 | <zawaken-> | this was the part that didn't work, and now I understand why: DESKTOP="dbus-launch --sh-syntax --exit-with-session xmonad" \n exec "${DESKTOP}" |
| 22:25:15 | <geekosaur[m]> | hm, `--sh-syntax` and `--exit-with-session` shouldn't do anything there. they're intended for using it as `eval dbus-launch --sh-syntax --exit-with-session` |
| 22:25:28 | <geekosaur[m]> | (`eval`, not `exec`) |
| 22:26:17 | <zawaken-> | I think I got it from a bug report somewhere, a good while ago, and he used it, dbus-launch xmonad should probably be enough then? |
| 22:26:41 | <geekosaur[m]> | yes, if you';re not running anything else that might want access to dbus |
| 22:27:48 | <zawaken-> | Yeah only xmonad as far as I know |
| 22:28:13 | <geekosaur[m]> | but if you launch a couple of terminals in the background and then exec xmonad, those terminals wouldn't have access to dbus unless you used the `eval` thing |
| 22:28:56 | <zawaken-> | Ah, makes sense. My .xinitrc is quite simple |
| 22:31:52 | <zawaken-> | Thank you very much for the help :D |
| 22:44:06 | → | mvk joins (~mvk@2607:fea8:5ce3:8500::909a) |
| 22:57:28 | zawaken- | is now known as zawaken |
| 22:59:48 | × | chomwitt quits (~chomwitt@2a02:587:dc0d:4a00:eb52:69a9:fa15:908e) (Ping timeout: 276 seconds) |
| 23:47:03 | × | steve__ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 256 seconds) |
All times are in UTC on 2022-07-09.