notepad4 icon indicating copy to clipboard operation
notepad4 copied to clipboard

[BUG BSOD] 瀏覽 藍屏當機(死機) (試過 2 次)

Open peter8777555 opened this issue 1 year ago • 4 comments

OS: Windows 11 X64 AP: Notepad4 v24.09r5472

我把 Notepad4 放在 F:\MyTool 中, F:\MyTool 此目錄有 500 GB (包括 很多 檔案 及 目錄) 當執行 Notepad4 時 ==> 此時 未開啟 任何檔案, 若是 瀏覽 則會瀏覽 F:\MyTool 大約 10 秒後, BSOD 藍屏死機 (試過 2 次), 應該是 目錄有 500 GB 太多 檔案 及 目錄.

但如果, 當執行 Notepad4 時, 先隨便 開啟 F:\Test\33333\1.txt 再 瀏覽 則會瀏覽 F:\Test\33333 ==> 此目錄 就只有 5 個檔案 就不會 BSOD 藍屏死機.

是否能 當執行 Notepad4 時 ==> 此時 未開啟 任何檔案, 使用者 能自訂 瀏覽 預設目錄 如 F:\ 或 C:\

z1

peter8777555 avatar Sep 26 '24 06:09 peter8777555

Tested C:\Windows\System32 (4k+ items) and C:\Windows\SysWOW64 (2k+ items) on Win10/11, no crash.

zufuliu avatar Sep 27 '24 10:09 zufuliu

z1

peter8777555 avatar Sep 27 '24 10:09 peter8777555

I can't reproduce the crash with folder created by following Python script (5,000 empty folders + 105,000 empty files):

import os.path
import random

def GetFileExtList():
	extList = ['empty']
	path = 'assoc.log'
	os.system(f'assoc > {path}')
	if os.path.isfile(path):
		with open(path, 'r', encoding='utf-8') as fd:
			lines = fd.read().splitlines()
			for line in lines:
				items = line.split('=')
				if len(items) == 2:
					extList.append(items[0])
	return extList

def MakeTestDir(dirCount, fileCount):
	extList = GetFileExtList()
	print(f'dir: {dirCount}, file: {fileCount}, file ext: {len(extList)}')
	root = 'test'
	if not os.path.exists(root):
		os.makedirs(root)
	for i in range(dirCount):
		path = rf'{root}\{i}'
		if not os.path.exists(path):
			os.makedirs(path)
	for i in range(fileCount):
		ext = random.choice(extList)
		path = rf'{root}\{i}{ext}'
		if not os.path.exists(path):
			with open(path, 'wb') as fd:
				pass

MakeTestDir(5000, 105_000)

zufuliu avatar Oct 08 '24 10:10 zufuliu

OK and Thank you.

peter8777555 avatar Oct 08 '24 22:10 peter8777555