Notepad3: crash on very large file size (>300MB. just like SQL backup file)

Created on 18 Mar 2020  路  8Comments  路  Source: rizonesoft/Notepad3

not reproducible

Most helpful comment

Get it. Thanks a lot!

All 8 comments

@Joe3160 : Please provide us with more Information, at least used NP3 version.
How large is the file, if it is 7z'ed (LZMA2 ULTRA compressed) ? Maybe small enough to attach?

How large is the file, if it is 7z'ed (LZMA2 ULTRA compressed) ? Maybe small enough to attach?

Or you can provide us a link from: "https://workupload.com" ? 馃槂

  • No registration needed, upload till 2GB,
  • Optional: Password protection, Max downloads, Storagetime (days).
  • And much more, see: FAQ and About workupload.

I can not provide a file so large.
but I show how create this big file. this is the source code:

package main

import (
    "fmt"
    "os"
)

func main() {
    f, err := os.Create("lines.txt")
    if err != nil {
        fmt.Println(err)
        f.Close()
        return
    }
    var str="Welcome to the world'\nbababa..... bababa..... bababa..... bababa..... bababa..... "
    for i := 0; i < 100000000; i++ {
        fmt.Fprintln(f, str)
        //fmt.Println(i)
        if err != nil {
            fmt.Println(err)
            return
        }
    }
    err = f.Close()
    if err != nil {
        fmt.Println(err)
        return
    }
    fmt.Println("file written successfully")
}

create_a_big_text.zip

Hello @Joe3160 ,
Tested with "Notepad3 (64-bit) v5.20.317.1 RC3".

Size_0 8 GB (761 MB - 20 000 001 lines)

Size_2 01 GB (2065 MB - 12 231 271 lines)

I was not able to reproduce your "crash issue".

Here my test files: Test_big_files_till_4GB.rar (WinRar compressed up to 4.53 MB!) 馃槷

Hello @RaiKoHoff ,
The time to open the big files is short on my fast i7 desktop. 馃憤

But I don't understand if "Styling" doesn't apply, why when I load a large file, the screen stays for a while on "Styling":

2020-03-19_095858

Then, when the file is displayed, the screen is also frozen for a while! 馃

馃憤.馃憤Mybe I must update my notepad!!

@hpwamr : If the file size exceeds the configured limit, no Lexer (Syntax-Highlighter) is applied (this saves a lot of time), but for styling, there some other operations still applied (Occurrence Marker, Hyperlink detection, some small other stuff ..). The Wait-Cursor (Statusbarbar Message + Spinning Mouse Pointer) is not applied always, this definitely needs more rework for big files ...

@Joe3160: Feel free to test the RC version "Notepad3Portable_5.20.317.1_RC3.paf.exe.7z" or higher.
See "Notepad3 BETA-channel access #1129" or here Notepad3Portable_5.20.317.1_RC3.paf.exe.7z.7z

Note: "Notepad3Portable RC" can be used in "2 flavors", see with or without extension ".7z".

Get it. Thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mitezuss picture Mitezuss  路  42Comments

pantantrollo picture pantantrollo  路  37Comments

ghost picture ghost  路  36Comments

Dothion picture Dothion  路  35Comments

wsrf16 picture wsrf16  路  49Comments