BadShmSeg X11 error on startup

Hi, when starting a juce app from a remote ssh connection, I’m getting this BadShm X11 error .

Adding
X11Symbols::getInstance()->xSync (display, False);
after the call to
X11Symbols::getInstance()->xShmDetach (display, &segmentInfo);

in juce_linux_XWindowSystem.cpp, in XShmHelpers::isShmAvailable , seems to fix the crash (since we force the sync, the error triggered by XSHmDetach() is catched by the errorTrapHandler).