Comments (3)
This exception is mainly implemented in Chromium by trapping the Date.getTime
call in unload
handler:
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/bindings/v8/DateExtension.cpp&q=Too%20much%20time%20spent%20in%20unload%20handler&sq=package:chromium&type=cs&l=43
In the case of Atom, Date.getTime
is mainly called by jQuery to create event objects, and this exception happens when clearing DOM in the unload
handler:
https://github.com/github/atom/blob/master/src/app/window.coffee#L102
The Too much time spent in unload handler
error is thrown because jQuery has created more than 1000 event objects (which calls Date.getTime
), and it's mainly generated by jQuery.cleanData
.
You can do a try/catch
in unload
handler and print the stack trace to catch it.
Simply do not clean DOM in unload
handler would fix this, preventing this exception to occur requires patching Chromium.
from electron.
This is mainly a result of the package config panel. There are ~6 events
created for each package view. This results in a slow shutdown. I tried to
do some clever things by overriding clearData in the config panel's
shutdown, but I think the real solution is to redo how we are displaying
packages and handling package events.
On Tue, Jun 25, 2013 at 7:50 PM, Cheng Zhao [email protected]:
This exception is mainly implemented in Chromium by trapping the
Date.getTime call in unload handler:In the case of Atom, Date.getTime is mainly called by jQuery to create
event objects, and this exception happens when clearing DOM in the unloadhandler:
https://github.com/github/atom/blob/master/src/app/window.coffee#L102The Too much time spent in unload handler error is thrown because jQuery
has created more 1000 event objects (which calls Date.getTime), and it's
mainly generated by jQuery.cleanData.You can do a try/catch in unload handler and print the stack trace to
catch it.Simply do not clean DOM in unload handler would fix this, preventing this
exception to occur requires patching Chromium.β
Reply to this email directly or view it on GitHubhttps://github.com//issues/34#issuecomment-20024321
.
from electron.
This exception is now disabled: electron/libchromiumcontent@d241605.
from electron.
Related Issues (20)
- remove content::RenderFrame::GetRoutingID(), FromRoutingID() calls
- [Bug]: Main Process Can't Remove Directory with ASAR HOT 1
- [Bug]: WDIO cannot communicate with Electron because of BrowserWindow did not seem to return anything to WDIO if you don't call LoadURL HOT 2
- [Bug]: Linkedin loaded in WebView prompting Windows users to "Sign in with your passkey" HOT 14
- [Bug]: Electron@29 not supported astc extension in WebGL
- Electron Arm64 App Crash on Raspberry Pi 5 (Debian bookworm Release) OS with Segmentation Fault Error HOT 1
- [Feature Request]: Quick-start Documentation Error
- [Bug]: Docs: Some webContents listeners has errors in TypeSript HOT 1
- [Bug]: v29 `fs` module fails to recognize files containing emojis on Windows HOT 7
- [Bug]: crash on File > Quit on Linux HOT 3
- [Upgrades Follow Up]: <webview>.capturePage() tests failing on Mac HOT 1
- [Feature Request]: Programmatic Access to SSL Certificate Information in `onHeadersReceived`
- [Bug]: screen.getCursorScreenPoint() not works on linux, KDE HOT 4
- [Bug]: MacOS powerMonitor events don't detect fast user switching
- [Bug]: BrowserWindow Preload Doesnβt Preload MJS Files HOT 4
- [Bug]: can't find extension background.js inspect link in chrome://inspect page HOT 3
- [Bug]: Auto-updates not working on MacOS if app is not installed in Applications directory HOT 2
- [Bug]: when the savePage method was executed, it blocked the invocation of the rear interface. the console showed that the interface was canceled. I've tested it with a lot of experiments HOT 1
- [Bug]: Performance issues with contextBridge HOT 3
- [Bug]: [macos] Electron or child_process/worker crashes when using Metal API HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron.