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

Notepad++ hang when processing one line JSON file #8747

Open
nhiephon opened this issue Aug 20, 2020 · 6 comments
Open

Notepad++ hang when processing one line JSON file #8747

nhiephon opened this issue Aug 20, 2020 · 6 comments

Comments

@nhiephon
Copy link

Description of the Issue

Notepad++ hang when processing one line JSON file.

Steps to Reproduce the Issue

  1. Download sample JSON file "https://drive.google.com/file/d/1MjGL47cUI-kpUTZCaOmBf4zMxxiEyMyP"
  2. Open sample file with Notepad++

Size of sample file is 134 MB. However the issue still occurs with files that are smaller in size (Another sample file is 41 MB).

Expected Behavior

Notepad++ will hang on.

Actual Behavior

Notepad++ will hang on.

Debug Information

Notepad++ v7.8.7 (32-bit)
Build time : Jun 5 2020 - 02:34:28
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1903
OS Build : 18362.1016
Current ANSI codepage : 1252
Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll

image

@nhiephon
Copy link
Author

Any update for my report?
Expected Behavior is Notepad++ running normally. Sorry for my mistake.
Best regards,
nhiephon

@Ekopalypse
Copy link
Contributor

Scintilla, the underlying control used by Npp is weak in handling really large lines.
Npp/Scintilla isn't the right tool if you have to work with such files.

@dail8859
Copy link
Contributor

dail8859 commented Sep 1, 2020

@Ekopalypse I agree Scintilla is not great at handling large lines. I thought a while ago I found somewhere on a mailing list or sourceforge that Neil (the author of Scintilla) specifically states that it is a known issue handling long lines. Do you know if there is any kind of specific statement from the Scintilla project about long lines?

@Ekopalypse
Copy link
Contributor

@dail8859 - I'm 100% sure that I read such a statement some time ago but wasn't able to find it, otherwise I would have linked it. And now that you are basically saying the same, I'm even more convinced that I wasn't dreaming?

@dail8859
Copy link
Contributor

dail8859 commented Sep 1, 2020

@Ekopalypse

This might be what I was thinking: https://sourceforge.net/p/scintilla/bugs/1563/

The design centre of Scintilla is user-typed source code. It is not optimized for data files with huge lines. If 10 megabyte lines are commonly used by you then you should choose a different component.

@Ekopalypse
Copy link
Contributor

@dail8859 - sounds similar but not what I think it was. I thought I read something like you stated. .... known issue ... works as designed .... and that it won't get solved.

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

3 participants