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

Editor immediately exits with the exit code 101 and a warning #651

Open
yurivict opened this issue Jun 2, 2024 · 10 comments
Open

Editor immediately exits with the exit code 101 and a warning #651

yurivict opened this issue Jun 2, 2024 · 10 comments

Comments

@yurivict
Copy link

yurivict commented Jun 2, 2024

[yuri@yv /tmp/fyrox_test]$ target/release/editor
[WARNING]: Failed to load settings, fallback to default. Reason: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
thread 'main' panicked at /home/yuri/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fyroxed_base-0.21.0/src/lib.rs:2619:49:
called `Result::unwrap()` on an `Err` value: Custom("Error { raw_code: Some(2), raw_os_message: Some(\"BadValue\"), kind: BadAttribute }")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[yuri@yv /tmp/fyrox_test]$ echo $?
101

FreeBSD 14.0

@yurivict yurivict changed the title Editor immediately exits with exit code 101 and a warning Editor immediately exits with the exit code 101 and a warning Jun 2, 2024
@mrDIMAS
Copy link
Member

mrDIMAS commented Jun 2, 2024

What's your PC specs?

@yurivict
Copy link
Author

yurivict commented Jun 2, 2024

4 CPUs, 8 virtual threads, 24 GB of memory, OpenGL.
Very old Intel CPU.

@mrDIMAS
Copy link
Member

mrDIMAS commented Jun 2, 2024

What's the output of this glxinfo | grep 'version'?

@yurivict
Copy link
Author

yurivict commented Jun 2, 2024

$ glxinfo | grep "OpenGL version"
OpenGL version string: 4.6.0 NVIDIA 550.54.14

@mrDIMAS
Copy link
Member

mrDIMAS commented Jun 2, 2024

So, the error comes from GLX, OpenGL initialization to be more precise. This could be from outdated drivers, local settings, etc. I found this discussion with the same issue.

@yurivict
Copy link
Author

yurivict commented Jun 2, 2024

The alacritty terminal emulator app works fine on the same system though.

@mrDIMAS
Copy link
Member

mrDIMAS commented Jun 3, 2024

Alacritty works fine because it requires OpenGL 2.0, but Fyrox requires at least OpenGL 3.3+.

@yurivict
Copy link
Author

yurivict commented Jun 3, 2024

The error message comes from the failure to open for reading the file "settings.ron".
This file doesn't exist.

@mrDIMAS
Copy link
Member

mrDIMAS commented Jun 3, 2024

This is not an error, just a warning about missing settings file. The actual cause of the crash is an issue with OpenGL context creation. I don't know why this happens, it requires some debugging anyway. Usually when drivers, local settings, etc is fine then the engine starts fine too. I suggest you to check some other application that uses more or less modern OpenGL to see if it works.

@yurivict
Copy link
Author

yurivict commented Jun 5, 2024

@mrDIMAS What application would you suggest to use to test OpenGL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants