Skip to content
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: Dolphin freezes when home-manager is installed #4941

Open
2 tasks done
andersrh opened this issue Jan 23, 2024 · 8 comments
Open
2 tasks done

bug: Dolphin freezes when home-manager is installed #4941

andersrh opened this issue Jan 23, 2024 · 8 comments
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@andersrh
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

When I install home-manager Dolphin freezes, when I go to my home folder.
When I uninstall home-manager the issue gets resolved.

I haven't been able to find others, who have exactly the same issue.

My nixpkgs is pointed to unstable and I have added the master branch for home-manager.

Maintainer CC

No response

System information

this path will be fetched (0.00 MiB download, 0.00 MiB unpacked):
  /nix/store/v8p3m2vgkcd3ykrdylm5vi9alrxbwhip-nix-info
copying path '/nix/store/v8p3m2vgkcd3ykrdylm5vi9alrxbwhip-nix-info' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 6.7.0-cb1.0.fc39.lto.x86_64, Fedora Linux, 39.20240120.0 (Kinoite), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.19.2`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
@andersrh andersrh added bug triage Issues or feature request that have not been triaged yet labels Jan 23, 2024
@andersrh andersrh changed the title bug: bug: Dolphin freezes when home-manager is installed Jan 23, 2024
@n-a-m-e
Copy link

n-a-m-e commented Feb 20, 2024

Happens to me too. Running home-manager on Ubuntu.

I don't know why but any directory containing .js files crashes dolphin. If I open a Folder without any .js files it works just fine.
There may be other file extensions which also cause a crash but I haven't found any.

I also can't open the KDE editor "Kate" as it also instantly crashes.

I think it is probably something to do with KDE apps

I was previously able to fix it by changing changing from master and setting nixpkgs.url to "github:nixos/nixpkgs/nixos-23.11" and home-manager url to "github:nix-community/home-manager/release-23.11"

But after the last time I updated a couple of days ago the issue is back.

@yeus
Copy link

yeus commented Feb 25, 2024

same issue here! Not sure whats causing it, but resetting dolphin to default settings helped:

rm -r .local/share/dolphin/ .config/session/dolphin_* .config/dolphinrc

@yeus
Copy link

yeus commented Feb 25, 2024

some more investigation shows that kate always freezes when I call the open/close dialog... trying to reset that as well right now :)

EDIT:

after doing this:

rm -r .config/katerc .config/katesyntaxhighlightingrc .config/katemetainfos .config/katevirc

this also seems to work for now...

@yeus
Copy link

yeus commented Feb 26, 2024

hm. now I have a similar problem to @n-a-m-e :

  • dolphin freezes whenever I enter a directory with a json file.
  • kate and other KDE programs freeze as well, as soon as any sort of interaction with files is initiated! like open/close or with gwneview implicitly loading pics in the background

also checkout this issue here:

@mghesh-yseop
Copy link

I have the same issue. With home-manager, json files are not resolved (running xdg-mime query filetype foo.json hangs forever), but if I uninstall home-manager I get the expected answer application/json.

Interestingly, when I uninstall home-manager while the query is running, it eventually succeeds.

In my case, the hanging occurs in kmimetypefinder5.

After running sudo update-mime-database -V ~/.nix-profile/share/mime/, it works for now.
I'm not sure about my installation, maybe I'm missing something about XDG settings 🤷‍♂️

Copy link

stale bot commented Jul 12, 2024

Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting.

If you are the original author of the issue

  • If this is resolved, please consider closing it so that the maintainers know not to focus on this.
  • If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough.
  • If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

If you are not the original author of the issue

  • If you are also experiencing this issue, please add details of your situation to help with the debugging process.
  • If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

Memorandum on closing issues

Don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.

@stale stale bot added the status: stale label Jul 12, 2024
@NoraCodes
Copy link

Why is this stale when the bug persists? I see the same thing, and for me, running sudo update-mime-database -V ~/.nix-profile/share/mime/ does not work.

As suggested in the KDE bug linked above, this is likely due to a cycle between JSON and JavaScript/ECMAScript MIME types.

@wbehrens-on-gh
Copy link

Experiencing a similar issue after enabling the targets.genericLinux.enable option on Debian 12. It completely destroys kde, the desktop process keeps dying, kioslave keeps dying, and I can't open dolphin without it freezing.

@stale stale bot removed the status: stale label Aug 29, 2024
notalltim added a commit to notalltim/home-manager that referenced this issue Oct 1, 2024
The `xdg-mime` module now exposes packages to determine what will be run
for update-mime-database and update-desktop-database. This allows users
to select a different version of these packages if the are incompatible.
This should, in combination with an override to the version of
`shared-mime-info` (can be found here ?????), resolve nix-community#4955, nix-community#5102
, nix-community#4682, and possibly nix-community#4941. The problem seems to stem from a mismatch
in the version of `shared-mime-info` with the host.
notalltim added a commit to notalltim/home-manager that referenced this issue Oct 1, 2024
The `xdg-mime` module now exposes packages to determine what will be run
for update-mime-database and update-desktop-database. This allows users
to select a different version of these packages if the are incompatible.
This should, in combination with an override to the version of
`shared-mime-info` (can be found here ?????), resolve nix-community#4955, nix-community#5102
, nix-community#4682, and possibly nix-community#4941. The problem seems to stem from a mismatch
in the version of `shared-mime-info` with the host.
notalltim added a commit to notalltim/home-manager that referenced this issue Oct 1, 2024
The `xdg-mime` module now exposes packages to determine what will be run
for update-mime-database and update-desktop-database. This allows users
to select a different version of these packages if the are incompatible.
This should, in combination with an override to the version of
`shared-mime-info` (can be found here notalltim/home-mananger-config#4),
resolve nix-community#4955, nix-community#5102, nix-community#4682, and possibly nix-community#4941. The problem seems to stem
from a mismatch in the version of `shared-mime-info` with the host.
notalltim added a commit to notalltim/home-manager that referenced this issue Oct 1, 2024
The `xdg-mime` module now exposes packages to determine what will be run
for update-mime-database and update-desktop-database. This allows users
to select a different version of these packages if the are incompatible.
This should, in combination with an override to the version of
`shared-mime-info` (can be found here notalltim/home-manager-config#4),
resolve nix-community#4955, nix-community#5102, nix-community#4682, and possibly nix-community#4941. The problem seems to stem
from a mismatch in the version of `shared-mime-info` with the host.

I also switched from using `buildPackages` to `pkgs` to improve
cross-compilation compatibility.
teto pushed a commit that referenced this issue Oct 7, 2024
* xdg-mime: allow overrides to shared-mime-info and desktop-file-utils

The `xdg-mime` module now exposes packages to determine what will be run
for update-mime-database and update-desktop-database. This allows users
to select a different version of these packages if the are incompatible.
This should, in combination with an override to the version of
`shared-mime-info` (can be found here notalltim/home-manager-config#4),
resolve #4955, #5102, #4682, and possibly #4941. The problem seems to stem
from a mismatch in the version of `shared-mime-info` with the host.

I also switched from using `buildPackages` to `pkgs` to improve
cross-compilation compatibility.

* xdg-mime: Add tests for xdg-mime module

The xdg-mime module was missing tests so I added basic test for all the
options and checked the basic behavior. It covers ensuring that the
proper files/folders are created and that the package overrides work.
Mikilio pushed a commit to Mikilio/home-manager that referenced this issue Oct 11, 2024
* xdg-mime: allow overrides to shared-mime-info and desktop-file-utils

The `xdg-mime` module now exposes packages to determine what will be run
for update-mime-database and update-desktop-database. This allows users
to select a different version of these packages if the are incompatible.
This should, in combination with an override to the version of
`shared-mime-info` (can be found here notalltim/home-manager-config#4),
resolve nix-community#4955, nix-community#5102, nix-community#4682, and possibly nix-community#4941. The problem seems to stem
from a mismatch in the version of `shared-mime-info` with the host.

I also switched from using `buildPackages` to `pkgs` to improve
cross-compilation compatibility.

* xdg-mime: Add tests for xdg-mime module

The xdg-mime module was missing tests so I added basic test for all the
options and checked the basic behavior. It covers ensuring that the
proper files/folders are created and that the package overrides work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

9 participants