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

Most upvoted comments

Perhaps we should re-open this issue.

There is a newer issue, #7351, that is actively being investigated.