Runtime and Environment Errors
Solutions for runtime errors and environment configuration issues
This guide helps you resolve runtime errors and environment-related issues when using AskUI.
Python Vision Agent Errors
Session Info Doesn’t Match Error
Error Message:
Cause: This happens when there’s a mismatch between your client session and the AskUI Controller session.
Solution:
- Open Terminal/PowerShell
- Enter
askui-shell
- Import debug commands:
- Stop all running controllers:
- Try your script again
Controller Connection Issues
Symptoms:
- Timeout errors when starting agent
- “Cannot connect to controller” messages
Solutions:
-
Verify controller is running:
-
Start controller if needed:
-
Check controller logs:
Environment Configuration
Python Path Issues
Problem: Python packages not found or wrong Python version used.
Solutions:
-
Use askui-shell Python environments:
-
Use virtual environments:
Credential Configuration Errors
Problem: Missing or invalid workspace credentials.
Solutions:
-
Using askui-shell (recommended):
- Credentials are automatically loaded
- Run
AskUI-ShowSettings
to verify
-
Using .env files:
-
Direct environment variables:
Memory and Performance Issues
High Memory Usage
Symptoms:
- System slowdown during automation
- Out of memory errors
Solutions:
-
Close agents properly:
-
Limit concurrent agents:
Slow Startup Times
Known Issue: ADE/Controller startup can be slow on some systems.
Workarounds:
-
Keep controller running:
-
Pre-warm the system:
Platform-Specific Issues
Windows Service Errors
Problem: Controller fails to start as Windows service.
Solutions:
-
Run as administrator:
- Right-click askui-shell
- Select “Run as Administrator”
-
Check Windows Defender:
- Add AskUI to exclusions
- Path:
%USERPROFILE%\AppData\Local\Programs\askui
macOS Security Blocks
Problem: macOS blocks AskUI from running.
Solutions:
-
Grant permissions:
-
System Preferences:
- Security & Privacy > Privacy > Accessibility
- Add AskUI Controller
Linux Permission Errors
Problem: Permission denied errors.
Solutions:
-
Fix permissions:
-
Add user to required groups:
Process Management
Zombie Processes
Problem: Old controller processes not cleaning up.
Solutions:
-
Clean up all processes:
-
Manual cleanup (if needed):
Port Conflicts
Problem: Controller can’t start due to port in use.
Default Ports:
- Controller: 6769
- UI Controller: 9000
Solutions:
-
Find conflicting process:
-
Configure different port:
Debugging Runtime Issues
Enable Debug Logging
Capture System Information
Common Error Patterns
Error | Likely Cause | Solution |
---|---|---|
Session doesn't match | Stale controller | Restart controller |
Connection refused | Controller not running | Start controller |
Permission denied | Insufficient privileges | Run as admin/sudo |
Module not found | Wrong Python env | Check virtual env |
Token invalid | Expired credentials | Refresh token |
Next Steps
- Installation issues? See Installation and Setup
- Network problems? Check Network and Connectivity
- Need to report a bug? Visit Reporting Bugs