NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.58k stars 13.73k forks source link

fcitx5-qt/obs: obs segfaults due to fcitx5-qt, using wrong version too. #323318

Open YellowOnion opened 3 months ago

YellowOnion commented 3 months ago

Describe the bug

  .obs-wrapped[733037]: segfault at 10 ip 00007faf512d2c61 sp 00007ffff42a2580 error 4 in libFcitx5Qt6DBusAddons.so.5.1.4[3cc61,7faf512a9000+3e000] likely on CPU 0 (core 0, socket 0)

Steps To Reproduce

Steps to reproduce the behavior:

Expected behavior

obs opens.

Additional context

https://github.com/fcitx/fcitx5-qt/issues/59

Notify maintainers

obs: @eclairevoyant @jb55 @materus @fpletz

fcitx5-qt: @poscat

Metadata

 nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.0-rc4-bcachefs-unstable-3a3daab, NixOS, 24.11 (Vicuna), 24.11.20240620.d603719`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(daniel): `""`
 - channels(root): `"nixos-23.05"`
 - nixpkgs: `/nix/store/xfpiyfgf6y30fxk5ngv0cjn474qfr3sj-source`
nix eval .\#homeConfigurations.daniel@Purple-Sunrise.pkgs.qt6Packages.fcitx5-qt.version
"5.1.6"
 nix eval self\#nixosConfigurations.Purple-Sunrise.pkgs.qt6Packages.fcitx5-qt.version
"5.1.6"

Add a :+1: reaction to issues you find important.

eclairevoyant commented 3 months ago

Please provide more info about your config, like how you installed said packages, what desktop you're using, wayland vs x, etc.

YellowOnion commented 3 months ago

I'm using sway/wayland installed obs via home-manager,

Everything was working till I bumped nixpkgs on both home-manager and NixOS about 4 days ago.

  i18n.inputMethod = {
    enabled = "fcitx5";
    fcitx5.addons = [ pkgs.fcitx5-mozc ];
  };

home.packages = [  (wrapOBS {
        plugins = [ obs-studio-plugins.obs-vkcapture wlrobs ];
      }) ]

I tried disabling fcitx in home-manager but that didn't work, I had to unset QT_IM_MODULE, I'm not even sure where that comes from, because I don't explicitly set it anywhere from memory / searching my home-manager config.

You can find my sway/nixos config here: https://github.com/YellowOnion/nixos-config/blob/master/common-gui.nix