# JUCE8 based plugins on WINE - rendering issues

**URL:** <https://forum.juce.com/t/juce8-based-plugins-on-wine-rendering-issues/69500>\
**Category:** General JUCE discussion\
**Created:** [September 13, 2026, 2:31pm UTC](https://forum.juce.com/t/juce8-based-plugins-on-wine-rendering-issues/69500 "2026-09-13T14:31:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![akiraxan](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@akiraxan](https://forum.juce.com/u/akiraxan)\
**Post date:** [September 13, 2026, 2:31pm UTC](https://forum.juce.com/t/juce8-based-plugins-on-wine-rendering-issues/69500/1 "2026-09-13T14:31:07Z")

</div>

I’ve been implementing my synth instrument SynthMatrix plugin with JUCE8. I develop under linux and GitHub-Actions do the windows builds for me.

I have a problem that the plugin does not draw anything, either as standalone or VST3. I run my FL Studio using Bottles which works fine, and all my bought plugins including FL Studio are Windows binaries. So I need to get the rendering working to be able to distribut windows binaries for Linux users like me.

I don’t need Windows WINE for anything other than FL STudio and for few games I play.

The UI Window opens up but is blank or white. The controls however seem to be working, like the keyboard playing sounds with the mouse or opening dialogs from the UI, like “Rename Patch”. Dialogs pop up fine but the main UI stays blanck.

If this is a duplicate thread please direct me to a correct spot. I don’t want to spam duplicates, seriously.

I’ll post later what I have been trying to resolve this problem.  
But we have been trying to force GDI-rendering bypassing everything Direct2D and OpenGL dependent.

My reasoning for Windows-binaries is that my FL Studio is available only for Windows and so are all my plugins I’ve bought so far. My de facto DAW is FL Studio. The windows binaries work on native Windows OS but I need to provide other Linux users a way to use the plugin as well for them and for myself.

Any success or ideas making JUCE8 plugins work under Wine/Linux?

Thank you very much!

A demo

> **[SynthMatrix-demo - Google Drive](https://drive.google.com/drive/folders/1b8JVTuXLLAQ0JH-maWK2mJbJZqILfj6A?usp=drive_link)**

version (standalone binary) is available on my Google Drive, linux and windows standalone. I’ve not been able to check the Linux release on other Linux systems so I have no idea if your system might be missing any dependencies.

Also all feedback is welcome.

---

<div class="post-metadata">

**Author:** ![akiraxan](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@akiraxan](https://forum.juce.com/u/akiraxan)\
**Post date:** [September 13, 2026, 2:56pm UTC](https://forum.juce.com/t/juce8-based-plugins-on-wine-rendering-issues/69500/2 "2026-09-13T14:56:00Z")

</div>

Here’s a brief list what we have been trying. It might be slightly incomplete but you see the workarounds we have been testing.

Here is a summary of what we investigated, diagnosed, and tested regarding the JUCE 8 rendering issue under Wine (Wine-Proton / Bottles):

### 1. The Symptoms

- **Standalone:** Window opens and remains completely blank / white. Mouse interactions work invisibly (e.g. clicking keys on the virtual keyboard plays notes, and modal popups like `AlertWindow` (“Rename Patch”) render perfectly with dark theme).
- **VST3 (FL Studio under Wine):** Host loads the plugin, audio processing works, controls respond, but plugin editor either fails to open (“Something went wrong loading the plugin SynthMatrix”) or opens as a blank/unpainted window.

* * *

### 2. Direct2D 1.3 / DXGI / DXVK Incompatibility

- **Finding:** JUCE 8 defaults to Direct2D with hardware acceleration on Windows, utilizing Direct2D feature level 1.3 (`ID2D1DeviceContext2`, `ID2D1Factory3`, DXGI swapchains, and `VBlankDispatcher`).
- Wine’s built-in Direct2D implementation currently supports up to Direct2D 1.2.
- In JUCE’s `VBlankDispatcher_windows.cpp`, querying DXGI outputs and monitors triggered unhandled access violations (`0xc0000005` in `dxgi.dll`), crashing hosts or aborting window creation.
- **Workaround tested:**
  - Forcing `GDIRenderContext` by overriding `Component::createNewPeer` to engine `0`.
  - Disabling `VBlankDispatcher` display reconfigurations (`reconfigureDisplays()`, `updateDisplay()`).
  - Replacing Direct2D descriptor in `contextDescriptorList` with `GDIRenderContext`.

* * *

### 3. JUCE 8 Software Renderer (`GDIRenderContext`) on Wine

Even when forcing the software GDI renderer, two critical issues were uncovered:

1. **Repaints tied strictly to VBlank:**

2. **`StretchDIBits` vs `BitBlt` in Wine’s X11 GDI driver:**

* * *

### 4. DirectWrite Font Fallback Crash in Wine’s `dwrite.dll`

- Tracing with `WINEDEBUG=+dwrite,+seh` pinpointed the root cause of the white window / host crash:

- **Mechanism:**

---

<div class="post-metadata">

**Author:** ![PluginPenguin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pluginpenguin/32/10203_2.png) [@PluginPenguin](https://forum.juce.com/u/PluginPenguin)\
**Post date:** [September 13, 2026, 5:27pm UTC](https://forum.juce.com/t/juce8-based-plugins-on-wine-rendering-issues/69500/3 "2026-09-13T17:27:47Z")

</div>

The entire JUCE / Wine topic has been discussed over here in depth already [Juce8 Direct2D WINE/yabridge](https://forum.juce.com/t/juce8-direct2d-wine-yabridge/64298).

I didn’t go through all the details of your second post, but are you berfore or behind this JUCE8 commit? [Restore Wine functionality · juce-framework/JUCE@5179690 · GitHub](https://github.com/juce-framework/JUCE/commit/5179690ff7384503f5f1bf90a5e84278aa8472ea)

---

<div class="post-metadata">

**Author:** ![akiraxan](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@akiraxan](https://forum.juce.com/u/akiraxan)\
**Post date:** [September 13, 2026, 5:43pm UTC](https://forum.juce.com/t/juce8-based-plugins-on-wine-rendering-issues/69500/4 "2026-09-13T17:43:08Z")

</div>

We managed to solve the problem. Previously the plugin window rendered empty but controls worked even hidden. I’ll post details about the workaround later.

But now my plugin is working under Bottless in FL Studio as Windows-binary. Standalone works as well.

---

<div class="post-metadata">

**Author:** ![akiraxan](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@akiraxan](https://forum.juce.com/u/akiraxan)\
**Post date:** [September 13, 2026, 6:57pm UTC](https://forum.juce.com/t/juce8-based-plugins-on-wine-rendering-issues/69500/5 "2026-09-13T18:57:59Z")

</div>

# Here are the steps and workarounds we used to get the GDI-drawing working. Now the full UI is visible in the plugin.

Solving Blank / White Screen Issues with GDI Software Rendering in JUCE 8 (Wine, VMs & Headless Windows)

### Context & Problem

With JUCE 8, the default Windows rendering engine transitioned to **Direct2D** (`D2DRenderContext`). While Direct2D works great on standard modern Windows desktop installations, it frequently fails in **Wine/Proton, virtual machines, remote desktops, and older GPU environments** , resulting in either crashes or the infamous blank white/black window (“white screen”).

However, simply trying to fall back to the GDI engine (`HWNDComponentPeer` engine 0 / `GDIRenderContext`) in JUCE 8 does not work out of the box. There are several subtle architectural blockers in JUCE 8’s Windows windowing code that prevent GDI from rendering properly.

Below are the **5 critical steps** that completely resolved this and made GDI software rendering 100% stable:

* * *

### 1. Completely Decouple Direct2D and DXGI Context Descriptors

- **File** : `juce_gui_basics/native/juce_Windowing_windows.cpp`

- **Issue** : Even if `juce_isRunningInWine()` selects renderer 0, JUCE still declares:

- **Fix** :

* * *

### 2. Bypass `VBlankDispatcher` with a 60 Hz Fallback Timer (The Most Critical Fix!)

- **Files** : `juce_gui_basics/native/juce_Windowing_windows.cpp` and `juce_VBlank_windows.cpp`

- **Issue** : In JUCE 8, component repainting and `onVBlank()` notifications are tightly coupled to DXGI’s `IDXGIOutput` via `VBlankDispatcher`. In environments where DXGI is disabled or non-functional:

- **Fix** :

* * *

### 3. Robust GDI Blitting: `BitBlt` vs `StretchDIBits` and `GdiFlush`

- **File** : `juce_gui_basics/native/juce_Windowing_windows.cpp` (`blitToDC`)
- **Issue** : JUCE’s default GDI presentation relies on `StretchDIBits` straight from raw bitmap memory. In Wine and virtual display drivers, this can encounter DC mapping discrepancies or race conditions where memory sections aren’t synchronized.
- **Fix** :
  - Explicitly set the mapping mode to `MM_TEXT`.

  - Call `GdiFlush()` prior to presentation to ensure pending GDI drawing commands are committed.

  - Prefer hardware/driver-accelerated DC-to-DC `BitBlt` from the offscreen memory DC (`hdc`), falling back to `StretchDIBits` only if `BitBlt` fails:

* * *

### 4. Force First Paint on Show (`handleShowWindow`)

- **File** : `juce_gui_basics/native/juce_Windowing_windows.cpp`

- **Issue** : When a window receives `WM_SHOWWINDOW`, JUCE’s default implementation has an empty body:

- **Fix** :

* * *

### 5. Guard DirectWrite Font Fallback

- **File** : `juce_graphics/native/juce_DirectWriteTypeface_windows.cpp`
- **Issue** : Under Wine, when rendering text, JUCE queries `IDWriteFactory2` for system font fallback substitution. On some Wine builds, this query returns an error or crashes if the DirectWrite implementation lacks `IDWriteFactory2`.
- **Fix** :
  - Safely bypass the `IDWriteFactory2` fallback query, allowing JUCE to use standard GDI/FreeType font rendering.

* * *

### Summary (TL;DR)

If your JUCE 8 plugin or standalone app shows a white or blank screen when falling back to GDI (especially in Wine, Bottles, or virtualized environments):

1. **The biggest culprit is `VBlankDispatcher`** : Without DXGI, `onVBlank()` never ticks. Add a 60 Hz fallback timer to drive `onVBlank()`.
2. **Prevent D2D descriptor initialization** : Replace `D2DRenderContext` in the descriptor list with `GDIRenderContext`.
3. **Use `BitBlt` and `GdiFlush` in `blitToDC`**.
4. **Call `peer.getComponent().repaint()` in `handleShowWindow()`**.

---

<div class="post-metadata">

**Author:** ![akiraxan](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@akiraxan](https://forum.juce.com/u/akiraxan)\
**Post date:** [September 13, 2026, 8:48pm UTC](https://forum.juce.com/t/juce8-based-plugins-on-wine-rendering-issues/69500/6 "2026-09-13T20:48:39Z")

</div>

[Screenshot of SynthMatrix running on FL Studio on WiNE/Bottles](https://i.imgur.com/VBS8Zf0.png)  
A screehot for proof.

---

<div class="post-metadata">

**Author:** ![PluginPenguin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pluginpenguin/32/10203_2.png) [@PluginPenguin](https://forum.juce.com/u/PluginPenguin)\
**Post date:** [September 13, 2026, 9:06pm UTC](https://forum.juce.com/t/juce8-based-plugins-on-wine-rendering-issues/69500/7 "2026-09-13T21:06:33Z")

</div>

How about joining the conversation e.g. by commenting if your findings apply to a JUCE 8 version before or after the mentioned commit, what exact commit you are on or if your findings differ from the ones already discussed in the linked thread instead of just copy&pasting what looks like straight AI output here?

---

<div class="post-metadata">

**Author:** ![asimilon](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/asimilon/32/4235_2.png) [@asimilon](https://forum.juce.com/u/asimilon)\
**Post date:** [September 14, 2026, 8:43am UTC](https://forum.juce.com/t/juce8-based-plugins-on-wine-rendering-issues/69500/8 "2026-09-14T08:43:29Z")

</div>

There’s no “looks like” here, you’re being too kind. Straight up clanker output, forum rules be damned.
