RESOLVED FIXED Bug 199082
Web Inspector: Error "null is not an object (evaluating 'syntaxTree.containersOfPosition')" when setting a breakpoint
https://bugs.webkit.org/show_bug.cgi?id=199082
Summary Web Inspector: Error "null is not an object (evaluating 'syntaxTree.container...
Saam Barati
Reported 2019-06-20 14:53:10 PDT
Created attachment 372587 [details] test case This is happening to me on r246642 using a debug build. Attaching html test case here. (If you use a debug build, you'll need to wait until I land https://bugs.webkit.org/show_bug.cgi?id=198775 to have the WHLSL program not crash). Repro steps: 1. Set a breakpoint on the line: "const shaderModule = device.createShaderModule({code: shaderSource, isWHLSL: true});" 2. reload the page 3. breakpoint will hit, then shortly, inspector will hit this error
Attachments
test case (3.03 KB, text/html)
2019-06-20 14:53 PDT, Saam Barati
no flags
Patch (1.92 KB, patch)
2019-06-20 15:09 PDT, Devin Rousso
mattbaker: review+
Patch (1.92 KB, patch)
2019-06-20 17:49 PDT, Devin Rousso
no flags
Saam Barati
Comment 1 2019-06-20 14:53:58 PDT
stack trace shown in inspector: null is not an object (evaluating 'syntaxTree.containersOfPosition')​ (at SourceCodeTextEditor.js:​1443:​35)​ ?​ @ SourceCodeTextEditor.js:​1443:​35 makeSyntaxTreeAndCallCallback @ Script.js:​212:​21 ?​ @ Script.js:​226:​42 promiseReactionJob @ [native code]​
Devin Rousso
Comment 2 2019-06-20 15:09:45 PDT
Matt Baker
Comment 3 2019-06-20 15:54:08 PDT
Comment on attachment 372589 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=372589&action=review rs=me > Source/WebInspectorUI/ChangeLog:10 > + The script syntax tree may be fetched even if the resources hasn't finished parsing (or had Nit: either "resource" or "resources haven't"
Devin Rousso
Comment 4 2019-06-20 17:49:17 PDT
WebKit Commit Bot
Comment 5 2019-06-20 18:20:29 PDT
The commit-queue encountered the following flaky tests while processing attachment 372603 [details]: imported/w3c/web-platform-tests/content-security-policy/reporting/report-multiple-violations-02.html bug 199095 (author: dbates@webkit.org) fetch/fetch-worker-crash.html bug 187257 (author: youennf@gmail.com) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 6 2019-06-20 18:21:14 PDT
Comment on attachment 372603 [details] Patch Clearing flags on attachment: 372603 Committed r246667: <https://trac.webkit.org/changeset/246667>
WebKit Commit Bot
Comment 7 2019-06-20 18:21:17 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8 2019-06-20 18:22:19 PDT
Note You need to log in before you can comment on or make changes to this bug.