@Alan-Stu
A couple of things:
How long are the lines you are dealing with? You mentioned “one line of contiguous text (no spaces)”. Is the line hundreds of millions to billions of characters long?
Notepad++ v8.6.3
had a regression and so was deleted and replaced with v8.6.4.
Regarding “this crash behaviour started approximately when Android Studio was updated to Hedgehog 2023.1.1 Patch 2.” You will need to get far more specific about how to reproduce the Notepad++ issue before we can determine that Notepad++ now crashes due to some update or change to Windows or other software.
I decided to re-test see if I can get something closer to your results.
I had two sets of test files.
The x series was created by multiplying the 100 characters ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv resulting in a single long line.
The y series was created by multiplying the 100 characters ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrst<cr><lf> resulting 98 character long lines that each use 100 bytes of disk storage.
For Notepad++ v8.6.5 (32-bit) running with -noPlugin the results are:
The x long line files open fine up to 100,000,000 bytes. At 200,000,000 bytes Notepad++ created a new tab for the file but never painted it.
The ‘y’ short line files open fine up to 1,000,000,000 bytes. At 2,000,000,000 bytes I get a warning about Exception: File memory allocation failed with There is probably not enough contiguous free memory for the file being loaded by Notepad++ and the file fails to load. Notepad++ handles this more or less gracefully:
With Notepad++ v8.6.5 (64-bit) running with -noPlugin the results are:
The x long line files open fine up to 2,000,000,000 bytes and then allowed me to type a space and then <enter>. It’s getting ~slow~. At 3,000,000,000 bytes Notepad++ seemed to start loading the file but then vanished/exited few minutes later.
The ‘y’ short line files open fine up to 10,000,000,000 bytes (100 million lines). I did not try with larger files as Notepad++ was fast and responsive. I have edited files in the 20gb range at times. We don’t know where the outer limits are.
It appears that when we have a file with a single long line of [A-Za-z] characters only that Notepad++ has issues. For v8.6.5 (32-bit) they started somewhere over 100 million characters and v8.6.5 (64-bit) allowed for long lines up to 2-billion characters and was crashing at 3-billion characters.