-
Notifications
You must be signed in to change notification settings - Fork 7
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
Reopen big (400MB .csv) file with encoding #8
Comments
We should limit the data we give to |
Hi I looked into the code and on the first look the problem may be not jschardet.
@bpasero if you point me to a tutorial how to build and debug vscode I can try to locate the problem. |
@pinguin999 you can refer to https://github.com/microsoft/vscode/wiki/How-to-Contribute for how to run VSCode. Thanks for finding that location, however the upper bound seems to be only 65kb, so I wonder if that is already sufficient to cause the exception. Maybe you try to lower it. |
Also could you attach such a file that crashes as zip? or send it? |
@bpasero Sorry no, it's a file with private costumer data. |
Without a repro for me, I cannot be of help, sorry. Will leave this open for 7 days until a repro is found, otherwise this will close. |
It's looks like jschardet is not the problem. I can track it down to this lines:
Buffer size is: Buffer(380293716) It uses the iconvLiteDecoder from the node module "iconv-lite-umd" Does it help? |
@pinguin999 ok, that really in the end is |
Ideally we can create a reproducible case and report against https://github.com/ashtuchkin/iconv-lite. //cc @gyzerok |
@bpasero
|
@jeanp413 thanks for the analysis
Yes indeed, want to open a PR to change this to
I would like @gyzerok and maybe @ashtuchkin to chime in and let us know when we can expect a new stable version of |
Sure I'll create a PR with that fix, |
Wow you are so awesome! I updated to the latest insider build and it looks like its fixed! |
That's great, although, for the record, back when I was testing it I think it could still crash if you change the encoding more than once. |
We've made great progress during August around moving Not sure how Alex is doing though. Seems like he didn't have time to progress forward either. |
No worries, thanks for the update and good luck with your new start 👍 |
Commit: 9e505675670d65138405321a60b0df4ddec28799
Date: 2020-09-16T06:49:37.816Z
Electron: 9.3.0
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19041
Steps to Reproduce:
I guess it's the encoding guessing algorithm
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: