You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Renderer freezes after opening 2GB or larger files #42839
It opens successfully (say the machine has enough memory)
Open a 2.1 GB file
It freezes after 1+ mins.
As we load the whole file to memory, it exceeds the memory limit of v8 process. We can expose max_old_space_size flag in cli then users can increase the limit themselves.
Benjamin Pasero (@bpasero) correct me if I'm wrong, but it seems that when we run Code --js-flags="abc", js-flags is not passed to the renderer process so we need to explicitly have this option in cli.
However, if we wanted to introduce a command line option to make this easier for the user, it can be done also programmatically via app.commandLine.appendSwitch (before the on-ready event).
Activity
rebornix commentedon Feb 2, 2018
Benjamin Pasero (@bpasero) correct me if I'm wrong, but it seems that when we run
Code --js-flags="abc",js-flagsis not passed to the renderer process so we need to explicitly have this option in cli.bpasero commentedon Feb 3, 2018
Peng Lyu (@rebornix) it should be passed on to the renderer, e.g. when I add
--js-flags=harmonyI see how that flag is passed on to the renderer when I check withps aux. See also https://github.com/electron/electron/blob/master/docs/api/chrome-command-line-switches.mdHowever, if we wanted to introduce a command line option to make this easier for the user, it can be done also programmatically via
app.commandLine.appendSwitch(before the on-ready event).Fix #42839. avoid ui freeze when file is larger than heap size limit.
Fix #42839. avoid ui freeze when file is larger than heap size limit.
Merge pull request #43006 from Microsoft/rebornix/largefile
Fix microsoft#42839. avoid ui freeze when file is larger than heap si…
Merge pull request microsoft#43006 from Microsoft/rebornix/largefile