Skip to content

[BUG] NPP crashing when hashing SHA256 for large files #17243

@thoskk

Description

@thoskk

Is there an existing issue for this?

  • I have searched the existing issues

Is the issue reproducible in Notepad++ without plugin?

  • I have tried Notepad++ without plugin

Is the issue reproducible in portable version of Notepad++?

  • I have tried portable version of Notepad++

Does the issue affect SciTE?

  • I have tried SciTE

Description of the Issue

When hashing SHA-256 of large files > ~ 300 MB before first hashing smaller files, NPP will crash.
I repeated with different files, if the first file is above 300 MB, crash will happen.

Steps To Reproduce

  1. open NPP with no hash previously performed
  2. go to "Tools -> SHA-256 -> from file"
  3. click "select file..." , select a file > 300 MB, click ok
  4. wait for the crash
  5. do 1. - 3. with file < 300 MB, it will be fine.
  6. repeat 2. + 3. after 5.: hash will work

Current Behavior

crash, as described above

Expected Behavior

get hash of file

Debug Information

Notepad++ v8.8.5   (32-bit)
Build time: Aug 14 2025 - 00:17:53
Scintilla/Lexilla included: 5.5.7/5.4.5
Boost Regex included: 1_85
Path: D:\Program Files (x86)\Notepad++\notepad++.exe
Command Line: "G:\WAREZ I\- - - Downloads - - -\Software\no virus\Crypto & Mining\VRSC\Verus-Desktop-Windows-v1.2.12-2\Verus-Desktop-v1.2.12-2.exe.signature.txt"
Admin mode: OFF
Local Conf mode: OFF
Cloud Config: OFF
Periodic Backup: ON
Placeholders: OFF
Scintilla Rendering Mode: SC_TECHNOLOGY_DEFAULT (0)
Multi-instance Mode: monoInst
asNotepad: OFF
File Status Auto-Detection: cdEnabledNew (for current file/tab only)
Dark Mode: OFF
Display Info:
    primary monitor: 1920x1080, scaling 110%
    visible monitors count: 2
    installed Display Class adapters: 
        0001: Description - Intel(R) HD Graphics 4600
        0001: DriverVersion - 20.19.15.4531
        0002: Description - NVIDIA GeForce GT 430
        0002: DriverVersion - 23.21.13.8813
OS Name: Windows 10 Enterprise (64-bit)
OS Version: 22H2
OS Build: 19045.6575
Current ANSI codepage: 1252
Plugins: 
    DSpellCheck (1.4.6)
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)

Anything else?

This bug appeared a few versions back (maybe 9 - 12 months ago), but I thought somebody would notice and it would get fixed, so I was patiently waiting. Until now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashissue causing N++ to crash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions