RESOLVED FIXED103254
Web Inspector: make ASSERTION FAILED: foundPropertiesCount == object->size() more useful
https://bugs.webkit.org/show_bug.cgi?id=103254
Summary Web Inspector: make ASSERTION FAILED: foundPropertiesCount == object->size() ...
Pavel Feldman
Reported 2012-11-26 07:07:40 PST
Adding dump of the JSON object would further improve the assertion value.
Attachments
Patch (2.03 KB, patch)
2012-11-29 17:05 PST, Peter Rybin
no flags
Patch (3.35 KB, patch)
2012-12-01 14:59 PST, Peter Rybin
no flags
Peter Rybin
Comment 1 2012-11-29 16:40:29 PST
Pavel, please note that CodeGeneratorInspector.py has hardcoded variable VALIDATOR_IFDEF_NAME. This could be changed to use in release build mode.
Peter Rybin
Comment 2 2012-11-29 17:05:21 PST
Yury Semikhatsky
Comment 3 2012-11-29 17:52:52 PST
Comment on attachment 176850 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=176850&action=review > Source/WebCore/inspector/CodeGeneratorInspector.py:1342 > + validator_writer.newline(" FATAL(\"Unexpected properties in object: %s\\n\", object->toJSONString().ascii().data());\n") Now it will crash in release build too which is bad.
Peter Rybin
Comment 4 2012-11-29 18:08:38 PST
> Now it will crash in release build too which is bad. This code doesn't work in release build.
Yury Semikhatsky
Comment 5 2012-11-29 18:28:16 PST
(In reply to comment #4) > > Now it will crash in release build too which is bad. > > This code doesn't work in release build. Oh, I see it is hidden behind #if !ASSERT_DISABLED
Peter Rybin
Comment 6 2012-11-30 08:45:02 PST
Pavel, I guess the patch is at your service, ready for landing.
Build Bot
Comment 7 2012-11-30 22:03:53 PST
Peter Rybin
Comment 8 2012-12-01 14:59:26 PST
Peter Rybin
Comment 9 2012-12-01 15:33:33 PST
I guess the new patch fixes win build (linker .def file didn't list required function symbol). Let's give it another try.
WebKit Review Bot
Comment 10 2012-12-03 11:04:00 PST
Comment on attachment 177113 [details] Patch Rejecting attachment 177113 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: /bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' Updating webkit projects from gyp files... Updating OpenSource From http://git.chromium.org/external/Webkit e9e6020..1db1bee HEAD -> origin/HEAD error: Ref refs/remotes/origin/master is at 1db1bee680414c2b5d10e6b820eb7c7e89858e47 but expected e9e60209430c81c71b136baf1b1e72d6bac0da3a ! e9e6020..1db1bee master -> origin/master (unable to update local ref) Died at Tools/Scripts/update-webkit line 152. Full output: http://queues.webkit.org/results/15133007
WebKit Review Bot
Comment 11 2012-12-03 13:06:22 PST
Comment on attachment 177113 [details] Patch Clearing flags on attachment: 177113 Committed r136431: <http://trac.webkit.org/changeset/136431>
WebKit Review Bot
Comment 12 2012-12-03 13:06:27 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.