Linux playground

Gondos

Well-known member
Joined
Apr 18, 2022
Messages
233
Reaction score
272
Points
78
Location
On my chair
Had a bit of fun with an old raspberry pi. Sadly the little guy is quite RAM starved because there is no support for S3TC. I converted some DXT1 textures to ETC1 but there is no support for ETC2 so transparent textures need to stay uncompressed and it often ends up with a segfault due to memory issues... Most likely a raspberry pi 4 would do a lot better.
 

Jordan

Active member
Joined
May 13, 2010
Messages
136
Reaction score
80
Points
43
Location
Germany
Had a bit of fun with an old raspberry pi. Sadly the little guy is quite RAM starved because there is no support for S3TC. I converted some DXT1 textures to ETC1 but there is no support for ETC2 so transparent textures need to stay uncompressed and it often ends up with a segfault due to memory issues... Most likely a raspberry pi 4 would do a lot better.
You seem serious about Orbiter's portability. I'm still waiting for the mobile phone version. 🙃
 

Sword7

Member
Joined
Mar 23, 2008
Messages
140
Reaction score
16
Points
18
Location
Gaithersburg, MD
Yeah. Of course, we could see Orbiter on iOS and Android platforms soon. They need to compatible with OpenGL ES.
 

Matias Saibene

Development hell
Joined
Jul 7, 2012
Messages
1,056
Reaction score
648
Points
128
Location
Monte Hermoso - Argentina
Website
de-todo-un-poco-computacion-e-ideas.blogspot.com.ar
Hi @Gondos!
Investigating and testing Orbiter for Linux I have come to the conclusion that the deterioration in the fluidity of the image is not due to the inclusion of normalmaps. I tell you that I have been "developing add-ons" for Orbiter Linux and I have used normalmaps in my textures, but the performance deterioration occurred when the camera was looking towards a planet. So it must be something related to the rendering of celestial bodies. I leave you a video where the Luna3 probe is seen with little fluid animation but as soon as I change the camera and stop seeing the Moon the animation becomes more fluid. I hope it helps. It would also be useful to know if other Orbinauts have performance problems, maybe it's just my computer. Anyway, the low FPS is not annoying for me.

 

Sword7

Member
Joined
Mar 23, 2008
Messages
140
Reaction score
16
Points
18
Location
Gaithersburg, MD
Hi @Gondos!
Investigating and testing Orbiter for Linux I have come to the conclusion that the deterioration in the fluidity of the image is not due to the inclusion of normalmaps. I tell you that I have been "developing add-ons" for Orbiter Linux and I have used normalmaps in my textures, but the performance deterioration occurred when the camera was looking towards a planet. So it must be something related to the rendering of celestial bodies. I leave you a video where the Luna3 probe is seen with little fluid animation but as soon as I change the camera and stop seeing the Moon the animation becomes more fluid. I hope it helps. It would also be useful to know if other Orbinauts have performance problems, maybe it's just my computer. Anyway, the low FPS is not annoying for me.


Your video is not available.

Update: Never mind. I have to go YouTube and was now able watch video.
 

Gondos

Well-known member
Joined
Apr 18, 2022
Messages
233
Reaction score
272
Points
78
Location
On my chair
Hi @Gondos!
Investigating and testing Orbiter for Linux I have come to the conclusion that the deterioration in the fluidity of the image is not due to the inclusion of normalmaps. I tell you that I have been "developing add-ons" for Orbiter Linux and I have used normalmaps in my textures, but the performance deterioration occurred when the camera was looking towards a planet. So it must be something related to the rendering of celestial bodies. I leave you a video where the Luna3 probe is seen with little fluid animation but as soon as I change the camera and stop seeing the Moon the animation becomes more fluid. I hope it helps. It would also be useful to know if other Orbinauts have performance problems, maybe it's just my computer. Anyway, the low FPS is not annoying for me.

