mpegts.js icon indicating copy to clipboard operation
mpegts.js copied to clipboard

内存泄露问题

Open qiangbro opened this issue 2 years ago • 2 comments

打开demo页,播一个ws-flv直播,播大约1天,浏览器报out of memory。 可使用Chrome的F12工具录制,录制7分钟,可观察录制过程中,每秒钟都会产生一点点未释放的内存。 选中会发现,存在相当多的n引用,图中有672个n,随着时间一直增加 image

image 我已经把日志注释了,应该可排除是日志导致问题

我这边使用iframe复制了10份demo页同时播,崩溃速度更快。

<!DOCTYPE html>
<html>
<head>
	<title>video Client v1</title>
	<style>
		.player-iframe {width:450px;height:540px}
	</style>
</head>
<body>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>

<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>

</body>
</html>

image

qiangbro avatar May 23 '22 12:05 qiangbro

请问解决了嘛

Greasen avatar May 18 '23 06:05 Greasen

@qiangbro 我也遇到了一样的问题,请问解决了吗

Warehouse-Model avatar Feb 19 '24 02:02 Warehouse-Model