OneDrive Causing BSOD

xrkund

Reputable
Apr 4, 2014
7
0
4,510
OneDrive updated a few days ago, and I started experiencing crashes about every hour since it installed. Uninstalling OneDrive alleviates the issue, however, I really need to use it. Upon reinstalling the application the crashes and restarts return consistently.

I've scoured Event Viewer and see all the BugChecks, but there's no reference to OneDrive, which is strange. I had this same issue in December and one of the repeating errors in Event Viewer referenced OneDrive.exe, so I uninstalled and reinstalled and it fixed the problem. However, now I can't even find those events that mentioned OneDrive.exe in Event Viewer anymore for reference, so I don't know what's going on there.

After dozens of BugChecks in Event Viewer, only 2 .dmp files are present in the MiniDump folder, also weird.

The only 2 in there say Probably Caused By: ntkrnlmp.exe ( nt!KiSystemServiceExitPico+242 )

System profile:
Windows 10 Pro 1709
AMD-FX 6300
20Gb RAM
128Gb SSD System Drive
5Tb Two-way Mirror Windows Storage Space Consisting of:
1.5Tb Samsung Green
2Tb WD Green
3Tb WD Green
4Tb WD Red

I run this PC headless as a home media server. It runs Plex, FTP server, a bunch of SMB shares, Hyper-V with a single Server 2016 VM running a web server (low resources). I also synchronize all of my documents to OneDrive across all of my devices, using this device as the only fully synchronized device.
 

Colif

Win 11 Master
Moderator
ntkrnlmp.exe = NT Kernel Multi Processor. Its part of windows and often gets the blame but isn't the cause. It crashed but it was likely something else that caused it.

can you copy those 2 minidumps to another folder like documents or desktop
upload the copies from this new location to a file sharing web site and show a link here.
 

xrkund

Reputable
Apr 4, 2014
7
0
4,510
Yeah, that's what I figure. I've reinstalled an older version of OneDrive, the same one that I installed in December, and I haven't had any issues yet, but I also haven't logged it in or allowed it to start syncing. I'm wondering if it has to do with it scanning files to update the cloud copy.

https://drive.google.com/open?id=1fwpCc_l7h_ax7cdlaaRY6EfWRXAejxUD
https://drive.google.com/open?id=14lpcJtuekKz_nVSYGfWX1fvjc17bD8Lx

UPDATE: Still crashed after installing older version, but not until I signed in and it started syncing. I've signed out now so monitor behavior after unlinking my Microsoft account.

UPDATE: It appears that OneDrive updated itself to the most recent version against my will, could be why I'm still experiencing issues.

UPDATE: Found this article https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/onedrive-causing-bsod-apcindexmismatch-windows-10/3ebaabd9-d8ac-4189-bd36-1407fca4d34f that appears to show my same issue. Upon further investigation, the BSOD is an APC_INDEX_MISMATCH, which is the same as the user in this article. He suggested "clearing the file structure". So I moved all of the local files to a new location and signed back in. This time it almost immediately said up-to-date, which I think reflects the Files On-Demand feature, and won't download syncronized files until they're requested. This is fine, I guess, and we'll see how it goes.

UPDATE: No dice. Still crashed. Any suggestions?
 

gardenman

Splendid
Moderator
Hi, I ran the dump files through the debugger and got the following information: https://pste.eu/p/banN.html

File: 042018-17781-01.dmp (Apr 20 2018 - 11:41:19)
BugCheck: [APC_INDEX_MISMATCH (1)]
Probably caused by: memory_corruption (Process: OneDrive.exe)
Uptime: 0 Day(s), 12 Hour(s), 49 Min(s), and 43 Sec(s)

File: 041918-10015-01.dmp (Apr 19 2018 - 15:48:28)
BugCheck: [APC_INDEX_MISMATCH (1)]
Probably caused by: memory_corruption (Process: OneDrive.exe)
Uptime: 0 Day(s), 1 Hour(s), 00 Min(s), and 58 Sec(s)

