Skip to content
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

jasmine stack overflow #16

Open
Inviz opened this issue Apr 24, 2013 · 2 comments
Open

jasmine stack overflow #16

Inviz opened this issue Apr 24, 2013 · 2 comments

Comments

@Inviz
Copy link

Inviz commented Apr 24, 2013

jasmine.js hangs on load, something about setTimeout re-definition. Just including an instrumented file on a page does it. Hard to debug, since I dont actualy get line numbers when stack overflows.

@codegl
Copy link
Owner

codegl commented Apr 27, 2013

TraceGL doesnt actually increase the stackdepth as far as i know, but it does change the code quite severely. If you can attach a simple zip file with an example file i can run, that could help me debug it.

@Timothee
Copy link

I had a similar problem with Raven.js (https://github.com/getsentry/raven-js) for setTimeout and setInterval, in particular, in this function: https://github.com/getsentry/raven-js/blob/master/dist/1.0.8/raven.js#L1069

But I got TraceGL to work first by commenting out the two _helper lines, then by using the -do option from TraceGL so that Raven wouldn't be touched.

I can't attach a zip file but here's how you can reproduce it: download the Raven file (https://raw.github.com/getsentry/raven-js/master/dist/1.0.8/raven.js) and have it with an index.html file like so:

<html>
    <head>
        <script src="raven.js"></script>
    </head>
<body>
</body>
</html>

then serve it however you like (python -m SimpleHTTPServer is always a favorite of mine) and launch TraceGL on it. In the console for http://localhost:2080, you should see Uncaught RangeError: Maximum call stack size exceeded with the following lines repeated a bunch of times if you expand the error:

ch.send
_$_.f
traceKitAsyncExtension
ch.send
_$_.f
traceKitAsyncExtension
...

Hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants