Last Updated: 2025-10-13
Status: β
GPU-ENABLED CEF WORKING
Want to build and test right now?
cd C:\wingman
COMPLETE_FIX_AND_TEST.batThat's it! This single script does everything:
- Clears logs
- Rebuilds plugin
- Installs to VST3 folder
- Verifies all files
- Gives you testing instructions
| Problem | Solution |
|---|---|
| Black screen | Read: CEF_GPU_FIX_SOLUTION.md |
| White screen | Run: diagnose_cef.bat |
| JUCE sliders | Check: CEF_GUARDRAILS.md Rule #2 |
| DAW crashes | Read: CEF_GUARDRAILS.md Rule #4 |
| Build errors | Run: COMPLETE_FIX_AND_TEST.bat |
Read in this order:
-
CEF_GPU_FIX_SOLUTION.md(5 min)- What was wrong
- What was fixed
- How to test
-
CEF_GUARDRAILS.md(15 min)- 10 critical rules
- Common mistakes
- How to avoid breaking CEF
-
COMPLETE_GUIDE.md(30 min)- Deep technical details
- Advanced configuration
- Troubleshooting matrix
READ THIS FIRST: CEF_GUARDRAILS.md
CRITICAL RULES:
- β Enable GPU (don't disable) if user wants fancy UI
- β
Return
WingmanEditor, notGenericAudioProcessorEditor - β Use native window mode (not OSR)
- β Single process mode always
- β Create browser after window exists
BEFORE ANY CHANGES:
- Read all 10 rules in
CEF_GUARDRAILS.md - Check existing code first
- Test in real DAW after changes
- Run
diagnose_after_test.batto verify
COMPLETE_FIX_AND_TEST.bat β RECOMMENDED
- Does everything: clean, build, install, verify
- Use this for first-time setup or after major changes
- Shows detailed progress and testing instructions
rebuild_and_install.bat
- Quick rebuild and install
- Use for minor code changes
- Faster than complete fix
diagnose_cef.bat
- Run BEFORE testing
- Checks if all files are present
- Verifies plugin structure
- Opens detailed report
diagnose_after_test.bat
- Run AFTER testing in DAW
- Analyzes CEF logs
- Identifies specific issues
- Shows what went wrong
rebuild_cef_fix.bat
- Just rebuilds plugin
- Doesn't install
- Use for build verification only
diagnose.bat (if exists)
- Legacy diagnostic script
- Use
diagnose_cef.batinstead
C:\wingman\
β
βββ π DOCUMENTATION
β βββ README.md β Project overview
β βββ CEF_GPU_FIX_SOLUTION.md β Current fix explanation β
β βββ CEF_GUARDRAILS.md β Rules to prevent breakage β
β βββ COMPLETE_GUIDE.md β Deep technical guide
β βββ GETTING_STARTED.md β Beginner tutorial
β βββ CHECKLIST.md β Verification checklist
β βββ QUICK_REFERENCE.md β Command reference
β βββ CHANGES.md β What changed
β βββ INDEX.md β This file
β
βββ π§ SCRIPTS
β βββ COMPLETE_FIX_AND_TEST.bat β All-in-one solution β
β βββ rebuild_and_install.bat β Quick rebuild
β βββ diagnose_cef.bat β Pre-test diagnostics
β βββ diagnose_after_test.bat β Post-test analysis β
β βββ rebuild_cef_fix.bat β Build only
β
βββ πΎ SOURCE CODE
β βββ Source\
β βββ PluginProcessor.cpp β Audio + createEditor()
β βββ PluginEditor.cpp β CEF UI window
β βββ CEFApp.cpp β CEF initialization β οΈ
β βββ CEFSchemeManager.cpp β URL handler
β βββ CEFResourceHandler.cpp β File serving
β
βββ π¨ RESOURCES
β βββ Resources\
β βββ webui\
β βββ index.html β Test UI (purple gradient)
β
βββ ποΈ BUILD
βββ build\
βββ Wingman_artefacts\
βββ Release\VST3\
βββ Wingman.vst3\ β Built plugin
cd C:\wingman
COMPLETE_FIX_AND_TEST.batcd C:\wingman
rebuild_and_install.batcd C:\wingman
diagnose_cef.batcd C:\wingman
diagnose_after_test.batnotepad C:\temp\cef_debug.txt
notepad C:\temp\cef.logcd C:\wingman\build
rmdir /s /q Wingman.dir
cd ..
COMPLETE_FIX_AND_TEST.batPlugin loaded in DAW?
β
ββ NO β Check DAW scanned plugin folder
β Check moduleinfo.json has unique GUIDs
β Rescan plugins in DAW
β
ββ YES β UI opens?
β
ββ NO β DAW crashes?
β Check Windows Event Viewer
β Missing VC++ Redistributable?
β
ββ YES β What do you see?
β
ββ Black Screen
β β Run: diagnose_after_test.bat
β β Check: C:\temp\cef_debug.txt
β β Issue: Browser not created or GPU failed
β
ββ White Screen
β β Run: diagnose_cef.bat
β β Check: CEF DLLs present?
β β Issue: Files missing or wrong paths
β
ββ JUCE Sliders (Gain/Cutoff/Type)
β β Check: PluginProcessor.cpp createEditor()
β β Issue: Returns GenericAudioProcessorEditor
β β Fix: Return WingmanEditor instead
β
ββ Purple Gradient + Sparkle
β β
SUCCESS! CEF is working!
Plugin DLL:
C:\wingman\build\Wingman_artefacts\Release\VST3\Wingman.vst3\Contents\x86_64-win\Wingman.vst3
CEF Files:
C:\wingman\build\Wingman_artefacts\Release\VST3\Wingman.vst3\cef\libcef.dll
Web UI:
C:\wingman\build\Wingman_artefacts\Release\VST3\Wingman.vst3\Contents\Resources\webui\index.html
System Install:
C:\Program Files\Common Files\VST3\Wingman.vst3\
Logs (after running):
C:\temp\cef_debug.txt β CEF initialization log
C:\temp\cef.log β CEF runtime log
- NEVER disable GPU if user wants fancy UI
- NEVER return GenericAudioProcessorEditor in createEditor()
- NEVER use OSR mode (off-screen rendering)
- NEVER initialize CEF in constructor (wait for visibilityChanged)
- ALWAYS read
CEF_GUARDRAILS.mdbefore modifying CEF code
- READ
CEF_GUARDRAILS.mdCOMPLETELY before any changes - TEST in real DAW after modifications
- RUN
diagnose_after_test.batto verify - NEVER improvise - follow established patterns
- ASK if unsure - don't guess and break things
Use this after building to ensure everything works:
- Build completed without errors
- Plugin DLL exists
- libcef.dll present in cef/ folder
- chrome_elf.dll present
- resources.pak present
- icudtl.dat present
- locales/ folder with .pak files
- index.html present in webui/ folder
- Plugin loads in DAW without crash
- UI window opens
- See purple gradient (not black/white)
- See "Hi, CEF is Working!" text
- See animated sparkle emoji
- Can click sparkle (shows alert)
- Window is resizable
- No errors in DAW console
- C:\temp\cef_debug.txt exists
- Shows "CEF INITIALIZED" message
- Shows "browser created successfully"
- C:\temp\cef.log has minimal errors
- No "FAILED" messages in logs
- GPU errors are acceptable (fallback works)
- Start:
GETTING_STARTED.md - Build: Run
COMPLETE_FIX_AND_TEST.bat - Test: Follow on-screen instructions
- Issues: Run
diagnose_after_test.bat
- Architecture:
COMPLETE_GUIDE.md - Rules:
CEF_GUARDRAILS.md - Current Fix:
CEF_GPU_FIX_SOLUTION.md - Reference:
QUICK_REFERENCE.md
- MUST READ:
CEF_GUARDRAILS.mdβ οΈ - Quick Ref:
AI_ASSISTANT_GUIDE.md - Technical:
COMPLETE_GUIDE.md - Current State:
CEF_GPU_FIX_SOLUTION.md
- β Enabled GPU acceleration with fallback
- β Fixed black screen issue
- β Added comprehensive guardrails
- β Created complete test suite
- β Added diagnostic scripts
- β Basic CEF integration
- β GPU disabled (caused black screen)
- β Limited documentation
- β No guardrails
- Check this INDEX.md for common tasks
- Run appropriate diagnostic script
- Read relevant documentation
- Run
diagnose_after_test.bat - Check
C:\temp\cef_debug.txt - Check
C:\temp\cef.log - Read
CEF_GUARDRAILS.mdfor common mistakes - Compare your code with working version
- Read
CEF_GUARDRAILS.mdCOMPLETELY - Check existing code before suggesting changes
- Test changes in real DAW
- Run
diagnose_after_test.batto verify - Don't disable features to "fix" issues - fix root cause
Your setup is SUCCESSFUL if:
- β Plugin builds without errors
- β
All files verified by
diagnose_cef.bat - β Plugin loads in DAW
- β Purple gradient displays
- β "Hi, CEF is Working!" visible
- β Sparkle emoji animating
- β Can click and interact
- β Window resizes smoothly
- β No crashes
- β
cef_debug.txtshows success
# Complete rebuild and test
COMPLETE_FIX_AND_TEST.bat
# Quick rebuild
rebuild_and_install.bat
# Check files before test
diagnose_cef.bat
# Analyze after test
diagnose_after_test.bat
# View logs
notepad C:\temp\cef_debug.txt
notepad C:\temp\cef.log
# Clean build
cd C:\wingman\build
rmdir /s /q Wingman.dir
cd ..
COMPLETE_FIX_AND_TEST.batEverything is set up and documented. Time to build and test!
Start here: COMPLETE_FIX_AND_TEST.bat
Need help: Check this INDEX for relevant documentation
Break something: Read CEF_GUARDRAILS.md to fix it
Good luck! π