Skip to content

Fix RN frames on Android ... - #875

Merged
benvinegar merged 1 commit into
masterfrom
fix-rn-android
Mar 23, 2017
Merged

benvinegar merged 1 commit into
masterfrom
fix-rn-android

Conversation

@benvinegar

@benvinegar benvinegar commented Mar 1, 2017 •

Copy link
Copy Markdown
Contributor
  1. Don't treat presence of "native" string everywhere as meaning "native code"
  2. Properly parse when not protocol / only leading forward slash

fixes #731

See also: csnover/TraceKit#69

cc @getsentry/javascript

1. Don't treat presence of "native" string everywhere as meaning "native code"
2. Properly parse when not protocol / only leading forward slash

fixes #731
for (var i = 0, j = lines.length; i < j; ++i) {
if ((parts = chrome.exec(lines[i]))) {
var isNative = parts[2] && parts[2].indexOf('native') !== -1;
var isNative = parts[2] && parts[2].indexOf('native') === 0; // start of line

@benvinegar benvinegar Mar 1, 2017 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is covered by the CHROME_48_BLOB test:

https://github.com/getsentry/raven-js/blob/master/test/vendor/fixtures/captured-errors.js#L327

I've also verified the format is the same in my Chrome 56 (on the console):

setTimeout(function callback() {
  [1].forEach(function iterate() { oops(); });
});

Emits:

Uncaught ReferenceError: oops is not defined
    at iterate (<anonymous>:2:36)
    at Array.forEach (native) # <-- bingo
    at callback (<anonymous>:2:7)

@benvinegar
benvinegar requested a review from MaxBittker March 2, 2017 00:17

@MaxBittker MaxBittker left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the test looks good to me and it seems to address the issue (don't have a android react native environment to confirm)

@benvinegar
benvinegar merged commit f162c9e into master Mar 23, 2017
@benvinegar
benvinegar deleted the fix-rn-android branch March 23, 2017 00:32
@f0rr0

f0rr0 commented Mar 23, 2017

Copy link
Copy Markdown

@benvinegar @MaxBittker when will this be released?

@benvinegar

Copy link
Copy Markdown
Contributor Author

I could try and cut 3.13.2 tomorrow morning.

@f0rr0

f0rr0 commented Mar 23, 2017

Copy link
Copy Markdown

@benvinegar that'll be awesome thanks

@f0rr0

f0rr0 commented Mar 24, 2017

Copy link
Copy Markdown

@benvinegar any word on that release?

@f0rr0

f0rr0 commented Mar 31, 2017

Copy link
Copy Markdown

@benvinegar ??

@benvinegar

Copy link
Copy Markdown
Contributor Author

@f0rr0 – sorry, have been busy. It's not as easy as hitting a button, alas.

@f0rr0

f0rr0 commented Mar 31, 2017

Copy link
Copy Markdown

@benvinegar sorry for bugging you, really appreciate this thanks

@benvinegar

Copy link
Copy Markdown
Contributor Author

We released 3.14.0 today.

pull Bot pushed a commit to TheDegenerateDev5150/sentry-javascript that referenced this pull request Jun 19, 2026
Next.js Vercel deploys were creating duplicate deploy records (one per webpack compiler: client, server, edge)
- Added a module-level guard (Set<string> keyed by release name) so newDeploy only fires once per release per process
- Only guards newDeploy — all other release operations (create, finalize, setCommits) are idempotent and unaffected

closes getsentry#873
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

Successfully merging this pull request may close these issues.

react-native on android in production make error that can't read

3 participants