Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 706 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 706 Bytes

ionic Memory issue with PDF and videos

This project contains an ionic app with two screens: one is empty (Items), the second one (PDF) contains a local PDF rendered with PDF.js and two videos.

Going back and forth between these two views causes a memory leak in iOS, doing this for a couple of minutes crashes the app. I haven't tested it on Android.

For reproducing the crash I'm using the following script, just copy and paste it in Safari developer console:

disp = true;
window.setInterval(function(){
disp = false
window.location="#/recetario/1";
window.setTimeout(function(){
	window.history.back();
	window.setTimeout(function(){
		disp = true;
	}, 5000)
},5000);
}, 10000);