Hi,
my program crashed with a segmentation fault on Linux [1] when built[2] and run completely headless. More specifically, over a SSH session with no X forwarding enabled.
I now further investigated, and found out, that even the Audio Plugin Example App and the GuiApp Example App do so. Therefore I assume, that my code is not the problem.
This is the backtrace I receive via gdb:
(gdb) run
Starting program: /home/pi/JUCECommercial/examples/CMake/AudioPlugin/AudioPlugin/AudioPluginExample_artefacts/Standalone/Audio Plugin Example
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/arm-linux-gnueabihf/libthread_db.so.1”.Program received signal SIGSEGV, Segmentation fault.
0x00205730 in juce::LinuxComponentPeer::updateScaleFactorFromNewBounds(juce::Rectangle const&, bool) ()
(gdb)
AFAIK JUCE6 now comes with an out-of-the-box headless build and run on Linux. Therefore, I don’t know what could be the problem here.
Any help or suggestions appreciated!
Greetings,
Lukas
[1]: Specifically, the most recent Rasperry OS on a RPi4.
[2]: Build commands:
/home/pi/JUCE/examples/CMake/AudioPlugin
mkdir build && cd build
TARGET_ARCH=’-march=armv7l’ LDFLAGS=-latomic cmake … -G “Unix Makefiles”
make AudioPluginExample_Standalone
./AudioPlugin/AudioPluginExample_artefacts/Standalone/Audio\ Plugin\ Example