Coder Social home page Coder Social logo

50% CPU usage about edit-this-cookie HOT 7 CLOSED

etcextensions avatar etcextensions commented on June 21, 2024
50% CPU usage

from edit-this-cookie.

Comments (7)

fcapano avatar fcapano commented on June 21, 2024

From [email protected] on September 07, 2012 10:03:01
Hi, sorry to hear that. Does it happen when you open the popup/options page, or also right after opening chrome browser?

from edit-this-cookie.

fcapano avatar fcapano commented on June 21, 2024

From [email protected] on September 07, 2012 10:08:29
Can you also tell me which version of Edit This Cookie are you using? There ave been different updates yesterday, so please check that you are using the latest version (1.1.10)

from edit-this-cookie.

fcapano avatar fcapano commented on June 21, 2024

From [email protected] on September 15, 2012 16:48:52
The issue should be fixed in version 1.1.20. Let me know if you still have problems!

from edit-this-cookie.

fcapano avatar fcapano commented on June 21, 2024

From [email protected] on September 17, 2012 23:53:40
I am using 1.1.21 and it is consistently taking 28-33% CPU, according to Chrome Task Manager. It only seems to happen after chrome has been open for a while.
Thanks

from edit-this-cookie.

fcapano avatar fcapano commented on June 21, 2024

From [email protected] on September 18, 2012 09:49:32
Do you have any cookies blocked or protected?
Are you using the option to shorten the cookies' maximum age?
Do you have any extension's page open when the issue appears?

Could you do the following while the extension's cpu usage is high?:

  • Go to "chrome://chrome/extensions/"
  • Ensure "Developer mode" is enabled
  • Go to "Edit This Cookie"
  • Click on "_generated_background_page.html"
  • Go to console
  • Copy and paste here
  • Back to the console, Right-click -> Clear console
  • Does it stay empty or new messages appear?

Thank you for your time, hopefully this time I'll be able to fix the issue for real

from edit-this-cookie.

JonasNo avatar JonasNo commented on June 21, 2024

This function gets into an infinite loop:
background.js line 60 -> "chrome.cookies.onChanged.addListener( function(changeInfo) {"

changeinfo:
cause: "overwrite"
cookie: Object
removed: true

The function "chrome.cookies.get" at line 84 executes the callback function with currentCookie = null.
That cause an exception in "compareCookies" line 89.
"cookie_helpers.js:99 Cannot read property 'name' of null"

The function "compareCookies" returns false after the exception. Than calls "chrome.cookies.set(newCookie);" at line 92 in background.js

This causes an infinite loop.

"chrome.cookies.set" cause "chrome.cookies.onChanged" to be called and it repeats.

The infinite loop starts somehow when chrome is idle for a period of time.

from edit-this-cookie.

fcapano avatar fcapano commented on June 21, 2024

I don't think there's been any report regarding this in a long time, I'll close this issue.

from edit-this-cookie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.