-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Linux Mint 21.3 w/Home-Manager Crashes to Fallback & systemd-coredump #5102
Comments
Sorry to hear about the crashing. I'm not exactly certain what Cinnamon is but the default HM configuration doesn't do very much at all. It is more or less limited to installing the Also, any other hint in the systemd journal or something? Just knowing that it crashes unfortunately isn't very actionable. |
Thanks for the response @rycee! Yeah, I really wasn't sure exactly where to start. Just installing Nix and tossing a few packages into the system works fine. I removed everything and basically made one change at a time and then rebooted until the desktop environment (Cinnamon) started crashing again. It's immediately after HM is installed with the default configuration - which, agreed, doesn't have much to it. I was wondering if there was chance HM was taking over something specific that Cinnamon no longer had access to, was removed or moved. Is there anything specific I can look for in logs that could help pinpoint this? Thanks much! |
I am having the same issue. I recently did a clean install in my laptop and decided to use home-manager (standalone install) this time (I used to do I have compiled a couple of information in a reddit post https://www.reddit.com/r/Nix/comments/1bnwzxa/install_homemanager_in_linux_mint_makes_cinnamon I found in some forums that they suggest looking into
I think you can ignore the Installing nix itself and software through For the record I tried installing home-manger in my steam deck and everything works fine. I understand steam deck uses kde plasma, so this seems to be more related to Cinnamon desktop environment. |
I got a comment in my reddit post by mister_drgn
Maybe checking what is different in the installation for unstable and 23.11 could help to understand this issue. |
Hello. Was trying out home manager today and encountered this issue. Did a bit of digging and it seems to be caused by a mime types database being created in For me, the issue wasn't fixed by downgrading to 23.11, but I'm not that skilled with nix yet, so I might have been using a newer channel somewhere. |
UPDATE: The most direct cause for the crash that I've found is having the following in .profile: SECOND UPDATE: More specifically, the crash can be linked to $HOME/.nix-profiles/share/mime/mime.cache. But I just reread the post above this by @RossBrunton and realized I could have saved myself some time. Hi, I'm the person who suggested downgrading to 23.11 on reddit. Although this fix worked in the past, it no longer does, likely because whatever was causing the issue on unstable has now made its way into 23.11. After messing around with my configuration, I determined that I'm getting this Cinnamon crash when I have both of the following:
The second line matters because it puts the following in .profile, which presumably causes the crash to occur at login: So I think the real culprit is targets.genericLinux.enable = true; I have never been particularly clear on what this does, I only know that it's recommended when you're using hm off of NixOS. For now, I'm leaving it disabled to see how things go. EDIT: The main issue is that I lose access to the .desktop files for all my installed software. I can get them back by adding the following line to my .profile, only this results in the crash coming back. |
Just to add a little more info / summary: It is really easy to reproduce with fresh linux mint and flake-based home manager.
As others pointed it out above:
If you restart the computer while having the above file, the crash and core dump appears. If you delete the above file (I just hope it is safe to delete as it is being a cache, but I don't really have knowledge about it) and do a restart, everything is fine. Hope this helps investigating. |
I found a very simple solution to make Cinnamon start, but I don't really understand what the underlying cause is. TLDR:
It all boils down to this function: https://github.com/linuxmint/cinnamon/blob/b6661f62a42958b80425c63b34ad789bfa7eb3f2/js/ui/extension.js#L708 While tracking down why Cinnamon goes to fallback mode I found that the function I then started to play around with the first parameter to So somehow the logic to load an icon for each file fails silently as soon as Home Manager is enabled. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nix-home-manager-on-linux-mint-cinnamon-crash-on-login/40933/4 |
One important thing I forgot to mention in my last comment is, that the crash into fallback mode also disappeared when setting I don't know which implications disabling XDG mime has. But maybe knowing it has something to do with XDG mime and that icons is enough to figure out the root cause. |
I am seeing a similar crash related to mime.cache, albeit in a different program - Firefox. I have a backtrace, minus arguments, which can be seen at https://crash-stats.mozilla.org/report/index/ac6dbca9-a495-4b78-a72f-8102b0240528#tab-details. Note that we appear to have infinite recursion in Unfortunately, I'm not sure which type it is which is broken, so I can't test it with the Nix mime tools (e.g. xdg-mime) to see if it's also broken for Nix-built tools or if there's some version incompatibility between the Debian (or Mint, in OP's case) libraries and the Nix ones. It may also be that xdg-mime doesn't call the libraries in the same way anyway. mime.cache format is part of the Freedesktop standard, so I would hope that it's the same between Nix and LHS systems - it's supposed to be the same across architectures and work with portable home directories. I am on nixpkgs and home-manager 23.11. |
Also nemo (the Linux Mint file manager) is sometimes crashing. Sometimes it happens as soon as I open a specific folder, I couldn't figure out what exactly is causing it. The stack trace also points at |
Is there a recommended workaround for this? There have been a few suggestions
The first seems like the safest/easiest, but what are the side effects, if any? |
Are you following the right branch?
Is there an existing issue for this?
Issue description
New to Nix. Installed Nix via Determinate systems, made no changes. Went directly to installing Home-Manager stand-alone via the Flakes instructions. Upon logout / login or reboot immediately after enabling the default Home-Manager configuration (no changes) Cinnamon now crashes and goes to fallback mode.
If I force a Cinnamon refresh (Ctrl-Alt-ESC) I get this line immediately in
/var/log/dmesg
:syslog:Mar 7 11:00:16 myhost systemd-coredump[8997]: Process 8941 (cinnamon) of user 1000 dumped core.
TIA!
Maintainer CC
No response
System information
The text was updated successfully, but these errors were encountered: