Problem building BabylonNative on Linux

There we go. We have symbols.

(gdb) run

Starting program: /build/build/Apps/ValidationTests/ValidationTests

warning: Error disabling address space randomization: Operation not permitted

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

[New Thread 0x7f4a88167640 (LWP 1391)]

Thread 1 "ValidationTests" received signal SIGSEGV, Segmentation fault.

0x000000000040e197 in main () at ../Apps/ValidationTests/X11/App.cpp:116

116 int32_t screen = DefaultScreen(display);

Sweet! Time for another test then.
On your shell, run these commands:

export DISPLAY=:99
Xvfb :99 -screen 0 1600x900x24 

Then, try running ValidationTests

Do I run those commands in the Linux shell in the running container, or my MacOS shell before starting docker container?

Linux shell

Oh yea, lots of tests running now.

At some point I get the following error.

Failed to retrieve https://raw.githubusercontent.com/BabylonJS/Babylon.js/master/tests/validation/ReferenceImages/texture cache.png. LoadFileError: Error status: 0 undefined - Unable to load https://raw.githubusercontent.com/BabylonJS/Babylon.js/master/tests/validation/ReferenceImages/texture cache.png

Which I’m sure has something to do with accessing github within my container.

It’s a known bug, it will be fixed very soon.

Open config.json that’s in Apps\ValidationTests\Scripts` and remove the block with Texture Cache (3rd test). and run again validationTests.

I had to remove the ribbon morphing test also because of a similar error. Then several more tests run until I get.

terminate called after throwing an instance of 'std::runtime_error'
  what():  Current frame cannot be started before prior frame has been finished.
Aborted

Can you plase check if the latest scene tested is GLTF Texture Sampler (1) ?

The lastest test was LOD.

1 Like

Even for the tests that run I see results like:

First pixel off at 191548: Value: (37, 44, 39) - Expected: (23, 36, 23)
Pixel difference: 190 pixels.
validated

Is this a failed test or expected?

Do you think what I’m experiencing is because the Linux build is immature or because my setup is not right?

Our tests for the linux builds are still a bit unstable. It sounds like your build is set up correctly now.

Alright thanks.