-
Notifications
You must be signed in to change notification settings - Fork 29
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
Crash when trying to open a file #164
Comments
It looks like this may be an issue upstream. It would be helpful to see if you can reproduce the same issue when running some of the examples from the # From the root of the `wgpu` repo
$ cargo run --example cube You should see a cube with the mandlebrot set on it I sifted through the issues in the |
The command you suggested didn't work. The only two examples that are available are
I used Running any of the other examples fails with the same error. The error is talking about xkb which seems weird to me considering that I'm running X11. I am using a custom xkb layout though, so I thought that might be the issue. I very much assume both are caused by missing system dependencies, but I have no idea which. I will try to dig in more and report back if I can figure it out, but if anyone else using Nix sees this issue I would appreciate some hints. |
Ah it looks like they've changed the structure since I last pulled. I also only see That error message looks quite different than the first, but that's not really surprising since it's using newer versions of dependencies. It looks like the https://docs.rs/xkbcommon-dl/0.4.1/src/xkbcommon_dl/lib.rs.html#303-314 pub fn xkbcommon_option() -> Option<&'static XkbCommon> {
static XKBCOMMON_OPTION: OnceCell<Option<XkbCommon>> = OnceCell::new();
XKBCOMMON_OPTION
.get_or_init(|| {
open_with_sonames(
&["libxkbcommon.so.0", "libxkbcommon.so"],
None,
|name| unsafe { XkbCommon::open(name) },
)
})
.as_ref()
} |
I tried including libxkbcommon in my dev-shell as well but I keep getting the same error. |
It looks like |
Not very helpful either unfortunately.
I tried both with and without
The error comes from here. It's still a WGPU error so that might be related? |
Hmmm, very interesting 🤔 Currently |
Update! I figured out how to get past the preFixup = lib.optionalString stdenv.isLinux ''
patchelf \
--add-needed "${pkgs.libGL}/lib/libEGL.so.1" \
--add-needed "${pkgs.vulkan-loader}/lib/libvulkan.so.1" \
$out/bin/inlyne
''; This resolved that issue, but lead to another:
Searching through From what I can tell those two things should fix the issue. If you want I can open a PR for it, but since you said you wanted to update dependencies anyway, I can leave it to you as well if you would prefer that. |
Not sure how we would go about solving the first bit. Is it an issue with the nix package definition, or from breakages since the last release, or system specific? As for toggling on the feature flag, you're more than welcome to open a PR! Make sure to add a comment indicating as to why it's needed |
I believe it's an issue with the nix package definition. I have had one friend who also uses NixOS test the inlyne package and it also wouldn't open for them. Since inlyne depends on WGPU and therefore Vulkan (for AMD GPUs at least), I believe the patch should be part of the inlyne nix package. I use NixOS unstable so I'm not sure how this behaves on NixOS stable, but I wouldn't expect it to work there either. The current package already has some I will open a PR for the dependency, thank you very much! |
This solves an issue with the NixOS build where fonts are required at runtime for inlyne to start. With the `fontconfig` feature flag inlyne will use font-config to determine a font. Partially resolves Inlyne-Project#164
This solves an issue with the NixOS build where fonts are required at runtime for inlyne to start. With the `fontconfig` feature flag inlyne will use font-config to determine a font. Partially resolves #164
I assume you will update the nix package definition if you mark this as closed? |
This got closed with the merge of #169 which seems fine since that covers all we can do in this repo. Feel free to open an issue downstream in nix packages to cover the patchelf bits since that's where the package definition lives (and you're far better equipped to handle following up with hose changes than me) |
Oh, alright! I assumed you were the one maintaining it, but I will open a PR for it then, thank you very much. |
Ahhhh, no I'm just a humble The definition was created by @figsoda who looks to still be the maintainer |
Thanks for the ping, I am indeed the maintainer of the nix package. Would you be open to publish a new release for this? |
Sure! I can backport the change and cut a release for it over the next few days I'll ping again after all that's been sorted :) |
This solves an issue with the NixOS build where fonts are required at runtime for inlyne to start. With the `fontconfig` feature flag inlyne will use font-config to determine a font. Partially resolves Inlyne-Project#164
* Some clean ups, fixes, config flag (#91) * Refactor: Remove unneccesary CLI branching * Refactor: Refactor configuration load function * Feat: Add '--config' flag * Refactor: Reduce passing of args and configuration * Fix: Fix cli parsing of page width * Clean: use 'display()' instead of debug print for path * Clean: use Default for Keybindings * Refactor: Use Keybindings in tests * Doc: Fix 'page width' to 'page_width' * Refactor: use interpolation style * Refactor: Remove inline on Keybindings::new * Refactor: Extract Keybindings Default implementation * Refactor: Destructure Config and Args in opts * Support bare relative links (#103) * Attempt to reregister file watcher on file "removal" (#106) * Add a test for all CLI options (#116) * Add repology badge for package manager installation (#109) * Make correct location of `inlyne.toml` file clearer (#122) * Make correct location of `inlyne.toml` file clearer * Fix missing backtick * Interpreter testing (#132) * Interpreter test tweaks (#138) * Cleanup existing custom debug impls * Add custom debug impls for `Element::Image(_)` * Add a snapshot test for complex image elements * More robust file watching (#147) * The watcher should attempt to re-register on name changes * Re-register watcher after longer delays * Add a reminder for fixing watching after file changes * Move file watcher into its own file * Make file watcher testable * Watcher follows file changes * Test the file watcher * Final test tweaks * Swap back to the old delays * Final final test tweaks * Use a slightly longer delay * Shorter poll interval for file watcher * Follow through with rename * Make file reloading less panic happy (#145) * Rework panic happy file reloading * Tweak logs * The watcher should attempt to re-register on name changes * Re-register watcher after longer delays * Improve syntax highlighting (#150) * Add failing test * Use extended syntax definitions * Add failing test * Allow for comma as an info string delimiter * Retry watcher test with increased delays (#155) * Fix-up nested lists (#154) * Add failing tests * Handle nesting of lists * Cleanup list prefix handling * Dogfood new `smart-debug` crate (#156) * Dont ignore locked mutex in debug impl (#166) * fix: add missing `fontdb` feature flag (#169) This solves an issue with the NixOS build where fonts are required at runtime for inlyne to start. With the `fontconfig` feature flag inlyne will use font-config to determine a font. Partially resolves #164 * Add relevant keywords to `Cargo.toml` (#171) * Use `human-panic` for a custom panic hook (#172) * Use `human-panic` for a custom panic hook * Indicate that the version is a "git release" * `cargo upgragde` * Update `two-face` * `cargo update` * Update simple dependencies * Update `smart-debug` * Update `resvg` & co. * Update `rust-version` to v1.70.0 * Bump version to v0.3.2 --------- Co-authored-by: Gijs Burghoorn <g.burghoorn@gmail.com> Co-authored-by: Nico Burns <nico@nicoburns.com> Co-authored-by: AlphaKeks <85143381+AlphaKeks@users.noreply.github.com>
@figsoda Got a little delayed, but just pushed out a release for v0.3.2 🎉 |
When trying to open a basic markdown file I'm getting the following error:
Full stacktrace:
I'm using NixOS unstable and installed inlyne using
nix-shell
. Could I be missing dependencies that aren't included in the nix build?The text was updated successfully, but these errors were encountered: