It could be that the error depends on the window manager being used. When I switch to i3-wm , I’m getting the BadWindow error with DemoRunner from latest juce develop branch (non-fatal, though, but it seems to be fatal for plugins). Here is the stacktrace:
#0 0x00007ffff5da1190 in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#1 0x00007ffff5d9dff7 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#2 0x00007ffff5d9f203 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#3 0x00007ffff5d847e8 in XGetWindowProperty () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#4 0x0000555555e5f0dd in juce::XWindowSystemUtilities::GetXProperty::GetXProperty (this=0x7fffffffde80,
display=0x5555565db470, window=0, atom=430, offset=0, length=9223372036854775807, shouldDelete=false, requestedType=430)
at ../../../../modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp:169
#5 0x0000555555e5f828 in juce::XWindowSystemUtilities::XSettings::update (this=0x5555565e8480)
at ../../../../modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp:212
#6 0x0000555555e5f24d in juce::XWindowSystemUtilities::XSettings::XSettings (this=0x5555565e8480, d=0x5555565db470)
at ../../../../modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp:191
#7 0x0000555555f1fb6b in std::make_unique<juce::XWindowSystemUtilities::XSettings, _XDisplay*&> ()
at /usr/include/c++/9/bits/unique_ptr.h:857
#8 0x0000555555e69c34 in juce::XWindowSystem::initialiseXSettings (this=0x5555565cf730)
at ../../../../modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp:3033
#9 0x0000555555e6a332 in juce::XWindowSystem::initialiseXDisplay (this=0x5555565cf730)
at ../../../../modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp:3124
#10 0x0000555555e620b5 in juce::XWindowSystem::XWindowSystem (this=0x5555565cf730)
at ../../../../modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp:1442
#11 0x0000555555f21340 in juce::SingletonHolder<juce::XWindowSystem, juce::CriticalSection, false>::getWithoutChecking (
this=0x55555658b500 <juce::XWindowSystem::singletonHolder>) at ../../../../modules/juce_core/memory/juce_Singleton.h:103
#12 0x0000555555eecb94 in juce::SingletonHolder<juce::XWindowSystem, juce::CriticalSection, false>::get (
this=0x55555658b500 <juce::XWindowSystem::singletonHolder>) at ../../../../modules/juce_core/memory/juce_Singleton.h:92
#13 0x0000555555e89fc0 in juce::XWindowSystem::getInstance ()
at ../../../../modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.h:250
#14 0x0000555555ee8166 in juce::Desktop::NativeDarkModeChangeDetectorImpl::NativeDarkModeChangeDetectorImpl (
this=0x5555565bdd00) at ../../../../modules/juce_gui_basics/native/juce_linux_Windowing.cpp:558
#15 0x0000555555f1e75f in std::make_unique<juce::Desktop::NativeDarkModeChangeDetectorImpl> ()
at /usr/include/c++/9/bits/unique_ptr.h:857
#16 0x0000555555e5dbeb in juce::Desktop::createNativeDarkModeChangeDetectorImpl ()
at ../../../../modules/juce_gui_basics/native/juce_linux_Windowing.cpp:594
#17 0x0000555555dc09f4 in juce::Desktop::Desktop (this=0x5555565d96b0)
at ../../../../modules/juce_gui_basics/desktop/juce_Desktop.cpp:32
#18 0x0000555555dc0e1c in juce::Desktop::getInstance () at ../../../../modules/juce_gui_basics/desktop/juce_Desktop.cpp:53
#19 0x0000555555e55b2a in juce::KeyPressMappingSet::KeyPressMappingSet (this=0x5555565d95e0, cm=...)
at ../../../../modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp:32
#20 0x0000555555e54221 in juce::ApplicationCommandManager::ApplicationCommandManager (this=0x5555565d9548)
at ../../../../modules/juce_gui_basics/commands/juce_ApplicationCommandManager.cpp:31
#21 0x000055555579fabc in DemoRunnerApplication::DemoRunnerApplication (this=0x5555565d9510) at ../../Source/Main.cpp:83
#22 0x000055555579e7e9 in juce_CreateApplication () at ../../Source/Main.cpp:176
#23 0x0000555555ca3590 in juce::JUCEApplicationBase::main ()
at ../../../../modules/juce_events/messages/juce_ApplicationBase.cpp:253
#24 0x0000555555ca34e7 in juce::JUCEApplicationBase::main (argc=1, argv=0x7fffffffe5e8)
at ../../../../modules/juce_events/messages/juce_ApplicationBase.cpp:240
#25 0x000055555579e844 in main (argc=1, argv=0x7fffffffe5e8) at ../../Source/Main.cpp:176
Same error as reported by baconpaul:
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 20 (X_GetProperty)
Resource id in failed request: 0x0
Serial number of failed request: 54
Current serial number in output stream: 54