Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
doortts opened this issue May 8, 2018 · 11 comments
Open

Comments

@doortts
Copy link

doortts commented May 8, 2018

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)
@doortts doortts changed the title RangeError: Maximum call stack size exceeded RangeError: Maximum call stack size exceeded, electron v2.0 + devtron v1.4 May 8, 2018
@javan
Copy link

javan commented May 8, 2018

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
Copy link

lfallo1 commented May 8, 2018

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

@manny89
Copy link

manny89 commented May 14, 2018

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
Copy link
Author

doortts commented May 24, 2018

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

@faridvatani
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests