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

Build failure: feishin #262739

Closed
lunik1 opened this issue Oct 22, 2023 · 10 comments · Fixed by #303638
Closed

Build failure: feishin #262739

lunik1 opened this issue Oct 22, 2023 · 10 comments · Fixed by #303638
Labels
0.kind: build failure A package fails to build 0.kind: regression Something that worked before working no longer

Comments

@lunik1
Copy link
Contributor

lunik1 commented Oct 22, 2023

feishin fails to build as it depends on electron_24, which is now EOL

Steps To Reproduce

Steps to reproduce the behavior:

  1. build feishin

Notify maintainers

@onny

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.5.7, NixOS, 23.05 (Stoat), 23.05.20231015.0e1cff5`
 - multi-user?: `yes`
 - sandbox: `relaxed`
 - version: `nix-env (Nix) 2.17.0`
 - channels(root): `"nixos"`
 - channels(lunik1): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@lunik1 lunik1 added the 0.kind: build failure A package fails to build label Oct 22, 2023
@Animeshz
Copy link
Contributor

Also, logseq (due to electron_24).

@FliegendeWurst FliegendeWurst added the 0.kind: regression Something that worked before working no longer label Oct 23, 2023
@avh4
Copy link
Member

avh4 commented Nov 4, 2023

FYI, feishin-0.5.1 has been released upstream, which uses Electron 25. (though I tried updating it in my local nixpkgs and just got a blank white window, so I'm not sure if something else is wrong or just if my local environment is weird in some way w/r to openGL drivers)

@minijackson
Copy link
Member

minijackson commented Nov 14, 2023

@avh4 I can confirm the issue, I also have a white screen with Feishin 0.5.1 and Electron 25.

@MikaelFangel
Copy link
Contributor

Reference #263231

@onny
Copy link
Contributor

onny commented Nov 18, 2023

Feishin 0.5.2 with support for Electron v27 but issue still persists. This is propably an issue on NixOS only?

@lunik1
Copy link
Contributor Author

lunik1 commented Jan 7, 2024

Yeah, the version of electron used needs to be bumped in https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/applications/audio/feishin/linux.nix (electron_24electron_27). However, when I do this and bump the version feishin does not work correctly, only showing a blank windown when I launch it.

@lunik1
Copy link
Contributor Author

lunik1 commented Jan 7, 2024

The AppImage of 0.5.3 seems to work, I've made a package in my NUR. x86_64-linux only.

@eclairevoyant
Copy link
Contributor

eclairevoyant commented Jan 7, 2024

For the blank screen, try the following, in order, ensuring to fully quit the app between attempts:

  • Delete the ~/.config/(whatever)/GPUCache folder, then running the app
  • Run the app with --disable-gpu
  • Unset NIXOS_OZONE_WL before running the app

In most cases, the first fix is enough for electron apps

@lunik1
Copy link
Contributor Author

lunik1 commented Jan 7, 2024

No luck with any of those solutions for me

@jlbribeiro
Copy link
Member

jlbribeiro commented Apr 12, 2024

No luck with any of those solutions for me

@lunik1 You're right, just bumping Electron wasn't enough.
(Forgive me for using this issue for documenting the rationale behind #303638.)

This in particular was due to

app.isPackaged depends on whether the executable is named electron; if executable ~= electron, it assumes the app is not packaged; in our case that means app.isPackaged is always false, causing it to fail due to not finding assets, such as the app icon.

After fixing those, it failed because

  • the final packaged app depends on additional dependencies specified in a separate release/app/package.json; in the original packaging scripts, this gets installed by electron-builder install-app-deps magic. In this particular case, it would fail with a missing mpris-service, as mentioned in the initial draft PR.

#303638 (which landed on master) should have fixed this by

Please let me know if it didn't fix it for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 0.kind: regression Something that worked before working no longer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants