btrfs icon indicating copy to clipboard operation
btrfs copied to clipboard

BSOD PAGE_FAULT_IN_NONPAGED_AREA when writing any data

Open Tjalfi opened this issue 3 years ago • 23 comments

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:

  • Write any data to disk
  • Crash

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

Tjalfi avatar Sep 16 '22 17:09 Tjalfi

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.

perttuvep avatar Sep 30 '22 04:09 perttuvep

@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?

maharmstone avatar Oct 12 '22 00:10 maharmstone

@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

crestcere avatar Oct 13 '22 14:10 crestcere

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 avatar Nov 11 '22 20:11 isXander

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

isXander avatar Nov 11 '22 20:11 isXander

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.

maharmstone avatar Nov 13 '22 03:11 maharmstone

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 avatar Nov 14 '22 15:11 isXander

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

isXander avatar Nov 17 '22 18:11 isXander

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.

maharmstone avatar Nov 17 '22 19:11 maharmstone

Thanks

isXander avatar Nov 26 '22 17:11 isXander

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.

Tjalfi avatar Jan 03 '23 15:01 Tjalfi

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.

FleischKarussel avatar Jan 06 '23 21:01 FleischKarussel

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.

maharmstone avatar Jan 07 '23 03:01 maharmstone

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

FleischKarussel avatar Jan 08 '23 20:01 FleischKarussel

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.

maharmstone avatar Jan 09 '23 01:01 maharmstone

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. ;)

FleischKarussel avatar Jan 09 '23 09:01 FleischKarussel

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.

Dormanil avatar Jun 28 '23 21:06 Dormanil

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?

GreatWizard avatar Dec 12 '23 17:12 GreatWizard

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

ScrewTSW avatar Mar 01 '24 09:03 ScrewTSW

@ScrewTSW, please send me a minidump

maharmstone avatar Mar 01 '24 17:03 maharmstone

@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)

ScrewTSW avatar Mar 01 '24 19:03 ScrewTSW

@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

isXander avatar Mar 02 '24 00:03 isXander