Skip to content

react-native plugin cannot parse stacktrace #825

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
harshil07 opened this issue Jan 11, 2017 · 5 comments
Closed

react-native plugin cannot parse stacktrace #825

harshil07 opened this issue Jan 11, 2017 · 5 comments

Comments

@harshil07
Copy link

The stacktrace being sent to sentry has just [native code] in there.
Using an android device.

I throw an error in my code throw new Error('test');
and right before being sent to Raven library the exception looks like this on console.log.
{ [Error: test] line: 1042, column: 2539, sourceURL: 'index.android.bundle' }
On console.log right after TraceKit.computeStackTrace i see the following:

{ name: 'Error',
  message: 'test',
   url: '',
  stack: 
  [ { url: '[native code]',
     func: '?',
      args: [],
       line: null,
       column: null },
    { url: '[native code]',
        func: '?',
       args: [],
       line: null,
      column: null } ] }
@harshil07
Copy link
Author

From the looks of it, this is a parsing error in the TraceKit lib.
for more color: Here is the full stack trace on the exception.

01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:1042:2531
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:1042:2375
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:5562
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:4870
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:428:581
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:6841
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:6606
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:5845
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:4870
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:428:581
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:435:474
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:433:963
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:433:1835
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:433:1723
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:413:821
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:428:581
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:6841
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:6606
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:5845
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:4870
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:428:581
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:435:474
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:433:963
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:433:1835
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:433:1723
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:413:821
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:428:581
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:6841
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:6606
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:5845
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:4870
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:428:581
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:435:474
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:433:963
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:433:1835
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:433:1723
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:413:821
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:428:581
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:6841
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:6606
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:5845
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:437:5086
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:428:945
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:424:919
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:432:597
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:432:597
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:424:2066
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:424:2238
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [native code]
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:432:1250
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:432:684
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:505:465
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:424:391
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:415:648
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:415:758
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:326:2830
01-11 13:07:18.229 27974 28007 I ReactNativeJS: index.android.bundle:326:1065
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:326:133
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [email protected]:326:1037
01-11 13:07:18.229 27974 28007 I ReactNativeJS: [native code]

@benvinegar
Copy link
Contributor

@harshil07 – how was this stack trace dumped? Was it dumped from JavaScript?

@harshil07
Copy link
Author

@benvinegar i added a console.log(ex.stack) to the raven library. and then looked at it via react-native log-android

@khanghoang
Copy link

@harshil07 I think it's relative to this one #731

@harshil07
Copy link
Author

ah yes @khanghoang i didn't see that one earlier. I will close this in favor of that issue. Looks like someone is working on a PR for that issue.

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