Closed GoogleCodeExporter closed 8 years ago
How do you include Closure to your web app?
Can you also try out with developer tools, if you just type in
goog.Disposable.instances_, is it found?
Original comment by marja@google.com
on 14 Aug 2012 at 8:19
Oh, and you can also try out with leak-finder/doc/test-page.html, I just added
it to the repo.
Original comment by marja@google.com
on 14 Aug 2012 at 8:20
Hum ... oups .. i've just downloaded closure from the repos as i thought it was
used by leak-finder but my app don't use closure for the moment :( sorry
Original comment by maxproc...@gmail.com
on 14 Aug 2012 at 10:19
The leak definition closure-disposable can only be used with web apps which use
Closure.
Original comment by marja@google.com
on 14 Aug 2012 at 10:22
[deleted comment]
I have tried out with leak-finder/doc/test-page.html and got the right result.
But the python's " Bad file descriptor" still exists as below:
NFO: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
INFO:root:Retrieving creating stack traces for leaking objects
Exception in thread Thread-2:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "../../pyautolib/remote_inspector_client.py", line 582, in run
asyncore.loop(timeout=1, count=1, use_poll=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/asyncore.py", line 218, in loop
poll_fun(timeout, map)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/asyncore.py", line 144, in poll
r, w, e = select.select(r, w, e, timeout)
error: (9, 'Bad file descriptor')
INFO:root:Scanning for new leaks.
New memory leaks found:
Leak: 1 MyObj
allocated at:
goog.Disposable
Object.goog.base
new MyObj
MyObjCreator.Create
http://tmp.com/leak-finder/doc/test-page.html:23:23
--------------------------
As you see, my python version is `2.7` and my OS is `OSX 10.8`
Could you tell me whether your `leak-finder` works fine or not ?
Original comment by shouqian...@gmail.com
on 24 Aug 2012 at 3:41
Issue 6 is about the bad file descriptor error, please comment there. It also
contains some instructions on how to debug this, could you run the program with
the debug informatino on and send me the logs?
And no, jsleakcheck (or some other component) is not working like it should; we
should not print out the "bad file descriptor" message. :)
Original comment by marja@google.com
on 24 Aug 2012 at 7:29
Original issue reported on code.google.com by
maxproc...@gmail.com
on 14 Aug 2012 at 8:04