Hi Matias,
I think the problem is two-fold (I'm having similar issues on the raspberry pi) :
  • tile loading is not threaded so it will cause heavy choppiness whenever a new tile needs loading. I don't think this is your case here since you're not in low orbit and the moon is almost always showing the same tiles.
  • the shader is really badly optimized (I'd rather say pessimized since no real effort has been made to make it faster). I guess this is your issue.
I'll give it a spin on my rpi3 and see how it performs there (without normal maps), your hardware should obviously be order of magnitudes faster than the VC4 powering it...

Edit : with a bit of tweaking it runs at about 30fps with vsync enabled at 1280x1024 resolution (RPi3B at 1.2GHz) :
Are you sure you have hardware acceleration enabled for your GPU?
 
Last edited:

Col Brubaker

Hoax Developer
Joined
May 21, 2011
Messages
82
Reaction score
40
Points
33
Location
Free Republic of Germany
Hello folks,

I joined the club. I installed Orbiter on Kali Linux. But it closes all the time at start.
Could somebody assist with the bug-fixes? I think it is the sound module?

...
Loading Sound/ProjectApollo/inboard-cutoff.wav
Loading Sound/ProjectApollo/Apollo9/go-for-orbit.wav
Loading Sound/ProjectApollo/TowerJet.wav
Loading Sound/ProjectApollo/SMJetison.wav
Loading Sound/ProjectApollo/CrawlerEngine.wav
CWD modified by module OGLClient - Fixing.
CWD modified by module AtmConfig - Fixing.
CWD modified by module ExtMFD - Fixing.
CWD modified by module ApolloRTCCMFD - Fixing.
CWD modified by module ProjectApolloMFD - Fixing.
CWD modified by module ScnEditor - Fixing.
CWD modified by module Orb42S - Fixing.
CWD modified by module ProjectApolloConfigurator - Fixing.
CWD modified by module LuaMFD - Fixing.
CWD modified by module ScriptMFD - Fixing.
CWD modified by module TransX - Fixing.
Loading Sound/ProjectApollo/rotary.wav
Loading Sound/ProjectApollo/circuit_breaker.wav
oapiBlt Colour key argument not supported by graphics client
zsh: segmentation fault (core dumped) ./Orbiter
 
Last edited:

Gondos

Well-known member
Joined
Apr 18, 2022
Messages
233
Reaction score
272
Points
78
Location
On my chair
Hello folks,

I joined the club. I installed Orbiter on Kali Linux. But it closes all the time at start.
Could somebody assist with the bug-fixes? I think it is the sound module?

...
Loading Sound/ProjectApollo/inboard-cutoff.wav
Loading Sound/ProjectApollo/Apollo9/go-for-orbit.wav
Loading Sound/ProjectApollo/TowerJet.wav
Loading Sound/ProjectApollo/SMJetison.wav
Loading Sound/ProjectApollo/CrawlerEngine.wav
CWD modified by module OGLClient - Fixing.
CWD modified by module AtmConfig - Fixing.
CWD modified by module ExtMFD - Fixing.
CWD modified by module ApolloRTCCMFD - Fixing.
CWD modified by module ProjectApolloMFD - Fixing.
CWD modified by module ScnEditor - Fixing.
CWD modified by module Orb42S - Fixing.
CWD modified by module ProjectApolloConfigurator - Fixing.
CWD modified by module LuaMFD - Fixing.
CWD modified by module ScriptMFD - Fixing.
CWD modified by module TransX - Fixing.
Loading Sound/ProjectApollo/rotary.wav
Loading Sound/ProjectApollo/circuit_breaker.wav
oapiBlt Colour key argument not supported by graphics client
zsh: segmentation fault (core dumped) ./Orbiter
Hi,
This looks more like missing planetary textures. Did you extract Orbiter2016.zip in the correct path?
 

Col Brubaker

Hoax Developer
Joined
May 21, 2011
Messages
82
Reaction score
40
Points
33
Location
Free Republic of Germany
I don't know, I actually just run your routines thru Konsole and fixed the missing parts. All I did was following the instructions from your first post.
It starts, but collapse after 3-5 seconds into the scenario.
What is the correct path?
How to remove it and do it again?

- I actually had no idea what I did. :unsure:
 
Last edited:

Gondos

Well-known member
Joined
Apr 18, 2022
Messages
233
Reaction score
272
Points
78
Location
On my chair
I don't know, I actually just run your routines thru Konsole and fixed the missing parts. All I did was following the instructions from your first post.
It starts, but collapse after 3-5 seconds into the scenario.
What is the correct path?
How to remove it and do it again?


- I actually had no idea what I did. :unsure:
OK, let's suppose you did it correctly then.
Try running with a debugger and post a backtrace :
gdb ./Orbiter
and type "run" when the prompt appears. Then when it crashes type "bt" in the prompt to dump the backtrace (type "quit" to exit the debugger).
 

Col Brubaker

Hoax Developer
Joined
May 21, 2011
Messages
82
Reaction score
40
Points
33
Location
Free Republic of Germany
I am sorry, but I don't know what a debugger is. I know it from QBasic.
Honestly I didn't understand a word.
And btw. I am on AMD.
Loading XRSound/Default/Tires Rolling.wav
CWD modified by module OGLClient - Fixing.
CWD modified by module AtmConfig - Fixing.
CWD modified by module XRSound - Fixing.
CWD modified by module ExtMFD - Fixing.
CWD modified by module ApolloRTCCMFD - Fixing.
CWD modified by module ProjectApolloMFD - Fixing.
CWD modified by module ScnEditor - Fixing.
CWD modified by module Orb42S - Fixing.
CWD modified by module LuaInline - Fixing.
oapiBlt Colour key argument not supported by graphics client
PolyLineSet::Load failed ./Config/Earth/Data/contour.vec
Loading XRSound/Default/Wheels Down.wav
Loading XRSound/Default/Wheels Up.wav
Loading XRSound/Default/Wheel Stop.wav
zsh: segmentation fault (core dumped) ./Orbiter

┌──(alf㉿HAL9002)-[~/orbiter_test/Orbiter]
└─$ run
Der Befehl 'run' wurde nicht gefunden, meinten Sie:
Befehl 'zun' aus dem deb python3-zunclient
Befehl 'crun' aus dem deb crun
Befehl 'grun' aus dem deb grun
Befehl 'runq' aus dem deb exim4-daemon-heavy
Befehl 'runq' aus dem deb exim4-daemon-light
Befehl 'zrun' aus dem deb moreutils
Befehl 'srun' aus dem deb slurm-client
Befehl 'runc' aus dem deb runc
Befehl 'rup' aus dem deb rstat-client
Versuche: sudo apt install <deb name>

┌──(alf㉿HAL9002)-[~/orbiter_test/Orbiter]
└─$ bt
bt: Befehl nicht gefunden.
└─$ gdb ./Orbiter
GNU gdb (Debian 13.2-1) 13.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
./Orbiter: Datei oder Verzeichnis nicht gefunden.
(gdb) run
Starting program:
No executable file specified.
Use the "file" or "exec-file" command.
(gdb) bt
No stack.
(gdb)
 

Gondos

Well-known member
Joined
Apr 18, 2022
Messages
233
Reaction score
272
Points
78
Location
On my chair
I am sorry, but I don't know what a debugger is. I know it from QBasic.
Honestly I didn't understand a word.
And btw. I am on AMD.
You must run it from the install dir :
cd ~/orbiter_test/Orbiter
gdb ./Orbiter

AMD should be OK, I've got it running on nvidia and VC4
 

Col Brubaker

Hoax Developer
Joined
May 21, 2011
Messages
82
Reaction score
40
Points
33
Location
Free Republic of Germany
Can I install Orbiter Addons in this directory`? Perhaps Orbiter sound is missing? Or it is my sound card?

NOW I got what you want:
...
Loading Sound/ProjectApollo/TowerJet.wav
Loading Sound/ProjectApollo/Apollo11/go-for-tli.wav
Loading Sound/ProjectApollo/Apollo11/tli-start.wav
Loading Sound/ProjectApollo/SMJetison.wav
Loading Sound/ProjectApollo/Apollo11/T-01-30.wav
Loading Sound/ProjectApollo/CrawlerEngine.wav
CWD modified by module OGLClient - Fixing.
CWD modified by module AtmConfig - Fixing.
CWD modified by module XRSound - Fixing.
CWD modified by module ExtMFD - Fixing.
CWD modified by module ApolloRTCCMFD - Fixing.
CWD modified by module ProjectApolloMFD - Fixing.
CWD modified by module ScnEditor - Fixing.
CWD modified by module Orb42S - Fixing.
Loading Sound/ProjectApollo/rotary.wav
Loading Sound/ProjectApollo/circuit_breaker.wav
oapiBlt Colour key argument not supported by graphics client
[New Thread 0x7fffaa7596c0 (LWP 5197)]
[New Thread 0x7fffa9f586c0 (LWP 5198)]
[New Thread 0x7fffa97576c0 (LWP 5199)]

Thread 1 "Orbiter" received signal SIGSEGV, Segmentation fault.
0x00007ffff70f338d in CloudTile::Render() () from Modules/Plugin/libOGLClient.so
(gdb) bt
#0 0x00007ffff70f338d in CloudTile::Render() () from Modules/Plugin/libOGLClient.so
#1 0x00007ffff70f4e02 in void TileManager2Base::RenderNode<CloudTile>(QuadTreeNode<CloudTile>*) () from Modules/Plugin/libOGLClient.so
#2 0x00007ffff70f4ec5 in void TileManager2Base::RenderNode<CloudTile>(QuadTreeNode<CloudTile>*) () from Modules/Plugin/libOGLClient.so
#3 0x00007ffff70f4ec5 in void TileManager2Base::RenderNode<CloudTile>(QuadTreeNode<CloudTile>*) () from Modules/Plugin/libOGLClient.so
#4 0x00007ffff70f4ec5 in void TileManager2Base::RenderNode<CloudTile>(QuadTreeNode<CloudTile>*) () from Modules/Plugin/libOGLClient.so
#5 0x00007ffff70f4ec5 in void TileManager2Base::RenderNode<CloudTile>(QuadTreeNode<CloudTile>*) () from Modules/Plugin/libOGLClient.so
#6 0x00007ffff70f4ec5 in void TileManager2Base::RenderNode<CloudTile>(QuadTreeNode<CloudTile>*) () from Modules/Plugin/libOGLClient.so
#7 0x00007ffff70f3bf9 in TileManager2<CloudTile>::Render(MATRIX4&, vPlanet::RenderPrm const&) () from Modules/Plugin/libOGLClient.so
#8 0x00007ffff70d02e8 in vPlanet::RenderCloudLayer(unsigned int, vPlanet::RenderPrm const&) () from Modules/Plugin/libOGLClient.so
#9 0x00007ffff70cf5e5 in vPlanet::Render() () from Modules/Plugin/libOGLClient.so
#10 0x00007ffff70b68ed in Scene::Render() () from Modules/Plugin/libOGLClient.so
#11 0x00007ffff70f691c in OGLClient::clbkRenderScene() () from Modules/Plugin/libOGLClient.so
#12 0x00005555557224c7 in Orbiter::Render3DEnvironment() ()
#13 0x00005555557227f2 in Orbiter::Run() ()
#14 0x000055555571f11a in main ()
(gdb)
And this:
...
Loading Sound/ProjectApollo/rotary.wav
Loading Sound/ProjectApollo/circuit_breaker.wav
oapiBlt Colour key argument not supported by graphics client
[New Thread 0x7fffacceb6c0 (LWP 5827)]

Thread 1 "Orbiter" received signal SIGILL, Illegal instruction.
0x00007fffc6146641 in ProjectApolloChecklistMFD::Update(oapi::Sketchpad*) () from Modules/Plugin/libProjectApolloMFD.so
(gdb) bt
#0 0x00007fffc6146641 in ProjectApolloChecklistMFD::Update(oapi::Sketchpad*) () from Modules/Plugin/libProjectApolloMFD.so
#1 0x0000555555836d49 in Instrument_User::UpdateDraw(oapi::Sketchpad*) ()
#2 0x000055555580a70a in Instrument::Update(double) ()
#3 0x00005555557f88aa in Pane::Update(double, double) ()
#4 0x0000555555724e09 in Orbiter::EndTimeStep(bool) ()
#5 0x000055555572177c in Orbiter::StartSession(Config*, char const*) ()
#6 0x0000555555720d96 in Orbiter::Launch(char const*) ()
#7 0x000055555574988d in DlgLaunchpad::DrawScenarios() ()
#8 0x000055555574965f in DlgLaunchpad::Show() ()
#9 0x000055555586638e in GUIManager::RenderGUI() ()
#10 0x00005555557224fc in Orbiter::RenderGUI() ()
#11 0x000055555572282f in Orbiter::Run() ()
#12 0x000055555571f11a in main ()
(gdb) Quit
(gdb)
And this:
...
Loading XRSound/Default/Sonic Boom Twin.wav
[New Thread 0x7fffb93fb6c0 (LWP 16866)]
[New Thread 0x7fffb8bfa6c0 (LWP 16867)]

Thread 1 "Orbiter" received signal SIGSEGV, Segmentation fault.
0x00007ffff70f338d in CloudTile::Render() () from Modules/Plugin/libOGLClient.so
(gdb) Quit
(gdb)
 
Last edited:

Gondos

Well-known member
Joined
Apr 18, 2022
Messages
233
Reaction score
272
Points
78
Location
On my chair
Can I install Orbiter Addons in this directory`? Perhaps Orbiter sound is missing? Or it is my sound card?

NOW I got what you want:

And this:

And this:
This is using XRSound which is pqrt of OpenOrbiter so there should be no issue. You can disable the module if you want to make sure.
The first crash looks like a missing a texture file.
I'm on windows right now but from the directory containing the Orbiter binary you should have something like this:
Code:
Gondos@DESKTOP-HAH0M9G MINGW64 /c/github/orbiter/out/install/x64-release/Orbiter (linux)
$ find|grep tree
./Textures/Earth/Archive/Cloud.tree
./Textures/Earth/Archive/Elev.tree
./Textures/Earth/Archive/Elev_mod.tree
./Textures/Earth/Archive/Mask.tree
./Textures/Earth/Archive/Surf.tree
./Textures/Mars/Archive/Elev.tree
./Textures/Mars/Archive/Surf.tree
./Textures/Moon/Archive/Elev.tree
./Textures/Moon/Archive/Surf.tree
The second crash is more of a mystery...
 
Top