Integration Issues
npm/yarn/pnpm Installation Failed
npm/yarn/pnpm Installation Failed
Problem Description: Errors occur when installing SDK using package managers.Solution:
- Check if Node.js version meets requirements (18.0+)
- Clear cache and reinstall:
- Check network connection and mirror source configuration
- Use the latest stable Node.js version
- Regularly update dependencies
- Use the same Node.js version in CI/CD
TypeScript Type Errors
TypeScript Type Errors
Problem Description: Type errors occur when using TypeScript.Solution:
- Check if TypeScript version meets requirements (5.0+)
- Ensure
tsconfig.jsonis configured correctly: - Reinstall dependencies
Runtime Issues
SDK Initialization Failed
SDK Initialization Failed
Problem Description: SDK initialization returns an error.Common Causes:
- Network connection issues
- Incorrect AppID
- Server unavailable
- Browser not supported
- Check network connection
- Verify if AppID is correct
- Confirm server status
- Check browser version and compatibility
Character Load Failed
Character Load Failed
Problem Description: Character file loading fails, showing error messages.Possible Causes:
- Network connection issues
- Incorrect character ID
- Unsupported character resource format
- Browser cache issues
- Check network connection status
- Verify if character ID is valid
- Check browser console error messages
- Clear browser cache
WebSocket Connection Failed
WebSocket Connection Failed
Problem Description: WebSocket connection cannot be established.Solution:
- Check network connection
- Confirm if
sessionTokenis set correctly - Check firewall and security settings
- View browser console error messages
Performance Issues
Low Rendering Frame Rate
Low Rendering Frame Rate
Problem Description: Digital human rendering frame rate is lower than expected, affecting user experience.Possible Causes:
- Insufficient browser performance
- Insufficient device performance
- Insufficient memory
- Using WebGL instead of WebGPU
- Use modern browsers that support WebGPU
- Reduce rendering resolution
- Close unnecessary tabs and background processes
- Check if browser hardware acceleration is enabled
High Memory Usage
High Memory Usage
Problem Description: Application memory usage is too high, which may cause crashes.Solution:
- Release unnecessary view instances in a timely manner
- Use
dispose()to clean up resources - Monitor memory usage
- Avoid memory leaks
- When disposing AvatarView instances, must call
dispose()to properly clean up resources.
Long Load Time
Long Load Time
Problem Description: Character loading time is too long, affecting user experience.Optimization Suggestions:
- Preload commonly used characters
- Use resource caching (SDK handles automatically)
- Optimize network connection
- Display loading progress indicators
Feature Questions
How to Determine Current Rendering Backend?
How to Determine Current Rendering Backend?
Solution:
SDK will output the rendering backend information used during initialization, which can be viewed in the browser console logs.Example:
How to Handle Network Errors?
How to Handle Network Errors?
Solution:
SDK provides
onError callback where you can handle errors and implement reconnection logic.How to Customize Camera View?
How to Customize Camera View?
Solution:
Use
avatarView.updateCameraConfig() method to update camera configuration.What Audio Formats Are Supported?
What Audio Formats Are Supported?
Solution:
SDK receives audio data in
ArrayBuffer format through the send() method. For specific format requirements, please refer to the server protocol documentation.How to Set Background Image?
How to Set Background Image?
Solution:
Use
setBackgroundImage() method to set background image.Browser Compatibility
Safari Compatibility Issues
Safari Compatibility Issues
Problem Description: Functionality is abnormal in Safari.Notes:
- Safari has limited WebGPU support, SDK will automatically fallback to WebGL
- Ensure using Safari 14+ version
- Some features may behave differently in Safari
- Update to the latest Safari version
- Check browser console error messages
- Confirm WebGL support is normal
Mobile Browser Support
Mobile Browser Support
Problem Description: Functionality is abnormal in mobile browsers.Notes:
- iOS Safari 14+ and Android Chrome (Android 8+) are supported
- Mobile devices mainly use WebGL rendering backend
- Performance may differ from desktop
- Ensure mobile browser version meets requirements
- Optimize mobile performance settings
- Test on different mobile devices
Debugging Tips
How to Enable Detailed Logging
How to Enable Detailed Logging
Solution:
SDK will output log information in the browser console, which can be viewed in developer tools.
How to Monitor Performance
How to Monitor Performance
Solution:
Use browser developer tools’ performance monitoring features, or implement custom monitoring.
How to Troubleshoot Crash Issues
How to Troubleshoot Crash Issues
Troubleshooting Steps:
- Check browser console error messages
- Use browser developer tools’ memory analysis
- Check if resource cleanup is correct
- Verify network connection status

