electron: Exception in objects-registry when doing remote work
- Electron version: 0.36.9
- Operating system: Mac
We’re still trying to nail down repro steps in Slack, but it seems to happen on 0.36.9 when calling remote methods. Specifically, we build context menus using remote (very similar to the Menu sample) and occasionally they stop working with this exception:
Uncaught Error: Cannot read property 'object' of undefined
TypeError: Cannot read property 'object' of undefined
at ObjectsRegistry.get (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\objects-registry.js:44:28)
at metaToValue (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:155:32)
at Array.map (native)
at unwrapArgs (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:214:15)
at EventEmitter.<anonymous> (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:317:12)
at emitMany (events.js:108:13)
at EventEmitter.emit (events.js:182:7)
at EventEmitter.<anonymous> (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\api\lib\web-contents.js:133:25)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 39 (22 by maintainers)
Commits related to this issue
- downgrade(peppers): remote objects undefined in low level V8. Issue atom/electron#4733 — committed to mbilker/N1 by mbilker 8 years ago
- Merge branch 'master' of github.com:mbilker/N1 * 'master' of github.com:mbilker/N1: (29 commits) downgrade(peppers): remote objects undefined in low level V8. Issue atom/electron#4733 fix(build):... — committed to mbilker/N1 by mbilker 8 years ago
- Properly track reference count: fix #4733 — committed to mitchhentges/electron by deleted user 8 years ago
- Run callback of setDestructor immediately when GC happens Fix #4733. — committed to electron/electron by zcbenz 8 years ago
- Run callback of setDestructor immediately when GC happens Fix #4733. — committed to electron/electron by zcbenz 8 years ago
- Run callback of setDestructor immediately when GC happens Fix #4733. — committed to deepak1556/atom-shell by zcbenz 8 years ago
- Dereference remote objects with native code Previously we rely on the v8util.setDestructor to dereference the remote objects in JavaScript, however as documented in V8, it is forbidden to call V8 API... — committed to electron/electron by zcbenz 8 years ago
There is a newer issue, #7351, that is actively being investigated.