maharmstone / btrfs

WinBtrfs - an open-source btrfs driver for Windows
GNU Lesser General Public License v3.0
5.51k stars 220 forks source link

BSOD PAGE_FAULT_IN_NONPAGED_AREA when writing any data #523

Open Tjalfi opened 1 year ago

Tjalfi commented 1 year ago

Issue: While writing data to my btrfs partition randomly a BSOD with the message PAGE_FAULT_IN_NONPAGED_AREA appears.

System Info: Windows 10 21H2 (Build 19043.1889) WinBtrfs 1.8.1

BTRFS Info: # btrfs fi show Total devices 3 FS bytes used 3.24TiB devid 1 size 1.63TiB used 1.57TiB path /dev/sdg devid 2 size 931.51GiB used 862.03GiB path /dev/sde devid 3 size 931.51GiB used 861.03GiB path /dev/sdd

# btrfs fi df /mnt/raid Data, single: total=3.23TiB, used=3.23TiB System, RAID1: total=32.00MiB, used=400.00KiB Metadata, RAID1: total=8.00GiB, used=7.32GiB GlobalReserve, single: total=512.00MiB, used=0.00B

Steps to reproduce:

MiniDumps https://anonymfile.com/5JE3/091622-58468-01.dmp https://anonymfile.com/JyJO/091622-63093-01.dmp

aziztcf commented 1 year ago

Try booting up Linux off a live usb, turns out winbtrfs can cause some nasty corruption. Sometimes scrubbing on Linux helps for me.

Or you could try to remove the driver and reinstall and hope your data is fine.

maharmstone commented 1 year ago

@aziztcf, if the driver has corrupted your data please open an issue for this. There's nothing in the description to indicate that corruption is the issue here.

@Tjalfi, I've finally got round to looking at this and the files are gone. Can you re-upload?

crestcere commented 1 year ago

@aziztcf, if the driver has corrupted your data please open an issue for this. There's nothing in the description to indicate that corruption is the issue here.

@Tjalfi, I've finally got round to looking at this and the files are gone. Can you re-upload?

I can't manage to take memory dump but if you run any installer that uses UAC it gaves that error on Windows 11 22H2 @maharmstone

isXander commented 1 year ago

Also just got the same stopcode for btrfs.sys.

Wasn't even actively accessing my BTRFS drive at the time.

Windows 11 22H2

Lmk how to get dumps

isXander commented 1 year ago

Update: restarted PC after BSOD, got an error about a bad image ON MY C DRIVE (which isnt BTRFS) and then BSODed again...

maharmstone commented 1 year ago

Please attach a minidump and I'll have a look. I'm fairly certain though that btrfs.sys is not the cause of the problem on your C: drive, as it only writes to Btrfs partitions.

Most likely is that you have a hardware issue - either your hard disk or your RAM - that's the source of both your problems.

isXander commented 1 year ago

Uninstalling BTRFS driver fixed the issue though. Windows Update automatically pushed an update to fix the broken .NET files.

I'll post a minidunmp later.

isXander commented 1 year ago

Minidump: https://gofile.io/d/c7SoUt

maharmstone commented 1 year ago

You're using 1.8, try upgrading to 1.8.1. It looks like you've run into the issue that was fixed by https://github.com/maharmstone/btrfs/commit/76b13080cecf8dad4ba23ca4b6e4b85e2c242dbc.

isXander commented 1 year ago

Thanks

Tjalfi commented 1 year ago

Sorry, as I wasn't able to use WinBtrfs reliably I removed it from my system and can't provide any more information. If no one else can reproduce the problem the issue can be closed as I don't plan to use WinBtrfs again.

FleischKarussel commented 1 year ago

Hey, I was having some similar issues with changing error messages like PAGE_FAULT_IN_NONPAGED_AREA or ntoskrnl.sys (can't remember exactly) and another one just one hour ago starting with nvdl*. I would be able to share some minidumps if you like.

maharmstone commented 1 year ago

I would be able to share some minidumps if you like.

Please do. I suspect that might be something to do with your graphics card, but I'll double-check.

FleischKarussel commented 1 year ago

Great! Here they come. https://gofile.io/d/qNWG7u

maharmstone commented 1 year ago

Thanks. Yes, both of these seem to be to do with your graphics card rather than btrfs. The first is in the NVidia driver, the second while running dxdiag.exe.

FleischKarussel commented 1 year ago

Thanks for confirmation, still weird for me, because I see a link between starting to use winbtrfs as my gaming storage space and bsods while playing the same game without any bsods from a NTFS formatted disk on the same Windows 11 installation. Anyway, I need to dig deeper I guess. ;)

Dormanil commented 1 year ago

I have a Steam Library on a btrfs filesystem and am running into this BugCheck code whenever updating games that are on the btrfs partition. I made sure to look at the minidump with WinDbg and it does specify that the BugCheck happens in btrfs.sys, version 1.8.2. I have uploaded the minidump here.

GreatWizard commented 6 months ago

I have the same issue on a 4Tb storage NVME on Windows. I can do whatever I want from Linux without issue.

I tried to fix it running btrfs balance and scrub from linux in the hope to solve anything... without success

Any ideas?

ScrewTSW commented 4 months ago

Also happened to me after fresh bootIMG_20240301_100102_815.jpg

I have 4 BTRFS drives mounted into my system, both NVME and rotating drives

Was most likely caused by Steam trying to update my library

EDIT: Happened twice in a row even after I exit all programs that might be touching the drives

maharmstone commented 4 months ago

@ScrewTSW, please send me a minidump

ScrewTSW commented 4 months ago

@ScrewTSW, please send me a minidump

Are they auto-generated? If so, where do I find them? (I've already uninstalled the driver because of instability and system hangs it was causing)

isXander commented 4 months ago

@ScrewTSW, please send me a minidump

Are they auto-generated? If so, where do I find them? (I've already uninstalled the driver because of instability and system hangs it was causing)

https://www.google.com/search?q=windows+minidump+location