New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 756458 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Last visit 28 days ago
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug


Show other hotlists

Hotlists containing this issue:
Hotlist-1


Sign in to add a comment

Developer Tools forget source map for stack trace after re-opening

Reported by dwolf....@gmail.com, Aug 17 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36

Steps to reproduce the problem:
1. Use the 'inspect' link on `chrome:inspect` to view the console output of a website running on Android. Make sure this website uses source maps.
2. Get the website to log an exception via `console.error`. In the Developer Tools, the corresponding log line can be expanded to show a stack trace (see `before.png`). Each element of the stack trace contains a file name and line number. As expected, Chrome uses the source map to list the file and line for the *original* files, not for the bundled output. Notice how the stack trace lists `console.js:64`, then `logger.js:102`, and so on.
3. Close the Developer Tools window, then immediately re-open it by clicking 'inspect' again.
4. The log line we just saw has collapsed. Re-expand it to show the stack trace again. Note that *this is the same stack trace we saw before*, we're merely expanding it for the second time.

What is the expected behavior?
I'd expect the stack trace to be displayed exactly as before, using the source map.

What went wrong?
The stack trace now looks different than before (see `after.png`). The function names are identical, but the file names and line numbers have changed. They now say `code.js:106614`, `code.js:106863`, and so on. The stack trace has "forgotten" the source map and instead shows the positions within the bundled output.

Did this work before? N/A 

Chrome version: 60.0.3112.90  Channel: n/a
OS Version: OS X 10.11.6
Flash Version:
 
before.png
142 KB View Download
after.png
149 KB View Download

Comment 1 by l...@chromium.org, Aug 20 2017

Owner: lushnikov@chromium.org
Status: Assigned (was: Unconfirmed)
Thanks for the report.  Can confirm with repro:
- Open console
- Go to http://embed.plnkr.co/mGHUpe
- Close and reopen DevTools
- Notice the change in source location on console messages.

lushnikov@, could you please take a look?

After reading ( https://bugs.chromium.org/p/chromium/issues/detail?id=438251#c32 ) this seems like a distinct symptom of the same root cause. Perhaps closing and reopening DevTools causes all the existing sourcemaps to be processed a second time.
Status: WontFix (was: Assigned)
I can't reproduce this on 65.0.3292.0. We did some work on the front, so
it looks like it's fixed.

Please write back if it doesn't work for you.

Sign in to add a comment