Display Issues on Linux with all JUCE applications

I’ve been working through a basic EQ tutorial on Linux Mint. I can build using CMake and run the plugin Standalone or using AudioPluginHost. However, while any JUCE program is running I start getting display issues across my entire desktop. I took a few screenshots attempting to show what’s going on. The JUCE program tends to launch ok, but a few seconds in multiple programs, even non-JUCE programs will black out at random intervals. I can’t click anywhere or do anything other than move the mouse until it stops occurring for a little while. I am not running audio while this happens.

I have noted that if I use a DAW, in this case Reaper, to load and run this plugin, these issues do not occur.

I’m new to the entire toolset and Linux, so I’m posting to see if anyone could point me in the right direction of what could be going on and where I can keep looking. Thanks in advance, I’m already enjoying the framework and I will be much happier when I figure this out.

1 Like

Which version of Juce do you use?

I was using JUCE 7.0.9. I upgraded to 7.0.11 because of the OpenGL compatibility addition I see in .10, and the issue persists.

I’ve seen a few posts on the Mint forums regarding issues with Nvidia hardware and OpenGL settings.

This happened to me(LinuxMint) in juce 7.0.9 while using ‘DemoRunner’. Could not find out the reason though, Cinnamon used to completely crash. Although it did not happen to my applications written in the same version.

This problem still exists with the newest JUCE. Pushing a year of being reported, anybody repro this on the JUCE team?

1 Like

I had a similar issue, switching to a native title-bar fixed it for me.

Not so much on my end. It might be a Window manager specific problem. I completely resolved it by switching to xfce4 from Cinnamon.

Might be because you need to have a compositor.

If your WM doesn’t have one built in you can run xcompmgr instead.

I had to update my gnome/mutter version yeah

Having a compositor running is not the root cause. I’m on Linux MINT, 6.8 kernel, running Cinnamon.

mfisher@sn01:~$ xcompmgr
Another composite manager is already running (0x2800011)
mfisher@sn01:~$ 

Sometimes the issue will persist and closing the program by normal means (the X button in the window, or file->close) just doesn’t work either. In this situation if I move the window to another workspace, then delete the workspace it was on, the problem goes away for a second and I can quit whatever juce app I’m using.

It really is starting to seem like a JUCE / X11 corner-case problem at the core. Maybe not, but if I wanted to go debug it myself, are there any JUCE-X11 experts in here that could point me in the direction of where there could possibly be a problem in JUCE itself?

1 Like