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

Seg Fault collection.rs:130:32 #527

Closed
CedBri opened this issue Apr 11, 2021 · 19 comments
Closed

Seg Fault collection.rs:130:32 #527

CedBri opened this issue Apr 11, 2021 · 19 comments
Labels
bug Something isn't working

Comments

@CedBri
Copy link
Contributor

CedBri commented Apr 11, 2021

Hi!
I'm currently running arch 5.11.12-arch1-1
My cpu is an AMD Ryzen 3 3100
My gpu an sapphire rx580
Rust version 1.51.0
Compiled the latest (54b967f) version

When I run neovide I get:

Ignored client type property: "attributes"
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', /home/lerusse/.cache/paru/clone/neovide-git/src/neovide-git/CARGO/git/checkouts/skribo-3c422fce25a33836/a35c876/src/collection.rs:130:32
stack backtrace:
   0:     0x56102c434050 - <unknown>
   1:     0x56102c3584ec - <unknown>
   2:     0x56102c4338c1 - <unknown>
   3:     0x56102c433225 - <unknown>
   4:     0x56102c43290a - <unknown>
   5:     0x56102c451e08 - <unknown>
   6:     0x56102c451d7c - <unknown>
   7:     0x56102c451d2d - <unknown>
   8:     0x56102c356840 - <unknown>
   9:     0x56102c3566d1 - <unknown>
  10:     0x56102c41d5ae - <unknown>
  11:     0x56102c28beb9 - <unknown>
  12:     0x56102c2a6f9c - <unknown>
  13:     0x56102c485e30 - <unknown>
  14:     0x56102c3303a6 - <unknown>
  15:     0x56102c2d3e13 - <unknown>
  16:     0x56102c32ca75 - <unknown>
  17:     0x7f0f07289b25 - __libc_start_main
  18:     0x56102c28877e - <unknown>
  19:                0x0 - <unknown>
[1]    149608 segmentation fault (core dumped)  

I've tried installing amdvlk as per issue 209 and installing vulkan-radeon
with no better result.

Thanks :)

@Fosssil
Copy link

Fosssil commented Apr 11, 2021

Same Here

@kdemetter
Copy link

kdemetter commented Apr 11, 2021

I have the exact same problem (also on Arch Linux).

Different hardware though in case that's relevant:
CPU: Intel i7-6700 (8) @ 4.000GHz
GPU: NVIDIA GeForce GTX 960

Rust version: 1.52.0-nightly

@woufab900
Copy link

I have the same problems, on arch.. Did you guys also install via the AUR instead of building from source?

@CedBri
Copy link
Contributor Author

CedBri commented Apr 11, 2021

I have the same problems, on arch.. Did you guys also install via the AUR instead of building from source?

Tried installing from AUR (both -git and non-git) and tried building from source.
Same error for both.

@kdemetter
Copy link

kdemetter commented Apr 11, 2021

I have the same problems, on arch.. Did you guys also install via the AUR instead of building from source?

Yes, I installed from the AUR. Also tried both git and non-git versions.

@woufab900
Copy link

I have the same problems, on arch.. Did you guys also install via the AUR instead of building from source?

Tried installing from AUR (both -git and non-git) and tried building from source.
Same error for both.

Ah, I only tried the AUR packages, so I thought maybe there's something wrong with those. Seeing as you build from source as well, guess I was wrong

@Kethku
Copy link
Member

Kethku commented Apr 12, 2021

This is a font collection issue. If you install Noto Sans Mono font does the issue change? Skribo is a wrapper around harfbuzz which is our shaper. The current main branch uses a combination of skia and font-kit fonts to achieve more consistent spacing of characters and such. The opengl branch has changed this to use a different set of dependencies that I find work somewhat better, however that branch has other issues on some configurations of linux which I want to hammer out before merging.

Its possible the opengl branch will cause more issues, but could some of you encountering this try it to see if the font problem goes away?

@Kethku Kethku added the bug Something isn't working label Apr 12, 2021
@CedBri
Copy link
Contributor Author

CedBri commented Apr 12, 2021

Works great with Noto Sans fonts!

@CedBri
Copy link
Contributor Author

CedBri commented Apr 12, 2021

Is there a list of known compatible fonts?
Tried different fonts and the only one that's been giving me trouble was Nerd Fonts

Edit: uh... So now that i've tried other fonts Nerd Fonts seem to be working...

@Kethku
Copy link
Member

Kethku commented Apr 13, 2021

Its possible that the system needs noto sans installed in order to boot up at all. Which would represent a bug

@CedBri
Copy link
Contributor Author

CedBri commented Apr 13, 2021

Any clue why it would do that?

@Kethku
Copy link
Member

Kethku commented Apr 13, 2021

Neovide has a few threads. One for handling neovim input/output, one for processing editor state changes, and one for handling window events and rendering to the screen. Since the guifont is configured in the vim config, and might not be configured at all, its possible that we use the default fonts which are (currently) hard coded for initial renders. Then when neovim boots up and reports settings to the other threads, it updates.

This means its possible that we try to load the default font and fail before we get the actual font to use. Its likely not a complicated fix, but would require fiddling around with the load order or replacing the hard coded default fonts per platform with some call to a skia library to find the os default font.

@kdemetter
Copy link

kdemetter commented Apr 13, 2021

Indeed, installed noto-fonts and now neovide does start

@CedBri CedBri closed this as completed Apr 18, 2021
@tekpriest
Copy link

I installed noto-fonts, vulkan-intel, amdvlk and set the guifont but still getting the errror thread 'main' panicked at 'Failed to create renderer: VkError(ERROR_INITIALIZATION_FAILED)', src/window/sdl2/mod.rs:458:14 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@CedBri
Copy link
Contributor Author

CedBri commented Apr 18, 2021

I installed noto-fonts, vulkan-intel, amdvlk and set the guifont but still getting the errror thread 'main' panicked at 'Failed to create renderer: VkError(ERROR_INITIALIZATION_FAILED)', src/window/sdl2/mod.rs:458:14 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Your error is related to mod.rs
This isn't the same issue.

@tekpriest
Copy link

alright, I I will create a new issue then

@deaniiyu
Copy link

just bumped into the same issue. Got noto sans installed and neovide finally boots, but refuses to load any font other noto sans.

@Kethku
Copy link
Member

Kethku commented Apr 22, 2021

@deaniiyu when I've encountered that in the past, its been a problem with the font name set in guifont rather than a refusal to load any other font.

@deaniiyu
Copy link

deaniiyu commented Apr 26, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants