- app/core/fx_realtime.py: FxRealtimeSession._spawn() ton trong SF_FX_BRIDGE_PATH
(validate os.path.isfile; thu tu SF_JUCE_FX_BRIDGE_PATH -> SF_FX_BRIDGE_PATH ->
autodiscover). Truoc day env legacy bi bo qua nen test khong ep duoc bridge cu.
- app/core/render_engine.py: render_project bit_depth=32 -> subtype FLOAT. Truoc
day 32 roi vao else -> PCM_16, tuc default bit_depth=32 ghi ra 16-bit sai.
- app/api/v1/plugins.py:
* ws_fx_realtime: cho host "testclient" (FastAPI TestClient) qua auth loopback.
* _running_sonicforge_pids(): + os.getpid()/os.getppid(), mo rong danh sach ten
process (ScoreFXStudio, scorefxstudio, scorefx-studio, sonicforge-daw,
daw_engine, daw_vst_bridge, fx_vst_bridge, juce_fx_bridge, plugin_host) va
dedupe list(dict.fromkeys()).
* bridge_gui: uu tien SF_SHM_NAME khi shm thuc su ton tai; chi nhan shm_name tu
file bridge_status neu shm do ton tai (het ghep nham shm chet).
- tests/test_daw_phase5.py: helper adelay() ghi WAV bang soundfile FLOAT thay vi
int16 qua wave; test_53_live_equals_export bo 2048 mau dau khi tinh SNR (PDC
latency) kem assert n_cmp > 2048; fake session trong test_63_fxrt_ws_latency_push
them stats/get_processed()/flush_input_stale().
Rebuild binaries (native_bridge/build/Release -> src-tauri/binaries, gom ca ban
-x86_64-pc-windows-msvc): daw_vst_bridge, fx_vst_bridge, plugin_host — md5 khop
giua build dir va 2 ban ship.
Verify: python -m pytest tests -q -> 184 passed (85.38s); smoke bit_depth
16/24/32 -> PCM_16/PCM_24/FLOAT, bien do khop.
Root-cause hypothesis: fx_vst_bridge parked embed window offscreen (-20000,-20000)
during VST3 editor attach; Ozone 11 GL init null-derefs (c0000005 in
iZOzone11Core.dll+18f6b92) on Intel ICD. Reaper hosts window on-screen -> OK.
- RenderFxJob.cpp: env toggle SF_FXGUI_ATTACH_ONSCREEN=1 -> SetWindowPos(100,100)
before fxGuiLoadAttach, park back offscreen after attach succeeds
- main_fx.cpp: FxCrashDumpHandler prints [CRASH] in <module>+0x<offset> and
[CRASH] minidump: <path> so logs name the faulting plugin DLL directly
- app.jsx VstGuiEmbed: frameLoadedRef + 90s watchdog -> onDead if bridge alive
but no frame (no more infinite 'Dang tai plugin VST...' flash); clearer onDead
toasts with %TEMP%\sf_dumps\fx_bridge_crash_*.dmp hint (track + master)
- rebuild fx_vst_bridge + daw_vst_bridge, NSIS/MSI v=202609021809
- SandboxVst2Host::loadSerializedState: queuePreset non-blocking (byte-identical
echo never matched -> waitApply always burned 20s TIMEOUT on the audio thread;
VST2 restore runs via runOnMain so every startup silenced ALL audio ~20s = Qin
'failed that su'). Bridge now holds reloading + defers saveStateJob until the
child republishes a different chunk (clobber protection, no audio block).
- sf-fx-realtime clear_queue('loop'): truncate old tail to KEEP=4 blocks
(~21ms) instead of keeping FILL 24 (~128ms) -> wrap downbeat no longer ~110ms
late; skipFade crossfade masks the truncation jump, seam crossfade recount.
- bump ?v= 202608291721 (app.jsx x2, index.html x2); deploy 3 _internal + dist.
- RealtimeFxLoop: timeBeginPeriod(1) + sleep_until thay Sleep(1) -> loopMax 32.9->24.8ms
- plugins.py _pump_output: stall-fade 8 block gain 1->0 khi gap > 5.5*block_sec (~29ms),
burst send, fade-in 0->1 khi resume; poll dung asyncio.to_thread(time.sleep) vi asyncio.sleep
bi cap 15.6ms tren Win11 (IOCP) du timeBeginPeriod
- fx_realtime.py: stats dem publish/drop/stale/read cho diagnostics
- rebuild bridge binary
Real-input clicks were landing in whatever window sat above the anchored
plugin window (foreground Chrome in tests) — WindowFromPoint at the click
point returned the browser, so the editor never saw the input. Attach to
the foreground thread, SetForegroundWindow + BringWindowToTop before the
click (still non-TOPMOST — no floating regression from 80c663e).