找不到容器:goog.Disposable.instances _在为javascript工具使用泄漏查找器时出错

Container not found: goog.Disposable.instances_ error while using leak-finder-for-javascript tool

本文关键字:泄漏 工具 查找 出错 javascript 在为 goog Disposable instances 找不到      更新时间:2023-09-26

我正在使用javascript泄漏查找器工具来查找javascript中的内存泄漏。为此,我在Windows 7 上使用Python 2.5

INFO:root:Using leak definition closure-disposable
INFO:root:Reading suppressions from "closure-disposable-suppressions.txt"
INFO:root:Taking heap snapshot
INFO:root:Analyzing heap snapshot
ERROR:root:Error analyzing snapshot: <class 'leak_finder.Error'>
Traceback (most recent call last):
  File "jsleakcheck.py", line 345, in <module>
    sys.exit(main())
  File "jsleakcheck.py", line 340, in main
    result = leak_checker.Run(inspector_client)
  File "jsleakcheck.py", line 151, in Run
    leaks = self._FindLeaks(client)
  File "jsleakcheck.py", line 189, in _FindLeaks
    self.leak_definition.stacktrace_suffix).FindLeaks(nodes))
  File "C:'Projects'retail'depot_tools'file'leak-finder'src'leak_finder.py", lin
e 571, in FindLeaks
    raise Error('Container not found: %s' % edge_description)
leak_finder.Error: Container not found: goog.Disposable.instances_

当我试图检查谷歌。Disposable.instances _在chrome控制台中,它向我显示了有泄漏的对象,但随后它显示了此错误。

这个问题在错误跟踪器中进行了讨论:

http://code.google.com/p/leak-finder-for-javascript/issues/detail?id=8

此错误消息的最可能原因:

  • 你检查的是一个错误的页面(Leak Finder总是检查第一个选项卡;在该选项卡上打开开发工具会混淆它)
  • 您正试图将闭包泄漏定义与不使用闭包的页面一起使用