Find solutions to the most frequently encountered problems when using VisionForge.
Problem: Server fails to start with port errors
Solution:
# Check if port is in use
netstat -ano | findstr :8000
# Kill the process (Windows)
taskkill /PID <PID> /F
# Kill the process (macOS/Linux)
kill -9 <PID>
# Or use different port
python manage.py runserver 8080Problem: django.db.migrations.exceptions.InconsistentMigrationHistory
Solution:
# Delete database and migrate fresh
rm db.sqlite3
python manage.py migrateProblem: Access-Control-Allow-Origin header missing
Solution:
- Ensure both backend and frontend are running
- Check
settings.pyCORS configuration:CORS_ALLOWED_ORIGINS = [ "http://localhost:3000", "http://localhost:5173", ]
Problem: npm ERR! code ERESOLVE
Solution:
# Clear npm cache
npm cache clean --force
# Delete node_modules and package-lock.json
rm -rf node_modules package-lock.json
# Reinstall
npm installProblem: Vite dev server shows compilation errors
Solution:
# Check Node.js version
node --version # Should be 16+
# Update to latest version
npm install -g npm@latest
npm installProblem: Connections show as red (invalid)
Common Causes:
- Shape mismatch between layers
- Incompatible layer types
- Missing required parameters
Solutions:
-
Check shape compatibility:
- Hover over connection to see shapes
- Review Layer Connection Rules
-
Verify layer configuration:
- Click each layer to check parameters
- Ensure all required fields are filled
-
Fix common shape issues:
Conv2D → Linear (needs Flatten) Input[1,3,224,224] → Conv2D → Flatten → Linear
Problem: Blocks not connected to the main graph
Solution:
- Connect orphaned blocks to the main flow
- Or delete them if unnecessary
- Check validation panel for warnings
Problem: Shape inference fails for a layer
Common Causes:
- Missing input shape configuration
- Invalid parameter values
- Unsupported layer combinations
Solutions:
-
Set input shape:
{ "inputShape": { "dims": [1, 3, 224, 224] } } -
Check layer parameters:
- Verify kernel sizes are positive
- Ensure stride values are reasonable
- Check padding values
-
Review layer sequence:
- Some layers require specific input types
- Check Shape Inference Guide
Problem: Export fails with validation errors
Solution:
-
Fix all validation errors:
- Check the validation panel at the bottom
- All red indicators must be resolved
-
Ensure complete architecture:
- Input layer must be connected
- Output layer should be present
- No circular dependencies
-
Verify layer configuration:
- All required parameters filled
- Parameter values in valid ranges
Problem: Exported Python code doesn't run
Common Issues:
-
Missing imports:
import torch import torch.nn as nn import torch.nn.functional as F
-
Shape mismatches:
- Check calculated vs actual tensor shapes
- Verify flatten operations
-
Framework-specific issues:
- PyTorch vs TensorFlow syntax differences
- Parameter naming conventions
Debug Steps:
# Test your model step by step
model = YourModel()
x = torch.randn(1, 3, 224, 224)
# Forward pass with error catching
try:
output = model(x)
print(f"Success! Output shape: {output.shape}")
except Exception as e:
print(f"Error: {e}")Problem: Can't select or move blocks
Solutions:
- Refresh the page - Simple browser refresh
- Clear browser cache:
- Ctrl+Shift+R (hard refresh)
- Or clear cache in browser settings
Problem: Canvas navigation issues
Solutions:
- Check browser compatibility - Use Chrome, Firefox, or Edge
- Try keyboard shortcuts:
Ctrl + Mouse wheelfor zoomClick + dragfor pan
Problem: Interface is slow or laggy
Solutions:
-
Reduce canvas complexity:
- Use group blocks for large architectures
- Delete unused blocks
-
Browser optimization:
- Close unnecessary tabs
- Update browser to latest version
Problem: AI assistant features not available
Solution:
-
Check .env file:
GEMINI_API_KEY=your_actual_api_key_here
-
Verify API key validity:
- Check Google AI Studio dashboard
- Ensure key is active
-
Restart servers:
# Stop both servers and restart python manage.py runserver npm run dev
Problem: SQLite database access errors
Solution:
# Stop Django server
# Delete database file
rm db.sqlite3
# Recreate database
python manage.py migrateProblem: Django migration errors
Solution:
# Reset migrations
python manage.py migrate --fake
python manage.py migrate- Works best with latest versions
- Enable hardware acceleration in settings
- May need to enable WebRTC features
- Check about:config for media settings
- Limited support - some features may not work
- Use Chrome for full functionality
- Check the validation panel - Bottom of the interface
- Hover over elements - Tooltips provide helpful information
- Review the documentation:
-
GitHub Issues:
- Search existing issues first
- Provide detailed error messages
- Include screenshots when helpful
-
Discord Community:
- Real-time help from other users
- Share your architecture for feedback
When reporting problems, include:
-
System Information:
- Operating system
- Browser version
- Python and Node.js versions
-
Error Details:
- Full error messages
- Steps to reproduce
- Screenshots if applicable
-
Architecture Details:
- Export your architecture (JSON)
- Describe expected vs actual behavior
To avoid common issues:
- Check system requirements
- Update browsers and dependencies
- Set up environment variables
- Save work frequently
- Validate after each major change
- Check connection colors (green = valid)
- Fix all validation errors
- Verify all parameters are set
- Test with sample data
- Clear browser cache weekly
- Update dependencies monthly
- Backup important projects
Still stuck? → Contact Support