From 1964544d2d12fe560ebfe29b51ced8fa5a4ccec2 Mon Sep 17 00:00:00 2001 From: locphamtran Date: Fri, 14 Aug 2026 22:29:45 +0700 Subject: [PATCH] =?UTF-8?q?wip(nexus):=20debug=20crash=200xc000041d=20khi?= =?UTF-8?q?=20m=E1=BB=9F=20GUI=20Nexus=20=E2=80=94=20l=C6=B0u=20tr?= =?UTF-8?q?=E1=BA=A1ng=20th=C3=A1i=20=C4=91i=E1=BB=81u=20tra=20(attached()?= =?UTF-8?q?=20hang;=20probe=20exact11=20PASS,=20bridge=20hang;=20g=5Fengin?= =?UTF-8?q?e=20hypothesis=20disproven;=20ch=E1=BB=9D=20ph=C3=A2n=20t=C3=AD?= =?UTF-8?q?ch=20waitscan=20wait-object)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/js/services/nativeBridgeService.js | 2 + app/templates/index.html | 4 +- install/daw_vst_bridge.exe | Bin 1468416 -> 1480704 bytes native_bridge/_main_dump.txt | 1286 ++++++++++++++++ native_bridge/debug/NOTES.md | 50 + native_bridge/debug/driver_autogui.py | 91 ++ native_bridge/debug/driver_narrow.py | 107 ++ native_bridge/debug/driver_once.py | 78 + native_bridge/debug/driver_verify.py | 174 +++ native_bridge/debug/stack_sample.py | 155 ++ native_bridge/debug/stack_sample2.py | 217 +++ native_bridge/debug/stackscan.py | 249 ++++ native_bridge/debug/stackwalk.py | 218 +++ native_bridge/debug/waitscan.py | 198 +++ .../include/NativeInstrumentEngine.h | 31 + native_bridge/src/NativeInstrumentEngine.cpp | 81 ++ native_bridge/src/gui_probe.cpp | 1288 ++++++++++++++++- native_bridge/src/main.cpp | 896 ++++++++++-- 18 files changed, 4996 insertions(+), 129 deletions(-) create mode 100644 native_bridge/_main_dump.txt create mode 100644 native_bridge/debug/NOTES.md create mode 100644 native_bridge/debug/driver_autogui.py create mode 100644 native_bridge/debug/driver_narrow.py create mode 100644 native_bridge/debug/driver_once.py create mode 100644 native_bridge/debug/driver_verify.py create mode 100644 native_bridge/debug/stack_sample.py create mode 100644 native_bridge/debug/stack_sample2.py create mode 100644 native_bridge/debug/stackscan.py create mode 100644 native_bridge/debug/stackwalk.py create mode 100644 native_bridge/debug/waitscan.py diff --git a/app/static/js/services/nativeBridgeService.js b/app/static/js/services/nativeBridgeService.js index d7aec79..1643d19 100644 --- a/app/static/js/services/nativeBridgeService.js +++ b/app/static/js/services/nativeBridgeService.js @@ -86,12 +86,14 @@ * 1. LOAD NEW INSTRUMENT INTO BRIDGE (VST3 / VST2 / SF2 / SF3 / SFZ) * instrumentType: 'VST3' | 'VST2' | 'SF2' | 'SF3' | 'SFZ' * channel: MIDI channel to assign this instrument to (A10 multi-instance). + * NOTE: sends a PANIC (all notes off) first so held notes never stick across a hot-swap. */ loadInstrument: async function (filePath, instrumentType, channel) { this.activeInstrumentType = instrumentType; console.log('[BridgeService] Loading ' + instrumentType + ' asset: ' + filePath + ' ch=' + channel); if (!this._tauri()) return false; try { + await window.__TAURI__.core.invoke('transport_control', { kind: 'panic' }); await window.__TAURI__.core.invoke('load_native_instrument', { path: filePath, instrumentType: INSTRUMENT_TYPE[instrumentType] !== undefined ? INSTRUMENT_TYPE[instrumentType] : 0, diff --git a/app/templates/index.html b/app/templates/index.html index d27d853..44ee2cd 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -39,7 +39,7 @@ - + @@ -50,7 +50,7 @@ - +