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

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

Open
peter8777555 opened this issue Sep 26, 2024 · 4 comments
Open

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

peter8777555 opened this issue Sep 26, 2024 · 4 comments

Comments

@peter8777555
Copy link

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 peter8777555 changed the title [BUG BSOD] 瀏覽 藍屏當機(死機) [BUG BSOD] 瀏覽 藍屏當機(死機) (試過 2 次) Sep 26, 2024
@zufuliu
Copy link
Owner

zufuliu commented Sep 27, 2024

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

@peter8777555
Copy link
Author

z1

@zufuliu
Copy link
Owner

zufuliu commented Oct 8, 2024

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)

@peter8777555
Copy link
Author

OK and Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants