New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hotshot.stats.load fails with AssertionError #39948
Comments
trying to do a hotshot.stats.load("myprofiling_file.prof") fails with assertionerror assert not self._stack python 2.3.2 on WinXP |
Logged In: YES While the original report isn't very useful, I've ran into Python 2.3.4 (#2, Jul 5 2004, 09:15:05)
[GCC 3.3.4 (Debian 1:3.3.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> import hotshot.stats
>>> stats = hotshot.stats.load('roundup.prof')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/hotshot/stats.py", line 12, in load
return StatsLoader(filename).load()
File "/usr/lib/python2.3/hotshot/stats.py", line 51, in load
assert not self._stack
AssertionError
>>> I'm not sure who's baby hotshot really is, so I'm leaving |
Logged In: YES Hmm, the file was too big, even though it was compressed. |
Logged In: YES Could this be related to 1019882? |
Logged In: YES I ran into this today, so I decided to look into it. It It seems on the surface that tracer_callback ought to handle |
Logged In: YES Well, the superficial fix doesn't work (sorry for posting By the way, I'm testing with 2.4b1. |
Logged In: YES See 900092-patch.txt for a candidate patch against Python This fix restore the tracing of a 'return' event for |
Logged In: YES 900092-patch-2.txt fixes the test suite for the extra return |
Logged In: YES Patches applied for Python 2.4.2 and 2.5a1 |
Has this ever been reported again since it was closed ? I just got it today (python 2.5). The prof file is 11MB, I'll see if I can reproduce the bug with a smaller one. |
Ok, I reduced the prof file to 38K. Can I upload an attachment here ? I don't see how. |
I think only OPs and project members can upload. Email it to me, George (brett at python.org), mention the bug # and I will upload it. |
Attaching the file George made. |
Has test, patch and sample data for reproducing. |
I added some prints in the hotshot.stats.load function, this lead to
|
Is it worth leaving this open, given this from section 26.5 of the 2.7 docs. "For common usage it is recommended to use cProfile instead. hotshot is not maintained and might be removed from the standard library in the future." |
Closing as hotshot is not maintained and is not documented in py3k. |
I don't think this should have been closed just yet. If the issue still exists in 2.x, it could still be fixed in the remaining 2.6 release, or any of the future 2.7 releases. You are right that it won't apply to 3.x since hotshot is gone there. |
Who of our overworked volunteers is going to do the work, given that hotshot doesn't even feature on the maintainers list? |
Closing as no reply to msg110827. |
It was brought to my attention that this is still an issue and that it was closed. Reopening. |
IMHO reopening this was a complete and utter waste of core devs time, its already passed its tenth birthday!!! |
It remains a valid issue. Time is not a factor. |
You clearly haven't bothered to read that there is *NO* maintainer, that the docs for 2.x recommend that you *DON'T* use it, that its been removed from 3.x and that nobody has yet volunteered to do anything with it. If its so important, why don't you do the work instead of trying to palm it off onto people who have far more important things to consider? I'll therefore repeat so that you very clearly get my message, this is a complete and utter waste of core devs time. |
Brian Curtin is a core developer, perhaps you should trust his judgement. |
Then God help Python is all I can say. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: