Thank you for the reply!
We have created a custom class to ensure the DPI context etc is correct when on the secondary screen and added some logging.
To our surprise, both logs show the plugin editor created and Ableton freezes after having the plugin editor shown.
We created some variations of the host plugin, even with OpenGL disabled for the hosted plugin but there was no difference.
Both displays are on the same RTX 4090, and tried connecting the secondary on the display port instead of HDMI but it did not make a difference.
Yes, we can ask for the Ableton Log to see if there is anything useful there.
We have both modes, embedded and non embedded (in its own window), but the result is the same.
We could create a simple project with Juce’s HostPluginDemo and try to reproduce it with that.
Here is the log when opening on the primary display (no Ableton freeze):
2025-11-05 19:22:58.462] [Thread:22840] === load_plugin_editor: START ===
[2025-11-05 19:22:58.462] [Thread:22840] load_plugin_editor: DPI hosting and awareness set
[2025-11-05 19:22:58.462] [Thread:22840] load_plugin_editor: Using SEPARATE window mode
[2025-11-05 19:22:58.464] [Thread:22840] load_plugin_editor: Window added to desktop
[2025-11-05 19:22:58.467] [Thread:22840] load_plugin_editor: Window made visible and brought to front
[2025-11-05 19:22:58.467] [Thread:22840] dp_ensureWindowGpuAffinity: Starting GPU affinity check for HWND=0x00000000000F0890
[2025-11-05 19:22:58.467] [Thread:22840] dp_ensureWindowGpuAffinity: Window visible=YES
[2025-11-05 19:22:58.468] [Thread:22840] dp_ensureWindowGpuAffinity: UpdateWindow succeeded
[2025-11-05 19:22:58.519] [Thread:22840] dp_ensureWindowGpuAffinity: Sleep completed (actual time: 47ms)
[2025-11-05 19:22:58.519] [Thread:22840] Monitor Info: Bounds(0,0 - 5120,1440) WorkArea(0,0 - 5120,1392) Primary=YES
[2025-11-05 19:22:58.519] [Thread:22840] Window Rect: (560,240 - 1360,840) Size: 800x600 HWND: 0x00000000000F0890
[2025-11-05 19:22:58.519] [Thread:22840] Thread DPI Awareness: PER_MONITOR_AWARE (2)
[2025-11-05 19:22:58.519] [Thread:22840] dp_setWindowDpiHosting: Function not available or window is null
[2025-11-05 19:22:58.519] [Thread:22840] dp_isWindowOnSecondaryMonitor: Window is on PRIMARY monitor (bounds: 0,0 - 5120,1440)
[2025-11-05 19:22:58.519] [Thread:22840] Plugin Info: Name=‘Acid V’ Manufacturer=‘Arturia’ Version=‘1.1.5.6367’ Format=‘VST3’ IsInstrument=YES
[2025-11-05 19:22:58.520] [Thread:22840] Plugin File: ‘C:\Program Files\Common Files\VST3\Acid V.vst3’ UID=VST3-Acid V-1529c90b-edccc18e
[2025-11-05 19:22:58.520] [Thread:22840] load_plugin_editor: About to call getPluginEditor() - THIS IS WHERE CRASHES MAY OCCUR
[2025-11-05 19:22:58.520] [Thread:22840] NOTE: If the log ends here without SUCCESS message, the plugin crashed during editor creation
[2025-11-05 19:22:58.520] [Thread:22840] ======================================================================
[2025-11-05 19:22:58.520] [Thread:22840] COMPLETE SYSTEM STATE DUMP BEFORE PLUGIN EDITOR CREATION
[2025-11-05 19:22:58.520] [Thread:22840] ======================================================================
[2025-11-05 19:22:58.520] [Thread:22840] — WINDOW STATE —
[2025-11-05 19:22:58.520] [Thread:22840] HWND: 0x00000000000F0890
[2025-11-05 19:22:58.520] [Thread:22840] IsVisible: YES
[2025-11-05 19:22:58.521] [Thread:22840] IsEnabled: YES
[2025-11-05 19:22:58.521] [Thread:22840] Window Style: 0x0000000096000000
[2025-11-05 19:22:58.521] [Thread:22840] WS_CLIPCHILDREN: YES
[2025-11-05 19:22:58.521] [Thread:22840] WS_CLIPSIBLINGS: YES
[2025-11-05 19:22:58.521] [Thread:22840] Extended Style: 0x0000000000040008
[2025-11-05 19:22:58.521] [Thread:22840] Window Position: (560, 240) Size: 800x600
[2025-11-05 19:22:58.521] [Thread:22840] Client Size: 800x600
[2025-11-05 19:22:58.521] [Thread:22840] Parent HWND: 0x0000000000000000
[2025-11-05 19:22:58.522] [Thread:22840] — MONITOR & DPI —
[2025-11-05 19:22:58.522] [Thread:22840] Monitor Info: Bounds(0,0 - 5120,1440) WorkArea(0,0 - 5120,1392) Primary=YES
[2025-11-05 19:22:58.522] [Thread:22840] Window Rect: (560,240 - 1360,840) Size: 800x600 HWND: 0x00000000000F0890
[2025-11-05 19:22:58.522] [Thread:22840] Thread DPI Awareness: PER_MONITOR_AWARE (2)
[2025-11-05 19:22:58.522] [Thread:22840] Window DPI: 96 (Scale: 100.00%)
[2025-11-05 19:22:58.522] [Thread:22840] Window DPI Hosting Behavior: MIXED (1)
[2025-11-05 19:22:58.522] [Thread:22840] — THREAD & PROCESS —
[2025-11-05 19:22:58.522] [Thread:22840] Thread ID: 22840, Process ID: 22500
[2025-11-05 19:22:58.523] [Thread:22840] — MEMORY —
[2025-11-05 19:22:58.523] [Thread:22840] Memory Load: 36% Available Physical: 20195 MB / 31912 MB
[2025-11-05 19:22:58.523] [Thread:22840] Process Memory: Working Set: 1086 MB, Peak: 1086 MB
[2025-11-05 19:22:58.523] [Thread:22840] — WINDOWS VERSION —
[2025-11-05 19:22:58.523] [Thread:22840] Windows Version: 10.0 Build 26100
[2025-11-05 19:22:58.523] [Thread:22840] ======================================================================
[2025-11-05 19:22:58.523] [Thread:22840] END OF SYSTEM STATE DUMP
[2025-11-05 19:22:58.523] [Thread:22840] ======================================================================
[2025-11-05 19:22:58.751] [Thread:22840] load_plugin_editor: SUCCESS! Plugin editor created without crash!
[2025-11-05 19:22:58.977] [Thread:22840] === load_plugin_editor: COMPLETED SUCCESSFULLY ===
and the log when loading it on the secondary display (Ableton freezes)
[2025-11-05 19:19:01.842] [Thread:2596] === load_plugin_editor: START ===
[2025-11-05 19:19:01.842] [Thread:2596] load_plugin_editor: DPI hosting and awareness set
[2025-11-05 19:19:01.843] [Thread:2596] load_plugin_editor: Using SEPARATE window mode
[2025-11-05 19:19:01.845] [Thread:2596] load_plugin_editor: Window added to desktop
[2025-11-05 19:19:01.848] [Thread:2596] load_plugin_editor: Window made visible and brought to front
[2025-11-05 19:19:01.849] [Thread:2596] dp_ensureWindowGpuAffinity: Starting GPU affinity check for HWND=0x000000000035062A
[2025-11-05 19:19:01.849] [Thread:2596] dp_ensureWindowGpuAffinity: Window visible=YES
[2025-11-05 19:19:01.849] [Thread:2596] dp_ensureWindowGpuAffinity: UpdateWindow succeeded
[2025-11-05 19:19:01.900] [Thread:2596] dp_ensureWindowGpuAffinity: Sleep completed (actual time: 47ms)
[2025-11-05 19:19:01.900] [Thread:2596] Monitor Info: Bounds(5120,157 - 7040,1237) WorkArea(5120,157 - 7040,1237) Primary=NO
[2025-11-05 19:19:01.900] [Thread:2596] Window Rect: (5680,397 - 6480,997) Size: 800x600 HWND: 0x000000000035062A
[2025-11-05 19:19:01.900] [Thread:2596] Thread DPI Awareness: PER_MONITOR_AWARE (2)
[2025-11-05 19:19:01.900] [Thread:2596] dp_setWindowDpiHosting: Function not available or window is null
[2025-11-05 19:19:01.900] [Thread:2596] dp_isWindowOnSecondaryMonitor: Window is on SECONDARY monitor (bounds: 5120,157 - 7040,1237)
[2025-11-05 19:19:01.901] [Thread:2596] Plugin Info: Name=‘Acid V’ Manufacturer=‘Arturia’ Version=‘1.1.5.6367’ Format=‘VST3’ IsInstrument=YES
[2025-11-05 19:19:01.901] [Thread:2596] Plugin File: ‘C:\Program Files\Common Files\VST3\Acid V.vst3’ UID=VST3-Acid V-1529c90b-edccc18e
[2025-11-05 19:19:01.901] [Thread:2596] load_plugin_editor: About to call getPluginEditor() - THIS IS WHERE CRASHES MAY OCCUR
[2025-11-05 19:19:01.901] [Thread:2596] NOTE: If the log ends here without SUCCESS message, the plugin crashed during editor creation
[2025-11-05 19:19:01.901] [Thread:2596] ======================================================================
[2025-11-05 19:19:01.901] [Thread:2596] COMPLETE SYSTEM STATE DUMP BEFORE PLUGIN EDITOR CREATION
[2025-11-05 19:19:01.901] [Thread:2596] ======================================================================
[2025-11-05 19:19:01.901] [Thread:2596] — WINDOW STATE —
[2025-11-05 19:19:01.901] [Thread:2596] HWND: 0x000000000035062A
[2025-11-05 19:19:01.902] [Thread:2596] IsVisible: YES
[2025-11-05 19:19:01.902] [Thread:2596] IsEnabled: YES
[2025-11-05 19:19:01.902] [Thread:2596] Window Style: 0x0000000096000000
[2025-11-05 19:19:01.902] [Thread:2596] WS_CLIPCHILDREN: YES
[2025-11-05 19:19:01.902] [Thread:2596] WS_CLIPSIBLINGS: YES
[2025-11-05 19:19:01.902] [Thread:2596] Extended Style: 0x0000000000040008
[2025-11-05 19:19:01.902] [Thread:2596] Window Position: (5680, 397) Size: 800x600
[2025-11-05 19:19:01.902] [Thread:2596] Client Size: 800x600
[2025-11-05 19:19:01.903] [Thread:2596] Parent HWND: 0x0000000000000000
[2025-11-05 19:19:01.903] [Thread:2596] — MONITOR & DPI —
[2025-11-05 19:19:01.903] [Thread:2596] Monitor Info: Bounds(5120,157 - 7040,1237) WorkArea(5120,157 - 7040,1237) Primary=NO
[2025-11-05 19:19:01.903] [Thread:2596] Window Rect: (5680,397 - 6480,997) Size: 800x600 HWND: 0x000000000035062A
[2025-11-05 19:19:01.903] [Thread:2596] Thread DPI Awareness: PER_MONITOR_AWARE (2)
[2025-11-05 19:19:01.903] [Thread:2596] Window DPI: 96 (Scale: 100.00%)
[2025-11-05 19:19:01.903] [Thread:2596] Window DPI Hosting Behavior: MIXED (1)
[2025-11-05 19:19:01.903] [Thread:2596] — THREAD & PROCESS —
[2025-11-05 19:19:01.904] [Thread:2596] Thread ID: 2596, Process ID: 3440
[2025-11-05 19:19:01.904] [Thread:2596] — MEMORY —
[2025-11-05 19:19:01.904] [Thread:2596] Memory Load: 36% Available Physical: 20347 MB / 31912 MB
[2025-11-05 19:19:01.904] [Thread:2596] Process Memory: Working Set: 1075 MB, Peak: 1075 MB
[2025-11-05 19:19:01.904] [Thread:2596] — WINDOWS VERSION —
[2025-11-05 19:19:01.904] [Thread:2596] Windows Version: 10.0 Build 26100
[2025-11-05 19:19:01.904] [Thread:2596] ======================================================================
[2025-11-05 19:19:01.904] [Thread:2596] END OF SYSTEM STATE DUMP
[2025-11-05 19:19:01.905] [Thread:2596] ======================================================================
[2025-11-05 19:19:02.129] [Thread:2596] load_plugin_editor: SUCCESS! Plugin editor created without crash!
[2025-11-05 19:19:02.350] [Thread:2596] === load_plugin_editor: COMPLETED SUCCESSFULLY ===