The overclocking driver "AODDriver2.sys" was found on your system. Remove AMD Overdrive which installs this file while we are trying to fix your BSOD problems. Remove all overclocks.

Motherboard: https://www.gigabyte.com/Motherboard/GA-78LMT-USB3-rev-60#ov
You appear to have the latest available BIOS already installed for your system.

I can't help you with this. Wait for additional replies. Good luck.
 

Colif

Win 11 Master
Moderator
while it is Onedrive crashing, its unusual for an exe to cause bsod, its normally drivers (sys files)

Do you have a gpu or is it running off the motherboard? your gpu drivers are from 2012 otherwise.

Realtek NIC drivers can be updated here:http://www.realtek.com.tw/Downloads/downloadsView.aspx?Conn=4&DownTypeID=3&Langid=1&Level=5&PFid=5&PNid=13
is there a newer version of Softether?
 

xrkund

Reputable
Apr 4, 2014
7
0
4,510
No dedicated GPU, this runs integrated Graphics on this motherboard. https://www.amazon.com/gp/product/B009FC3YJ8/ref=oh_aui_search_detailpage?ie=UTF8&psc=1

No overclocking is taking place. I've attempted updating AMD software and drivers, but the hardware is old enough (ATI Radeon 3000), I didn't see any updates. I'll check again. 2012 may be their latest release for it.

UPDATE: Windows actually has a 2015 driver that I was able to update to through Device Manager. Also, I'm attempting to disable automatic updates for OneDrive by disabling the update task in task scheduler... nevermind, its still able to update.

UPDATE: Ran the update for AMD chipset, looks like its dated 2015. When I put in the graphics model on their website, the most recent version is dated 1-2013, which is probably the 2012 version you saw in the BugCheck. The 2015 chipset drivers said they included a graphics driver from 2015. I've also updated the RealTek drivers to 1-2018.
 

Colif

Win 11 Master
Moderator
Realtek drivers likely to be only ones that I can see affecting Onedrive, VPN software might be cause as well.

this is a rare error, I just read a thread about it and one of the other people who fix errors on Tenforums stated he has only seen it about 10 times. One article pointed at GPU drivers, we done them already.

One way to see if it is a driver is - try running driver verifer, just read the instructions carefully. It is part of win 10 designed to find misbehaving drivers. It will cause BSOD, that is its job since it tests drivers.

note: sometimes this will put you into a boot loop so it helps to have a win 10 installer handy to get out again. Download the Windows 10 media creation tool and use it to make a win 10 installer on USB - unles you have it already.

Also helps to run system restore before hand to create a restore point to roll back to if necessary.

Once it bsod, upload the minidump file and we see what it shows us.
 

xrkund

Reputable
Apr 4, 2014
7
0
4,510
Alright, so I used Driver Verifier... you're right, hard to get out of that loop. Actually, I couldn't find a way to enter safe mode from my installation media, but interrupting the boot cycle sends you into repair mode, where, if you decline System Restore, it gives you Advance Options which in turn has Startup options. After selecting that, you can boot into safe mode, which I did to disable Verifier.

I let it all run and crash for a few hours, but I only wound up with two new dumps, both of which show DRIVER_VERIFIED_DETECTED_VIOLATION, so that's good.

Looking at the dumps themselves, I'm seeing atikmpag.sys as at fault along with ntoskrnl.exe. atikmpag.sys is usually attributed to VIDEO_TDR_FAILURE BSODs... so I'm not sure what to do about that as I did update these drivers already.

Here are the DMPs
https://drive.google.com/open?id=1TifliYBoHj34HzQQ6bwSq9TyU9IDiP93
https://drive.google.com/open?id=1oJQs9pnbZ1SgN4_evOmj6HG4sWlYVkSa

UPDATE: So, I had an old Radeon 7570 HD lying around, so I decided to put it in there. It was an OEM model from an HP desktop, and years ago, you had to hack the drivers to be able to use it with the drivers from AMDs website, but I guess those days are gone, as the most recent version on AMDs website recognized it just fine. So, without using that integrated graphics chipset, we'll have to see if it still experiences crashing issues.
 

