New issue
Advanced search Search tips

Issue 691497 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows
Pri: 2
Type: Bug



Sign in to add a comment

in postData insert jQuery object

Reported by dhf...@gmail.com, Feb 13 2017

Issue description

Chrome Version       : 56.0.2924.87

What steps will reproduce the problem?
(1)-var $coupon = $('#coupon'); (#coupon - some input html-element with id='coupon' )

(2)-postData = { coupon: $coupon }

(3)-$.ajax({
  type: 'POST',
  url:  '/ajax/basket.php',
  data: postData,
  success     : function(data) {
  },
 });

(4)-done!

What is the expected result?
-memory overflows


The problem is related to the Ajax requests using jQuery.
If in postData insert jQuery object instead of the correct data, the tab is completely hangs and memory overflows (tab on what does not react, does not close, there is a constant increase in memory usage, whole gigabytes)



 
Labels: Needs-Triage-M58
Cc: kkaluri@chromium.org
Components: Blink>JavaScript
Labels: Needs-Feedback
dhffdh@ in order to triage this issue, could you please help us with sample and http test case and Actual & expected results, so that we can triage this issue from TE-End. 

Thank You...

Comment 3 by dhf...@gmail.com, Feb 14 2017

http://dhffdh3.beget.tech/


Test it

Comment 4 by dhf...@gmail.com, Feb 14 2017

P.S. Problem on Windows 8.1

Comment 5 by dhf...@gmail.com, Feb 14 2017


In Opera 43.0.2442.806  and IE 11.0.9600 The same behavior as in Chrome,have overflow.
But!!!!

in Firefox 51.0.1 all Ok. It give "TypeError: 'stepUp' called on an object that does not implement interface HTMLInputElement."
Components: -Blink>JavaScript Blink
Project Member

Comment 7 by sheriffbot@chromium.org, Feb 21 2017

Labels: -Needs-Feedback Needs-Review
Owner: kkaluri@chromium.org
Thank you for providing more feedback. Adding requester "kkaluri@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Needs-Review Needs-Bisect
Labels: Needs-Reduction
Labels: -Needs-Reduction -Pri-3 OS-Linux OS-Windows Pri-2
On one button clink this appeared in the console:
jquery-1.12.4.min.js:2 Uncaught RangeError: Maximum call stack size exceeded
    at Function.type (jquery-1.12.4.min.js:2)
    at dc (jquery-1.12.4.min.js:4)
    at dc (jquery-1.12.4.min.js:4)
    at dc (jquery-1.12.4.min.js:4)
    at dc (jquery-1.12.4.min.js:4)
    at dc (jquery-1.12.4.min.js:4)
    at dc (jquery-1.12.4.min.js:4)
    at dc (jquery-1.12.4.min.js:4)
    at dc (jquery-1.12.4.min.js:4)
    at dc (jquery-1.12.4.min.js:4)

Another time I got the 150% CPU and memory growth in Chrome.

This really looks like a jquery bug. It's not clear to me how to reduce it further and I'm not confident a bisect will reveal anything.
Status: WontFix (was: Unconfirmed)
There's an infinite loop in your page. The button calls enterCoupon which modifies the test field that has an onchange function that also calls enterCoupon that calls onchange etc etc.

Remove this infinite loop in the code and reopen the bug if the problem still persists.
Labels: -Needs-Bisect

Sign in to add a comment