prehistoric-hospital-42098
09/02/2025, 9:04 AMWhile testing my AI Voice Assistant UI (LiveKit) in React Native, I noticed that on lower iOS versions (like iOS 13), the app crashes after running for 10–12 minutes. The crash happens because the JS heap memory size grows to around 90 MB. However, the app works fine on iOS 14 and above.
tall-airline-16756
09/02/2025, 9:04 AMtall-airline-16756
09/02/2025, 9:04 AMprehistoric-hospital-42098
09/02/2025, 9:05 AMtall-airline-16756
09/02/2025, 9:05 AMprehistoric-hospital-42098
09/02/2025, 9:30 AMtall-airline-16756
09/02/2025, 9:31 AMAudioSession.stopAudioSession() when you disconnect from the room, and that the LiveKitRoom component is properly unmounted. This can really help clean things up.
• Test on Other iOS Versions: It’s a good idea to check if this happens on iOS versions newer than 13, just to see if it’s something specific to iOS 13.
• Use the Example App: Try running the official LiveKit React Native example app on iOS 13 to see if the issue pops up there too.
• Profile Memory Usage: If you’re comfortable with Xcode, use Instruments to keep an eye on memory allocation during room initialization. This might reveal any leaks or heavy usage causing trouble.
These steps should help us figure out if it’s about cleanup, an iOS 13 quirk, or something with the SDK itself. If you want, I’m here to walk you through any of these—just let me know!
Sources: Documentation/iOSInstallation.md | ci/ios/Podfile.lock | ios/Podfile.lockprehistoric-hospital-42098
09/02/2025, 9:34 AMtall-airline-16756
09/02/2025, 9:35 AMprehistoric-hospital-42098
09/02/2025, 12:45 PMprehistoric-hospital-42098
09/02/2025, 12:46 PMtall-airline-16756
09/02/2025, 12:46 PM