electron-userland / devtron

[LOOKING FOR MAINTAINERS] An Electron DevTools Extension
https://electronjs.org/devtron
MIT License
1.73k stars 101 forks source link

RangeError: Maximum call stack size exceeded, electron v2.0 + devtron v1.4 #109

Open doortts opened 6 years ago

doortts commented 6 years ago

Symptom

When I try to use devtron v1.4 (latest) with electron 2.0 and click Load Graph, I met errors.

Tested

Also, I tested it with official page's quick start app.

Screen shot

image

image

image

Fine condition

It works fine with devtron v1.4 and electron v1.8.x

Full Error Log

[8530:0508/153704.861660:ERROR:CONSOLE(1622)] "RangeError: Maximum call stack size exceeded
    at JSON.parse (<anonymous>)
    at EventEmitter.ipcRenderer.sendSync (/Users/doortts/repos/electron-quick-start/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/api/ipc-renderer.js:14:15)
    at Object.descriptor.get [as children] (/Users/doortts/repos/electron-quick-start/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/api/remote.js:131:34)
    at walkModule (<anonymous>:21:26)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:21:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:21:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:21:35)", source: chrome-extension://devtron/out/index.js (1622)
javan commented 6 years ago

Seeing the same issue here on macOS 10.13.4

[91025:0508/094741.152446:ERROR:CONSOLE(1609)] "Loading render modules failed", source: chrome-extension://devtron/out/index.js (1609)
[91025:0508/094741.152538:ERROR:CONSOLE(1610)] "RangeError: Maximum call stack size exceeded
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:20:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:20:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:20:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:20:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:20:35)", source: chrome-extension://devtron/out/index.js (1610)
[91025:0508/094746.041946:ERROR:CONSOLE(1621)] "Loading main modules failed", source: chrome-extension://devtron/out/index.js (1621)
[91025:0508/094746.041992:ERROR:CONSOLE(1622)] "RangeError: Maximum call stack size exceeded
    at JSON.parse (<anonymous>)
    at EventEmitter.ipcRenderer.sendSync (/Users/javan/Work/basecamp/bc3-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/api/ipc-renderer.js:14:15)
    at Object.descriptor.get [as children] (/Users/javan/Work/basecamp/bc3-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/api/remote.js:131:34)
    at walkModule (<anonymous>:21:26)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:21:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:21:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:21:35)", source: chrome-extension://devtron/out/index.js (1622)
❯ process.versions
{
  "http_parser": "2.7.0",
  "node": "8.9.3",
  "v8": "6.1.534.41",
  "uv": "1.15.0",
  "zlib": "1.2.11",
  "ares": "1.10.1-DEV",
  "modules": "57",
  "nghttp2": "1.25.0",
  "openssl": "1.0.2n",
  "electron": "2.0.0",
  "chrome": "61.0.3163.100"
}

lfallo1 commented 6 years ago

Same here (Electron v2.0.0, Devtron v1.4)... currently will need to revert to v1.8.6, to use Devtron.

manny89 commented 6 years ago

Hit the same issue. It appears Devtron 1.4 is currently broken when using with Electron 2.0. I had to revert back to Electron v1.8.6 to use Devtron.

doortts commented 6 years ago

Dear @kevinsawicki sorry to bother you, but could I know there is any plan to resolve this problem?

faridvatani commented 6 years ago

I do have the same problem, I use Electron(3.0.2) & Devtron(1.4.0) Has anyone got a solution to use higher electron versions?

crashbdx commented 6 years ago

Same here Electron 3.0.5 & Devtron 1.4.0,

[19416:1019/213823.143:ERROR:CONSOLE(1609)] "Loading render modules failed", source: chrome-extension://devtron/out/index.js (1609) [19416:1019/213823.143:ERROR:CONSOLE(1610)] "RangeError: Maximum call stack size exceeded at walkModule (<anonymous>:12:24) at Array.map (<anonymous>) at walkModule (<anonymous>:20:35) at Array.map (<anonymous>) at walkModule (<anonymous>:20:35) at Array.map (<anonymous>) at walkModule (<anonymous>:20:35) at Array.map (<anonymous>) at walkModule (<anonymous>:20:35) at Array.map (<anonymous>)", source: chrome-extension://devtron/out/index.js (1610) [19416:1019/213832.657:ERROR:CONSOLE(1621)] "Loading main modules failed", source: chrome-extension://devtron/out/index.js (1621)

any update ?

shaheemMPM commented 6 years ago

I've got the same screenshot 2018-10-20 at 7 30 16 pm

I'm using Electron version: 3.0.5 and Devtron Version: 5.6.0

ltfschoen commented 5 years ago

I've got the same issue. Electron 2.02, Devtron 1.4.0.

screen shot 2019-01-14 at 10 11 07 am

I had setup Devtron before loading Dev Tools as follows

  // Enable with `DEBUG=true yarn start` and access in Dev Tools > Devtron
  debugSetup = () => {
    // Add Electron DevTools Extension (Devtron)
    if (withDebug && this.fetherApp.options.webPreferences.devTools) {
      require('devtron').install();
      this.fetherApp.window.webContents.openDevTools();
    }
  }

And the error occurs when I go to Developer Tools > Devtron > Require Graph, And click the "Load Graph" button

Treverix commented 5 years ago

Same issue here - electron 4.0.4, devtron 1.4.0, MacOS 10.14.1

Load Graph does not work, throws this exception:

[62686:0223/173554.220149:ERROR:CONSOLE(1609)] "Loading render modules failed", source: chrome-extension://devtron/out/index.js (1609)
[62686:0223/173554.220223:ERROR:CONSOLE(1610)] "RangeError: Maximum call stack size exceeded
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:20:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:20:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:20:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:20:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:20:35)", source: chrome-extension://devtron/out/index.js (1610)
[62686:0223/173605.943449:ERROR:CONSOLE(1621)] "Loading main modules failed", source: chrome-extension://devtron/out/index.js (1621)
[62686:0223/173605.943490:ERROR:CONSOLE(1622)] "RangeError: Maximum call stack size exceeded
    at Object.array ([...]/electron-quick-start/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/api/remote.js:217:12)
    at metaToValue ([...]/electron-quick-start/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/api/remote.js:226:28)
    at Object.descriptor.get [as children] [...]/electron-quick-start/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/api/remote.js:145:16)
    at walkModule (<anonymous>:21:26)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:21:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:21:35)
    at Array.map (<anonymous>)
    at walkModule (<anonymous>:21:35)", source: chrome-extension://devtron/out/index.js (1622)
terror-jake commented 5 years ago

From a Udemy course instructor, he stated that Devtron team stopped development in favour of Chrome DevTools extension so, no support is expected anymore.

SoftwareEngineerPalace commented 3 years ago

I do have the same problem, I use Electron(8.2.3)