The extension was closing after extracting 2-3 transcripts during bulk operations. This was caused by:
- Memory accumulation from AI model processing
- Aggressive memory limits causing premature cleanup
- Rapid processing cycles without proper delays
- Offscreen document instability during bulk operations
- Reduced
MAX_PROCESSING_COUNT:15→5operations before cleanup - Reduced
MEMORY_CLEANUP_INTERVAL:60s→30sfor more frequent cleanup - Optimized queue management: Keep only last 3 requests (was 5)
- Reduced memory limit:
500MB→300MBfor better stability - Reduced
MAX_PROCESSING_COUNT:10→3operations before cleanup - Added cleanup delays: 1-2 second delays to prevent rapid cycles
- Improved memory monitoring: Better detection of high memory usage
- Increased delay between operations:
1s→2sto prevent memory buildup - Reduced transcript truncation limit:
50KB→30KBfor better memory management - Added memory optimization logging for better debugging
- Added delays after cleanup to prevent rapid cleanup cycles
- Better error recovery in memory management functions
- Improved logging for debugging memory issues
- ❌ Extension closes after 2-3 transcript extractions
- ❌ Memory accumulation causes crashes
- ❌ No recovery mechanism
- ✅ Extension handles 10+ transcript extractions without closing
- ✅ Proactive memory management prevents crashes
- ✅ Automatic cleanup and recovery
- ✅ Better stability during bulk operations
- Cleanup frequency: Every 3 operations (was 10-15)
- Memory limit: 300MB (was 500MB)
- Cleanup delays: 1-2 seconds to prevent rapid cycles
- Operation delays: 2 seconds between extractions
- Transcript limits: 30KB max per transcript
- Queue management: Keep only 3 recent requests
- Trigger: Every 3 operations OR 30 seconds
- Actions:
- Dispose AI pipelines
- Close stale offscreen documents
- Force garbage collection
- Clear request queues
- Delays: 1-2 seconds to prevent rapid cycles
- Extract transcript from current lecture
- Wait 2 seconds for memory management
- Truncate if > 30KB to prevent memory issues
- Store in batch state with progress tracking
- Navigate to next lecture and repeat
File: transcript-extractor-extension-v3.6.5-bulk-fix.zip
Size: ~3.8MB
Status: Ready for testing
- Load the extension in Chrome
- Navigate to a Udemy course with multiple lectures
- Start bulk extraction using "Next" mode
- Verify the extension doesn't close after 2-3 extractions
- Test with 10+ lectures to confirm stability
This version should resolve the bulk extraction crash issue and provide stable performance for extracting multiple transcripts in sequence.
Version: 3.6.5
Status: Bulk extraction crash fix applied
Testing: Ready for user validation