I am trying to run Flax on EndeavourOS and the editor says “Aborted”. The Debug version reports it cannot load font
$dotnet --list-sdks
7.0.306 [/home/andy/Tools/DotNet/sdk]
$
$/home/andy/Tools/Flax/Binaries/Editor/Linux/Debug/FlaxEditor
X Error of failed request: BadAtom (invalid Atom parameter)
Major opcode of failed request: 18 (X_ChangeProperty)
Atom id in failed request: 0x0
Serial number of failed request: 20
Current serial number in output stream: 21
Couldn't load font -*-*-medium-r-normal--*-120-*-*-*-*-*-*$
$
Evidently I either do not have some fonts installed or do not have the package that allows .NET apps to locate fonts, but I cannot imagine what that can be.
Any ideas?
Seams like an issue with X11 interfece installation. Maybe that Linux distro doesn’t have any UI stuff like fonts. You can run Flax with -std -headless command arg to get verbose logs into console without any UI popups.
Maybe. Unfortunately, I moved from EndeavourOS to MX Linux, so that is hard to check.
Yes, I can!
$ env | grep PATH
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
andy@mx:~/Tools/Flax/Binaries/Editor/Linux/Debug
$ dotnet --version
7.0.306
andy@mx:~/Tools/Flax/Binaries/Editor/Linux/Debug
$ ./FlaxEditor -new
andy@mx:~/Tools/Flax/Binaries/Editor/Linux/Debug
$ ls
Binaries Debug.flaxproj FlaxEngine.CSharp.dll FlaxEngine.CSharp.xml Logo.png Newtonsoft.Json.pdb
Cache FlaxEditor FlaxEngine.CSharp.pdb libFlaxEditor.so Logs Source
Content FlaxEditor.Build.json FlaxEngine.CSharp.runtimeconfig.json libnethost.so Newtonsoft.Json.dll
andy@mx:~/Tools/Flax/Binaries/Editor/Linux/Debug
$ ./FlaxEditor -std -headless
Error: 0x7f3ecf710b00
[ 15:27:31.309 ]: [Warning] Managed Editor exit called after exit or before init.
================================================================
Total errors: 0
Closing file
================================================================
andy@mx:~/Tools/Flax/Binaries/Editor/Linux/Debug
$ cd ../Release/
andy@mx:~/Tools/Flax/Binaries/Editor/Linux/Release
$ ./FlaxEditor -std -headless
Aborted
andy@mx:~/Tools/Flax/Binaries/Editor/Linux/Release
$ ./FlaxEditor -new
Aborted
andy@mx:~/Tools/Flax/Binaries/Editor/Linux/Release
$ ls
FlaxEditor FlaxEngine.CSharp.dll FlaxEngine.CSharp.runtimeconfig.json libFlaxEditor.so Logo.png Newtonsoft.Json.pdb
FlaxEditor.Build.json FlaxEngine.CSharp.pdb FlaxEngine.CSharp.xml libnethost.so Newtonsoft.Json.dll
andy@mx:~/Tools/Flax/Binaries/Editor/Linux/Release
$ cd ../Development/
andy@mx:~/Tools/Flax/Binaries/Editor/Linux/Development
$ ./FlaxEditor -std -headless
Aborted
andy@mx:~/Tools/Flax/Binaries/Editor/Linux/Development
$ ./FlaxEditor -new
Aborted
andy@mx:~/Tools/Flax/Binaries/Editor/Linux/Development
$ ls
FlaxEditor FlaxEngine.CSharp.pdb libFlaxEditor.so Logo.png nunit.framework.dll
FlaxEditor.Build.json FlaxEngine.CSharp.runtimeconfig.json libFlaxTests.so Newtonsoft.Json.dll
FlaxEngine.CSharp.dll FlaxEngine.CSharp.xml libnethost.so Newtonsoft.Json.pdb
andy@mx:~/Tools/Flax/Binaries/Editor/Linux/Development
$
As you can see, only the Debug version says something and even produces a project if run from its installation folder. Development and Release just say “Aborted”.