my program crashed with a segmentation fault on Linux  when built 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:
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) ()
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!
: Specifically, the most recent Rasperry OS on a RPi4.
: Build commands:
mkdir build && cd build
TARGET_ARCH=’-march=armv7l’ LDFLAGS=-latomic cmake … -G “Unix Makefiles”
./AudioPlugin/AudioPluginExample_artefacts/Standalone/Audio\ Plugin\ Example