gardenman

Splendid
Moderator
I ran the dump files through the debugger and got the following information: https://pste.eu/p/tRJQ.html

File: 042118-7390-01.dmp (Apr 21 2018 - 16:02:29)
BugCheck: [DRIVER_VERIFIER_DETECTED_VIOLATION (C4)]
Probably caused by: memory_corruption (Process: System)
Uptime: 0 Day(s), 0 Hour(s), 00 Min(s), and 05 Sec(s)

File: 042118-6468-01.dmp (Apr 21 2018 - 18:58:17)
BugCheck: [DRIVER_VERIFIER_DETECTED_VIOLATION (C4)]
Probably caused by: memory_corruption (Process: System)
Uptime: 0 Day(s), 0 Hour(s), 00 Min(s), and 03 Sec(s)

I can't help you with this. Wait for additional replies. Good luck.
 

xrkund

Reputable
Apr 4, 2014
7
0
4,510
Using a dedicated GPU didn't alleviate the issue at all. Comes up exactly the same as before. Doing some tweaking now with OneDrive to see what I can figure out. The last post in this thread https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/onedrive-causing-bsod-apcindexmismatch-windows-10/3ebaabd9-d8ac-4189-bd36-1407fca4d34f suggests "clearing out the folder structure" and letting it repopulate from the web. Tried that, but it didn't do much because it only downloads files on-demand now. Regardless, it still crashes.

Now I'm trying a similar solution, but rather than selecting the same location to repopulate the files, I've selected the default location on the C: drive. The location I've been using for OneDrive for the past year or so has been in my Storage Spaces volume. I'm wondering if this is causing the problem. So far successful in setting the OneDrive folder to be on my system disk.

If this winds up working, I'm going to try going back to my original location, but disable the "files on-demand" option, to ensure there is always a local copy, and see if that works.
 

Colif

Win 11 Master
Moderator
Well, one solution for APC INDEX MISMATCH is said to be gpu drivers, so if atikmpag.sys is mentioned in the driver verified results, the system doesn't like your current GPU drivers. Running this and wiping ati drivers if you have an external card might help - http://www.tomshardware.com/faq/id-2767677/perform-clean-install-video-card-drivers.html

ntoskrnl = Windows Kernel. It was what what crashed but doesn't signify why.

I don't use storage spaces but i get what they are - software raid. it should see it as just another hdd?

My Onedrive folder is old school still, has everything in it, next fresh install I might fix that.

One thing that might fix this is there is meant to be version 1803 on Win 10 released this month and whatever changed in Onedrive might be fixed in it. I looked through Cumulative updates of win 10 for this month and can't see any mention of a new version of Onedrive

None mentioned here: https://techcommunity.microsoft.com/t5/OneDrive-Blog/bg-p/OneDriveBlog
 

xrkund

Reputable
Apr 4, 2014
7
0
4,510
Thanks for the input.

So I changed the OneDrive folder to be back in the default location on the System Disk. No problems whatsoever, so it's definitely not liking something about being in my Storage Space.

I unlinked the account, then relinked, repopulating my Storage Space with my OneDrive documents, but turning off "Files On-Demand". Its run for a good 5 or 6 hours now without incident. I'm thinking that this feature somehow doesn't like being run on the Storage Space. I don't remember it in the previous version of OneDrive that I was running, so this would make sense if it was an auto-enabled new feature.

According to this article https://support.office.com/en-us/article/learn-about-onedrive-files-on-demand-0e6860d3-d9f3-4971-b321-7092438fb38e Files On-Demand requires the Fall Creator's Update as well as OneDrive 17.3.7064, which came out around the same time as the Fall Creators update about 6 months ago. Strange that I haven't had an issue until now. I'm guessing it has more to do with the version bump from 17 to 18.

Hopefully with the Windows 10 April Feature Update, we'll see some improvement.

As for why that causes the video driver to crash is beyond me.

I'll update with any additional information.