FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.77k stars 354 forks source link

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

Open yurivict opened 5 months ago

yurivict commented 5 months ago
[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

mrDIMAS commented 5 months ago

What's your PC specs?

yurivict commented 5 months ago

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

mrDIMAS commented 5 months ago

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

yurivict commented 5 months ago
$ glxinfo | grep "OpenGL version"
OpenGL version string: 4.6.0 NVIDIA 550.54.14
mrDIMAS commented 5 months ago

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 commented 5 months ago

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

mrDIMAS commented 5 months ago

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

yurivict commented 5 months ago

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

mrDIMAS commented 5 months ago

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 commented 5 months ago

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