Skip to content

Exception thrown by StackTrace.js when printStackTrace() is called #51

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

Closed
Moboro opened this issue Jun 26, 2013 · 8 comments
Closed

Exception thrown by StackTrace.js when printStackTrace() is called #51

Moboro opened this issue Jun 26, 2013 · 8 comments

Comments

@Moboro
Copy link

Moboro commented Jun 26, 2013

If I'm just doing something wrong then my apologies up front. I didn't see a forum so I'm posting this here. I'm getting the following Exception when printStackTrace() is called:

TypeError: Object # has no method 'undef'

This happens in Chrome. In IE I see createException in the stack trace but not the above error message. What can I do about this?

@eriwen
Copy link
Member

eriwen commented Jun 26, 2013

@Moboro would you mind giving us a minimal test-case that reproduces the problem?

@Moboro
Copy link
Author

Moboro commented Jun 26, 2013

Hello eriwen,

That will take some time since this is Knockout.js code. It will be a while before I have the time to do that. In the meantime, here's a more detailed dump in case that helps:

0: "TypeError: Object # has no method 'undef'"
1: " at Object.printStackTrace.implementation.createException (http://localhost:1804/scripts/stacktrace.js?v=1.0.5:48:18)"
2: " at Object.printStackTrace.implementation.run (http://localhost:1804/scripts/stacktrace.js?v=1.0.5:35:25)"
3: " at printStackTrace (http://localhost:1804/scripts/stacktrace.js?v=1.0.5:18:62)"
4: " at null.da (http://localhost:1804/javascripts/knockout.bindings.js?v=1.0.5:344:26)"
5: " at http://localhost:1804/scripts/knockout.js?v=1.0.5:30:282"
6: " at Object.n (http://localhost:1804/scripts/knockout.js?v=1.0.5:8:296)"
7: " at Function.r.R.fn.notifySubscribers (http://localhost:1804/scripts/knockout.js?v=1.0.5:30:234)"
8: " at Function.b.G (http://localhost:1804/scripts/knockout.js?v=1.0.5:32:208)"
9: " at b as names"

The error seems to happen in the call to this.undef() in the createException() method.

@victor-homyakov
Copy link
Contributor

@Moboro Do you use Developer Tools in Chrome? Maybe you have checked "Pause on all exceptions"?

@ColColonCleaner
Copy link

I am getting this same error in chrome.

Run "window.printStackTrace().join('\n');" in console.

TypeError on line 48 of stacktrace.js. Gives the same error as above.

@epetre
Copy link

epetre commented Jul 2, 2013

same issue with same stack trace here on

example here: http://jsfiddle.net/JG6ZL/1/

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36

@victor-homyakov
Copy link
Contributor

Thanks for the jsfiddle! I see now, where the problem is. Will fix ASAP.

@yshrsmz
Copy link

yshrsmz commented Sep 24, 2013

I still have this problem.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36

@victor-homyakov
Copy link
Contributor

http://jsfiddle.net/JG6ZL/4/
http://jsfiddle.net/JG6ZL/5/
everything works for me in Chrome 29.

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

No branches or pull requests

6 participants