- Remove From My Forums
-
Question
-
My statically-linked Visual C++ 2012 program sporadically generates a CRTL error: «R6016 — Not enough space for thread data».
Microsoft documentation says this error message is generated when a new thread is spawned, but not enough memory can be allocated for it.
However, my code only explicitly spawns a new thread in a couple of well-defined cases, neither of which are occurring here (although certainly the Microsoft libraries internally spawn threads at will). One user reported this problem when the program was just
existing in the background.Not sure if it’s relevant, but I haven’t overridden the default 1MB reserved stack size or heap size, and the total memory in use by my program is usually quite small (3MB-10MB on a system with 12GB actual RAM, over half of which is unallocated).
This happens very rarely (so I can’t track it down), and it’s been reported on more than one machine. I’ve only heard about this on Windows 8.1, but I wouldn’t read too much into that.
Is there some compiler setting somewhere that might influence this error? Or programming mistake?
Answers
-
«JDWeng, I agree with everything you just said»
Except that what he says has little to do with your problem…
«The error you are getting is caused by an access to a memory location outside the bounds that the operating system is allowing and causing an exception. So any type error that accesses a invalid memory error can be causing this problem.»
Oh well, that sounds like the description of an access violation exception. Too bad that the error you are seeing has nothing to do with access violation or any other exception.
R6016 is a error generated by the VC runtime. The source of the C runtime is included with Visual Studio (check the VS installation folderVCcrtsrc). That means you could take a look at it and get an idea about what’s going on. Here’s what I found after
a quick look:1. This error can occur during app startup when the (non dll) C runtime is initialized. This seems to match your situation because you statically link the C runtime.
But this initialization occurs before your code gets a chance to run and the possible reasons for this include lack of memory and lack of TLS slots. I’m not sure how that can happen during at app startup, that would mean that the system itself is toast.
2. This error can also happen when you create a thread by using CreateThread or any other function which doesn’t use _beginthtread/_beginthreadex. To be precise, you won’t get this error when the thread is created, you’ll get this error later when you try
to access some CRT functionality which requires a per thread data structure.The typical reason for failure in this situation is lack of memory but that thread data structure is 100-200 bytes in size, I find it hard to believe that exactly this allocation fails, surely there are other allocations of roughly the same size
in your program.Another reason could be failure of TlsSetValue caused by memory corruption but this seems unlikely too, you would have to be terrible unlucky to corrupt exactly the memory used by the TLS storage.
So, do you at least know what this error occurs? Does it happen during application startup or later?
-
Marked as answer by
Thursday, January 23, 2014 4:24 AM
-
Marked as answer by
-
It has nothing to do with the stack either.
Here are 2 ways to reproduce R6016:
#include <cstring> extern "C" extern unsigned long __flsindex; int main() { __flsindex = 4200; strtok("foo", "bar"); }
This one simply «corrupts» the CRT’s __flsindex variable, this will prevent the runtime from retrieving the per thread data even if the data was already allocated.
#include <cstring> #include <windows.h> DWORD WINAPI ThreadProc(LPVOID p) { HANDLE hHeap = GetProcessHeap(); for (void *p; (p = HeapAlloc(hHeap, 0, 50000)) != nullptr; ) ; for (void *p; (p = HeapAlloc(hHeap, 0, 50)) != nullptr; ) ; strtok("foo", "bar"); return 0; } int main() { HANDLE hThread = CreateThread(nullptr, 0, ThreadProc, nullptr, 0, nullptr); WaitForSingleObject(hThread, INFINITE); }
This one uses CreatedThread and exhausts all the heap memory before calling strtok — you get R6016 because the runtime cannot allocate memory for the per thread data.
Note that in both cases the executable must be linked statically to the VC runtime. __flsindex isn’t accessible if you’re using the dll runtime so the first approach fails to link. The dll runtime relies on DLL_THREAD_ATTACH notifications to allocate the
per thread data and it’s more likely that thread creation will simply fail than to get R6016.Both situations are possible in practice but it seems to me that you’d have to be quite unlucky for the outcome of memory corruption or lack of memory to be this R6016 error.
PS: Anyone who wants to try the second example should run the release build and should not run it in the debugger. Doing otherwise might cause your system to lockup for some time due to excessive paging.
-
Edited by
Mike Danes
Friday, January 17, 2014 10:03 AM -
Marked as answer by
Jane Wang — MSFT
Thursday, January 23, 2014 4:25 AM
-
Edited by
-
Microsft actual has has creaated a bounds check by creatting a managed Net Library which has a hugh overhead to prevent these type errors. Microsoft also has a C++ library for people who don’t want to use either C# or VBnet. Using C++ you are
taking a risk that you end up with memory leaks exceptions and just have to roll up your sleeves and debug these issues. I have solved lots of intermittents like this and know that it just a normal part of programming, and there isn’t a simple solution.
jdweng
-
Marked as answer by
Jane Wang — MSFT
Thursday, January 23, 2014 4:24 AM
-
Marked as answer by
-
See also
kb118816 about possible reasons of TLS allocation failures, although it also refers to win32s. IIRC, even if one believes that a VC++2012 app is linked statically, there are some DLLs involved in runtime, nevertheless.To get the latest VC++ library,
look here.— pa
-
Edited by
Pavel A
Thursday, January 16, 2014 2:04 AM -
Marked as answer by
Jane Wang — MSFT
Thursday, January 23, 2014 4:23 AM
-
Edited by
Windows Operating System is made with thousands of dll files, exe files, sys files and more other files. These files are responsible for running Windows machine smoothly and make OS error free. However, in the long usage of PC, most of the system files gets crashes or corrupted and eventually you start getting lots of system problems. R6016 Runtime Error is one of them that causes the application closes unexpectedly. Here, in this article, I will guide you how to fix Runtime Error R6016 in effective way.
You may get following error message if your PC have R6016 Runtime Related issue.
Runtime Error!
Program: C:ProgramFilesxxx.exe
Runtime Error R6016 – Not enough space for thread data
Reason behind R6016 Runtime Error
There may be lots of reason behind Runtime Error R6016 but as the error itself mention that there is no more memory available for the application so firstly, it seems that application requires more memory to run properly. However, most of the time, it is a bug of application and there are some buggy variables in program that is eating lots of system memory and causes application crashes. Here is the list of most possible reasons that may cause this error.
- There is bug in application.
- Low system memory
- Malware or viruses are running and using system memory
- Dependent system files like dll file, exe file, sys file is corrupted or damaged.
- You haven’t installed related Microsoft Visual C++ Runtime Library
- Microsoft Visual C++ Runtime Library are corrupted and need to be repaired.
- Registry files has corrupted entries for the program.
- Outdated System Drivers and Updates. Etc.
How to Fix Runtime Error R6016
In order to fix Runtime Error R6016, you need to follow the following steps carefully.
Method 1: Fix using Advanced System Repair Tool
The most of the common reason behind runtime error is corrupted or damaged system files like DLL files, EXE files, sys files etc. There are thousands of tiny system files are there that work specific task. If one of the files gets replaced, deleted or damaged then you may get Runtime Error R6016.
3 Steps to Fix this Error
Method 2: Reinstall Application
This is the most preferable option to repair this problem. Just download the fresh and compatible copy of your application and install it. Mostly the runtime error r6016 appears when you try to launch certain application. By Reinstalling that application again might help you in fixing of this error.
Method 3: Reboot Your PC
Yes, you heard right! Rebooting PC may free up RAM spaces and then if you run the application you might not get the error.
Method 4: Scan PC against malware/viruses/trojan
Viruses/Malware/Trojans are designed to use excessive processor usage and eating memory. You need to scan your PC with a good antivirus system. You must repair damages using Advanced System Repair tool after scanning PC with antivirus. Antiviruses cleans viruses but it doesn’t repair damages done by viruses.
Method 5: Update PC and Drivers
Updating PC and Drivers may fix most of the PC issues. When you updated PC’S and drivers, it installs latest patches for bugs. An outdated driver causes compatibility issues and more other problems in PC.
Method 6: Install or Repair Microsoft Visual C++ Runtime Library
You must find and install related Microsoft Visual C++ Runtime Library from Microsoft site. Most of the application requires certain C++ Runtime Library to run properly. You can repair installed Visual C++ Runtime Library as follows:
Repairing Microsoft Visual C++ 2012 Redistributable file may give you quick fix of your problem.
1. Go to Control Panel > Uninstall a Program
2. Select Microsoft Visual C++ 2012 Redistributable package and Right click on that and select Change.
3. Click on Repair button to start repair.
4. You will see that repair is in processing.
5. After finishing the process it will prompt you for restarting your PC.
Summary
This article explains how to fix Runtime Error R6016 in Windows 10/8/7 and Windows Server machine. It is recommended to use Advanced System Repair Tool to fix more system issues like registry bugs, corrupted system files, cleanup security bugs etc.
- Remove From My Forums
-
Question
-
I get these errors on startup of my Windows 8.1 (with all latest updates installed) after login.
1. It would be helpful if the error message actually identified the exe or dll causing the problem.
Program: C:Progra…
Is not a very helpful clue to the source of the error and because of its brevity comes across as being contemptuous of the user.
Image > https://plus.google.com/photos/116576618429528389782/albums/6004901461676803857
2. From the active apps Desktop toolbar it appears that this problem may be associated with
Apple IE DAV3. I suspect that the problem announced by this error might also be contributing to the the fact that my Chrome browser now appears to be overlaid with a pink matt variation on its entire colour scheme. I have reported the pink matt error directly to Google
Chrome support.Thanks
Martin
Answers
-
-
Edited by
Tuesday, April 22, 2014 8:38 AM
-
Marked as answer by
kelvin_hsu
Tuesday, May 6, 2014 1:12 AM
-
Edited by
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
Closed
johngrabner opened this issue
Aug 8, 2018
· 18 comments
Labels
more-info-needed
The submitter needs to provide more information about the issue
Comments
Description
Github desktop v1.3.2 running in background. This dialog appears about once a day.
Github desktop appears to continue to work.
Version
- GitHub Desktop: 1.3.2
- Operating system: windows 10
Steps to Reproduce
just run in background
Expected Behavior
Actual Behavior
Additional Information
Logs
@johngrabner thanks for the report!
The best lead I have for this error is this MSDN documentation link but I’m not really sure how it might be happening.
Could you attach the full log files? The Help | Show Logs in Explorer menu items should open the logs folder, and inside those are the log files generated by day. This will provide some more information to help troubleshoot.
@johngrabner that error dialog is not being raised of GitHub Desktop, so it doesn’t appear in the logs.
Could you grab the full path (currently obscured) by clicking Ctrl + C to copy the message to the clipboard, and paste it in here?
ctrl-c does not show much. I also did a ctl alt delete and listed the task.
Microsoft Visual C++ Runtime Library
Runtime Error!
Program: C:Usersjohn_AppDataLocalGitHubDesktopa…
R6016
- not enough space for thread data
OK
It looks like «git-remote-https.exe is launch when you click «submit» from the desktop app.
I did a submit with this locked up. I noticed another was launched when I did a submit and it closed when the submit was done. So this may explain why nothing appears to be non-functional.
@johngrabner I believe this is related to new background Git operations that were part of 1.3.0, and our next update 1.3.3 (aiming for next week) has some improvements which might affect this. I’m going to come back to this after it’s published and ask if you’re still encountering the issue.
@johngrabner are you able to reproduce this with 1.3.3 (which we just published)?
@johngrabner I wonder if it’s related to whatever version of the Microsoft Visual C++ Runtime you have installed. I couldn’t dig up anything specific to Git for Windows triggering this specific error code in normal use, so maybe running an updated version of this will fix the issue?
don’t do any C++, so no idea how to read what version of C++ Runtime on the machine. If you tell me, i’ll look it up.
Is there a way to turn on verbose logging so when this occurs, you may see what is going on?
Can git-remote-https be launched from command line? if so, maybe we can try to isolate it to see it it complains when running on own and not being kicked into action from github descktop?
Anyhow, happy to help, just tell me what to do.
don’t do any C++, so no idea how to read what version of C++ Runtime on the machine. If you tell me, i’ll look it up.
The name is kind of confusing here — it’s a runtime that other software relies on, so it’s likely an indirect dependency.
On my machine I have these two versions installed (both version 14.12.25810.0
, but one for x86 and one for x64):
Can git-remote-https be launched from command line? if so, maybe we can try to isolate it to see it it complains when running on own and not being kicked into action from github descktop?
This is part of Git for Windows and is a subprogram that git.exe
invokes when it needs to communicate with a remote server. The actual details of this problem is that git-remote-https.exe
depends on APIs that are part of msvcrt.dll
, and this is the version I have at C:WindowsSystem32msvcrt.dll
that it should be using:
I’m also on Windows build 10.0.17134.228
with no pending updates — not sure what specific build of Windows 10 you’re running (running cmd /c ver
will print this).
Looks like I have more versions.
[cid:732424a7-8fb7-4449-9be8-7e8c76aa68f3]
I have the same version of msvcrt
[cid:45849e07-405a-4e8f-843e-9dcb5997b440]
my version of windows
Microsoft Windows [Version 10.0.17134.165]
No pending updates when I reported the issue, but now there is a pending update.
I’ll restart and see if this comes back.
…
________________________________
From: Brendan Forster <notifications@github.com>
Sent: Thursday, August 16, 2018 2:07 PM
To: desktop/desktop
Cc: johngrabner; Mention
Subject: Re: [desktop/desktop] Runtime Error R6016 — Not enough space for thread data (#5356)
don’t do any C++, so no idea how to read what version of C++ Runtime on the machine. If you tell me, i’ll look it up.
The name is kind of confusing here — it’s a runtime that other software relies on, so it’s likely an indirect dependency.
On my machine I have these two versions installed (both version 14.12.25810.0, but one for x86 and one for x64):
[https://user-images.githubusercontent.com/359239/44234907-31e76680-a17e-11e8-9c7d-c1d834819c2d.png]<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F359239%2F44234907-31e76680-a17e-11e8-9c7d-c1d834819c2d.png&data=02%7C01%7C%7Ca1d013c5433044a10bf908d603bc4197%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636700504421492609&sdata=2owkA8KJcOn1ewMEQkIWhS07SiEDjfREAuQu50OG9WA%3D&reserved=0>
Can git-remote-https be launched from command line? if so, maybe we can try to isolate it to see it it complains when running on own and not being kicked into action from github descktop?
This is part of Git for Windows<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitforwindows.org&data=02%7C01%7C%7Ca1d013c5433044a10bf908d603bc4197%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636700504421492609&sdata=dzR1pHlexLNJzjIOdKgSK7tVsTHmQ7IcCMA1hQ11GaQ%3D&reserved=0> and is a subprogram that git.exe invokes when it needs to communicate with a remote server. The actual details of this problem is that git-remote-https.exe depends on APIs that are part of msvcrt.dll, and this is the version I have at C:WindowsSystem32msvcrt.dll that it should be using:
[https://user-images.githubusercontent.com/359239/44235127-dcf82000-a17e-11e8-8064-52fdd1ad3139.png]<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F359239%2F44235127-dcf82000-a17e-11e8-8064-52fdd1ad3139.png&data=02%7C01%7C%7Ca1d013c5433044a10bf908d603bc4197%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636700504421492609&sdata=7lzlg9SBZQOZVCSxez1IJxnCfwvuC%2BAPs8HR%2FWgr0UY%3D&reserved=0>
I’m also on Windows build 10.0.17134.228 with no pending updates — not sure what specific build of Windows 10 you’re running (running cmd /c ver will print this).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdesktop%2Fdesktop%2Fissues%2F5356%23issuecomment-413685041&data=02%7C01%7C%7Ca1d013c5433044a10bf908d603bc4197%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636700504421492609&sdata=gW946YPfNiaejgC3unuIY1NJBAeqN9tTXLYJgyncCzw%3D&reserved=0>, or mute the thread<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH1DhX1AELpITj5hZo3ywt8zFqCY1N6hks5uRd8IgaJpZM4Vz9da&data=02%7C01%7C%7Ca1d013c5433044a10bf908d603bc4197%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636700504421492609&sdata=%2FJ54hctNBn06KytNT%2BtJz7YfBWRip5R1o%2BhxsKpwLz4%3D&reserved=0>.
@johngrabner none of the attached photos came through. Are you able to add the details on the GitHub website?
I did not restart the PC after upgrading github desktop.
Also had pending windows 10 changes.
After the restart, and overnight, I have not seen this message.
I would not put much on this since the issue was seen for a while when there were no pending changes on windows. But can’t be sure given I have not found a clear trigger.
I have 11 projects with uncommitted changes. Since the restart, I have only worked on one. Usually, I have tones of open windows. It will take a few days to reproduce If the cause was too many open things or running too long.
Anyhow, here are the pictures that did not make it yesterday.
I will give it a few days, and if I don’t see, i’ll close this ticket.
Spent a day with a bazillion open projects and error has not reappeared.
Starting to feel like something got hosed up and the restart corrected things.
I’ll close this bug so I don’t waste your time and reopen if I see it again.
Labels
more-info-needed
The submitter needs to provide more information about the issue
3 participants
and others
I’m currently creating a powershell script dedicated to install some softs for my job.
The script will call a cmd that calls a ps1 that will install (or uninstall) the software.
However, on some of the computers that uses my script, it gets the following error :
Microsoft Visual C++ Runtime Library
Runtime Error!
Program: C:WindowsSystem32WindowsPowerShellv1.0powershell.exe
R6016
- not enough space for thread data
Looking for this error on the internet, I found the following link :
https://support.microsoft.com/en-us/kb/126709
It says :
Spawning and closing an application repeatedly succeeds around 60
times, then the spawn fails with this error: R6016 — not enough space
for thread data
Indeed, sometimes when I try to make around 60 install / uninstall using my script, I get this error.
But I don’t understand how I could apply the resolution : what is Win32s ? How could I free the «TLS» ?
Is there something I should do when I spawn or exit a PowerShell ? Is it because a cmd is always calling a ps1 ?
EDIT :
I finally found how to generate the error with a simple line of code from a cmd :
powershell -noprofile -command "[Environment]::Exit($host.version.major)"
This should give me with an «echo %errorlevel%» the major version of PowerShell (usually 3,4,5) and sometimes, it gives me «255» and this event «R6016» inserted in the event viewer System.
Thank you to anyone who can help me solve this problem.
-
MMO-Champion
-
»
Forum -
»
Off-Topic Forums -
»
Computer - WTF is a «runtime error» — Error R6016 Not enough space for thread data
»
Thread: WTF is a «runtime error» — Error R6016 Not enough space for thread data
-
2013-08-29, 11:06 PM
#1
Herald of the Titans
WTF is a «runtime error» — Error R6016 Not enough space for thread data
So for the past month or so I’ve been getting this random error popping up when I do specific things on my PC — Examples include closing World of Warcraft, Closing League of Legends, closing a firefox tab, and probably a few other things I can’t remember atm. It doesn’t effect my games at all — it only occurs when I shut the game down or close a tab, and all I have to do is hit okay and move on. But obviously its not suppose to happen so I’d like to know how to fix it.
The title bar name is «Microsoft Visual C++ Runtime Library» and the error says «Runtime Error! Program C:UsersJohnA (Cuts off the line) Next line says R6016 — not enough space for thread data»
I looked into it previously and people were saying it had to do with Java or Microsoft Visual something or other, but nothing I did fixed it.
-
2013-08-29, 11:08 PM
#2
Dreadlord
Did you make any upgrades to the hardware/software lately?
And you obviously tried restarting your computer so I’m going to suggest you download the latest Microsoft visual C++ redistrubutable package and check if the issue is resolved or not. http://www.microsoft.com/download/en….aspx?id=14632
-
2013-08-29, 11:12 PM
#3
Herald of the Titans
Originally Posted by Crennox
Did you make any upgrades to the hardware/software lately?
And you obviously tried restarting your computer so I’m going to suggest you download the latest Microsoft visual C++ redistrubutable package and check if the issue is resolved or not. http://www.microsoft.com/download/en….aspx?id=14632
I think the most recent update to hardware was 4 or so months ago when I installed a new GPU. I’m fairly certain when I looked this up previously it said to update/reinstall microsoft c++, but that doesn’t seem to have fixed the issue. I’ll try again though.
Edit* The link you provided gives me an error when I try to install — «A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine» >.>
Last edited by Alcsaar; 2013-08-29 at 11:17 PM.
-
2013-08-29, 11:17 PM
#4
Dreadlord
Originally Posted by Alcsaar
I think the most recent update to hardware was 4 or so months ago when I installed a new GPU. I’m fairly certain when I looked this up previously it said to update/reinstall microsoft c++, but that doesn’t seem to have fixed the issue. I’ll try again though.
Edit* The link you provided gives me an error when I try to install — «A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine» >.>
Lmao really? That’s weird, try uninstalling your C++ package and install it again. If that doesn’t work download CCleaner if you don’t already have it and clean your registry.
-
2013-08-29, 11:19 PM
#5
Herald of the Titans
Originally Posted by Crennox
Lmao really? That’s weird, try uninstalling your C++ package and install it again. If that doesn’t work download CCleaner if you don’t already have it and clean your registry.
I’m assuming I should only uninstall C++ 2010 correct?
I also have 2005 and 2008 versions, but I’m fairly certain those are required for older programs.
-
2013-08-29, 11:19 PM
#6
Moderator
Originally Posted by Alcsaar
Examples include closing World of Warcraft
Curiously, my WoW has been crashing a lot lately (once every couple days) whenever I log off a character to change characters, or when closing wow entirely. I’ve been too lazy to fix the issue, since WoW boots up in 8 seconds anyway (Yay SSD), and everything else works perfectly.
Since it sounds like you -might- have a similar issue, I’ll look into this more to see if I can’t puzzle it out.
Gaming: Dual Intel Pentium III Coppermine @ 1400mhz + Blue Orb | Asus CUV266-D | GeForce 2 Ti + ZF700-Cu | 1024mb Crucial PC-133 | Whistler Build 2267
Media: Dual Intel Drake Xeon @ 600mhz | Intel Marlinspike MS440GX | Matrox G440 | 1024mb Crucial PC-133 @ 166mhz | Windows 2000 Pro
IT’S ALWAYS BEEN WANKERSHIM | Did you mean: Fhqwhgads«Three days on a tree. Hardly enough time for a prelude. When it came to visiting agony, the Romans were hobbyists.» -Mab
-
2013-08-29, 11:20 PM
#7
Dreadlord
Originally Posted by Alcsaar
I’m assuming I should only uninstall C++ 2010 correct?
I also have 2005 and 2008 versions, but I’m fairly certain those are required for older programs.
Yeah just try uninstalling 2010 and install it again.
-
2013-08-29, 11:21 PM
#8
Herald of the Titans
Originally Posted by Crennox
Yeah just try uninstalling 2010 and install it again.
Alright went ahead and knocked that out. No way for me to tell if its fixed immediately or not so I’ll have to just mess around and find out. Thanks for the help.
-
2013-08-29, 11:27 PM
#9
Dreadlord
Originally Posted by Alcsaar
Alright went ahead and knocked that out. No way for me to tell if its fixed immediately or not so I’ll have to just mess around and find out. Thanks for the help.
No problemo
-
2013-08-30, 04:10 AM
#10
Originally Posted by chazus
Curiously, my WoW has been crashing a lot lately (once every couple days) whenever I log off a character to change characters, or when closing wow entirely. I’ve been too lazy to fix the issue, since WoW boots up in 8 seconds anyway (Yay SSD), and everything else works perfectly.
Since it sounds like you -might- have a similar issue, I’ll look into this more to see if I can’t puzzle it out.
WoW crashes are moslikely due to AddOns, heck my computer+wow crashes vanished when I deleted recount from AddOns folder. Need to remove the folders, since WoW loads all AddOns even when disabled (according to blue on forums). Put recount back and crashes were back… and removed and rock solid again…. some buggy AddOn there.
http://support.microsoft.com/kb/929833 …check for runtime error
Last edited by mmoc198caea9b6; 2013-08-30 at 04:18 AM.
-
2013-10-01, 06:45 PM
#11
Herald of the Titans
So I know this is a bit of a necro, but I didn’t want to start a new thread if this one was still around.
I’m still getting the errors after reinstalling the C++ version. Really don’t know whats going on
I think the same error is effecting some of my games, like League of Legends loves to crash with similar errors.
-
2014-07-26, 11:56 AM
#12
Pandaren Monk
Originally Posted by henri2398
Runtime errors occur when you try to open a program or software that has infected with virus or malware or program that you try to open, display several errors due to lack of enough memory space or hardware issues.
So, you don’t have to panick if you get such error, simply read -pcerror-fix.com/how-to-fix-runtime-error-r6016-on-windows-8 and follow the instruction to fix runtime errors.
In short, it’s an error that’s cause lies on your side, since the software has been implemented in such a way that a properly configured and functioning PC wouldn’t have any problems; on your specific machine however an error occurs while you run the program. This is nothing the developer is inherently responsible for since the cause lies on your side and not theirs, most developers however will at least try and assist you in finding the cause, you only have to feed them enough data to analyze. You are the one who ultimately has to fix the problem.
Your rights as a consumer begin and end at the point where you choose not to consume, and not where you yourself influence the consumed goods.
Translation: if you don’t like a game don’t play it.
-
2014-07-27, 12:03 AM
#13
Moderator
Year old necro. Closing this.
Gaming: Dual Intel Pentium III Coppermine @ 1400mhz + Blue Orb | Asus CUV266-D | GeForce 2 Ti + ZF700-Cu | 1024mb Crucial PC-133 | Whistler Build 2267
Media: Dual Intel Drake Xeon @ 600mhz | Intel Marlinspike MS440GX | Matrox G440 | 1024mb Crucial PC-133 @ 166mhz | Windows 2000 Pro
IT’S ALWAYS BEEN WANKERSHIM | Did you mean: Fhqwhgads«Three days on a tree. Hardly enough time for a prelude. When it came to visiting agony, the Romans were hobbyists.» -Mab
-
MMO-Champion
-
»
Forum -
»
Off-Topic Forums -
»
Computer - WTF is a «runtime error» — Error R6016 Not enough space for thread data
»

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
- BB code is On
- Smilies are On
- [IMG] code is On
- [VIDEO] code is On
- HTML code is Off
Find out how to perform a clean boot and more to solve this error
by Ivan Jenic
Passionate about all elements related to Windows and combined with his innate curiosity, Ivan has delved deep into understanding this operating system, with a specialization in drivers and… read more
Published on October 7, 2022
Reviewed by
Vlad Turiceanu
Passionate about technology, Windows, and everything that has a power button, he spent most of his time developing new skills and learning more about the tech world. Coming… read more
- The Microsoft Visual C++ runtime library error is usually caused by the absence of Runtime components of Visual C++.
- Removing the graphics card driver and using drivers updated to the latest version may help.
- Perform a clean boot, as third-party and startup apps can interfere with the OS.
XINSTALL BY CLICKING THE DOWNLOAD FILE
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:
- Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
- Click Start Scan to find Windows issues that could be causing PC problems.
- Click Repair All to fix issues affecting your computer’s security and performance
- Restoro has been downloaded by 0 readers this month.
After updating your PC to the latest version, you expect everything should work perfectly. However, users are complaining that they are prompted by a Microsoft Visual C++ runtime error.
This message reads: This application has requested the runtime to terminate it in an unusual way. Just like with the Microsoft Visual C++ error 0x80070666 error, you can fix this issue with our solutions.
Still, you won’t need to worry because we have a fix to the Visual C++ runtime library error in Windows 10 and you can continue your normal use of the operating system afterward.
What is the Microsoft Visual C++ runtime library error?
There’s also a chance that the Visual C++ feature is broken or corrupt. In this case, we recommend a third-party tool to automatically download all the outdated drivers on your PC.
What is a C++ runtime error?
A program is said to have a runtime error if its syntax is proper yet it has a bug that can only be found while the program is being executed.
This error could be brought on by the absence of Runtime components of Visual C++ Libraries, or it might be the result of a fault with the software.
What causes Microsoft Visual C++ runtime error?
Visual C++ is a basic component of many applications, and if it gets damaged, you’ll get various error messages on your PC.
Many users reported that they Cannot install Visual C++ 2015, and that can negatively impact all applications that require this component.
These issues affect every version of Windows, and many reported Runtime error in Windows 11 as well. Luckily, there are ways to fix these problems, and this guide will show you how to do that.
The Microsoft Visual C++ runtime error can be problematic, and speaking of errors, users reported the following issues as well:
- Microsoft Visual C++ runtime error r6025, r6034, r6016, r6030, r6002 – When this error comes with an error code, it can be due to corrupt files.
- Microsoft Visual C++ runtime error in explorer.exe, qbw32.exe, atibtmon.exe, csrss.exe, nvvsvc.exe: This is caused by a problem with a particular application that depends on the Visual C++ feature. You can fix it by reinstalling the application.
- A Microsoft Visual C++ runtime error in Excel, Internet Explorer, Skype, Steam, Java: In this case also, the error occurs due to an application that depends on one of the Redistributables.
- Microsoft Visual C++ runtime error on startup: This is usually caused by your startup applications.
- Microsoft Visual C++ runtime error in Nvidia: This version of the error is caused by outdated or faulty drivers.
- The Microsoft Visual C++ setup failed, not installing: Several users reported that they can’t install Visual C++. According to them, the setup fails to complete on their PC.
- Microsoft Visual C++ unspecified error: This can be a big problem, but you should be able to fix it using one of our solutions.
- Microsoft Visual C++ keeps crashing: This can also be caused by broken or missing files. You need to reinstall Visual C++ Redistributables to fix it.
- Microsoft Visual C++ runtime error assertion failed: This problem is usually down to the app that gives the error while trying to run it.
- A Microsoft Visual C++ runtime error abnormal program termination: If you encounter this issue on startup, it might be down to one of the startup programs.
- Microsoft Visual C++ runtime error stray: This is an error that occurs if you are missing one of the Redistributables on your PC.
- Mechwarrior 5 Microsoft Visual C++ runtime error: This is another error that occurs if one of the runtime redistributable is missing on your PC.
- Microsoft Visual C++ runtime error games: Sometimes, the error occurs in games because of an outdated or broken Microsoft Visual C++ runtime version.
Can we uninstall Microsoft Visual C++?
Yes, you can uninstall some of the Microsoft Visual C++ Redistributables but it is not advisable. This is because there are software and programs on your PC that rely on one or more of them.
So, when you uninstall any one of the Redistributables, the software that relies on it stops working.
How do I fix the Microsoft Visual C++ runtime library error on Windows 10?
1. Perform a clean boot
- Press the Windows key + R, type msconfig, and click OK to run it.
- Click the Services tab in the top and check the box next to Hide all Microsoft services.
- Now, click the Disable all button.
- Select the General tab at the top.
- From here, tick the Selective startup box and uncheck the box next to Load startup items.
- Finally, click Apply and OK to save changes. and restart your system.
Sometimes, third-party and startup applications can interfere with your system and cause Microsoft Visual C++ runtime errors to appear. To fix this problem, you need to perform a clean boot.
If you do not get the error anymore you will have to do this step, but this time disable the applications one by one and see exactly which of them is causing this error to appear.
Your graphics card driver can often cause Microsoft Visual C++ runtime error, and to fix it you need to reinstall your graphics card driver.
If you do not then it means that you need to update your graphics card driver to the latest version that is compatible with your Windows 10 system version.
To see how to update your drivers, we advise you to check out our detailed guide on how to update your graphics card driver.
Another solution is to automatically update your graphic card drivers using a dedicated tool that keeps you away from harming your PC by updating or installing the wrong drivers.
With DriverFix, you can update all of your drivers quickly and safely with only a few clicks.

DriverFix
Maintain all your drivers updated and automatically boost your device performance.
3. Reinstall Windows 10
- Restart your PC several times during the boot and select Troubleshoot > Reset this PC.
- Choose whether to keep your personal files or Remove everything.
- Insert Windows 10 installation media, if you are asked to do so.
- Select the installed version of Windows and choose Only the drive where Windows is installed > Just remove my files.
- Now, click the Reset button.
- Finally, follow the instructions on the screen to complete the reset.
If the problem still persists, your only option might be to reinstall Windows. Before you do that, try to access your files and back them up. To reinstall Windows 10, you’ll need a Windows installation media.
To create one, you’ll need to use Media Creation Tool on a working PC. After creating an installation media, follow the above steps.
After you successfully reinstalled the operating system, you will have to make sure that you do not update your PC until Microsoft fixes the issues with Visual C++ runtime error.
4. Reinstall Microsoft Visual C++ Redistributables
To fix the Microsoft Visual C++ runtime error, you can learn the simple but efficient method to reinstall your Visual C++ Redistributables. To do that, follow the steps detailed below.
Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.
1. Press the Windows key + S, enter Control panel and select Control Panel from the list.
2. Choose Uninstall a program under the Programs option.
3. Locate Microsoft Visual C++ Redistributable, and double-click it to remove.
4. Finally, click the Yes button when prompted to complete the process.
Once you remove all Redistributables, you have to download them from Microsoft’s website. Keep in mind that you’ll have to install all available Redistributables in order to fix this problem.
Instead of reinstalling the Redistributables, you can also repair your installation by following the steps below:
1. Repeat Steps 1 and 2 from above, and click on the Redistributable to repair.
2. Click the Change button at the top.
3. Click on the Repair button in the setup windows and follow the onscreen instructions to complete the process.
Keep in mind that not all Redistributables support repair. If the Change option from step 2 isn’t available, your only option is to remove the selected Redistributable.
This might be a bit tedious solution, but many users reported that reinstalling Visual C++ Redistributables fixed the problem for them, so be sure to try it.
- How to fix the Activation context generation failed error
- Fix side-by-side configuration error in Windows 10/11
- Fix: Side by side configuration is incorrect [Windows 10/11]
- Full Fix: The file or directory is corrupted and unreadable
5. Create a new user account
- Press the Windows key + I to open the Settings app, and select Accounts.
- Click Family & other people in the left pane and select Add someone else to this PC.
- Click on I don’t have this person’s sign-in information.
- Now click on Add a user without a Microsoft account.
- Enter the desired name for a new account and click on Next.
If you’re still getting Microsoft Visual C++ runtime library error, you might be able to fix the problem simply by creating a new user account.
After creating a new account, you need to sign out from your current account and switch to a new one. If the problem doesn’t appear, it means that your old account is corrupted.
To fix the problem, move your personal files to a new account and use it instead of your old account.
6. Turn off the Compatibility mode
- Right-click the app causing the problem and choose Properties from the menu.
- Go to the Compatibility tab and uncheck Run this program in compatibility mode for.
- Now, click on Apply and OK to save changes.
Compatibility mode is a useful feature that allows you to run old applications on your PC. However, this feature can sometimes cause Microsoft Visual C++ runtime error to appear.
To fix the problem, you need to disable Compatibility Mode by following the above steps. After doing that, try to run the application again and the error message shouldn’t appear.
7. Reinstall the problematic application
- Press the Windows key + I and select Apps.
- Click on the app to remove, select Uninstall, and follow the onscreen instruction to complete the process.
- Finally, download and install the app from official sources.
If you’re getting the Microsoft Visual C++ error while trying to run a specific app, you might want to try reinstalling that application. Sometimes your files can get corrupted, and that can cause this error to appear.
You are done, the steps above will fix your Microsoft Visual C++ runtime library error in the shortest time possible.
For other error that crashes important software on your PC, check out our comprehensive guide to fix the runtime error r6025 in Visual C++.
If you encounter any other troubles along the way, you can write us below in the comments section of the page and we will help you further with this issue.
Also, please leave there any other suggestions or questions you may have.
Still having issues? Fix them with this tool:
SPONSORED
If the advices above haven’t solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.
Newsletter
Find out how to perform a clean boot and more to solve this error
by Ivan Jenic
Passionate about all elements related to Windows and combined with his innate curiosity, Ivan has delved deep into understanding this operating system, with a specialization in drivers and… read more
Published on October 7, 2022
Reviewed by
Vlad Turiceanu
Passionate about technology, Windows, and everything that has a power button, he spent most of his time developing new skills and learning more about the tech world. Coming… read more
- The Microsoft Visual C++ runtime library error is usually caused by the absence of Runtime components of Visual C++.
- Removing the graphics card driver and using drivers updated to the latest version may help.
- Perform a clean boot, as third-party and startup apps can interfere with the OS.
XINSTALL BY CLICKING THE DOWNLOAD FILE
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:
- Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
- Click Start Scan to find Windows issues that could be causing PC problems.
- Click Repair All to fix issues affecting your computer’s security and performance
- Restoro has been downloaded by 0 readers this month.
After updating your PC to the latest version, you expect everything should work perfectly. However, users are complaining that they are prompted by a Microsoft Visual C++ runtime error.
This message reads: This application has requested the runtime to terminate it in an unusual way. Just like with the Microsoft Visual C++ error 0x80070666 error, you can fix this issue with our solutions.
Still, you won’t need to worry because we have a fix to the Visual C++ runtime library error in Windows 10 and you can continue your normal use of the operating system afterward.
What is the Microsoft Visual C++ runtime library error?
There’s also a chance that the Visual C++ feature is broken or corrupt. In this case, we recommend a third-party tool to automatically download all the outdated drivers on your PC.
What is a C++ runtime error?
A program is said to have a runtime error if its syntax is proper yet it has a bug that can only be found while the program is being executed.
This error could be brought on by the absence of Runtime components of Visual C++ Libraries, or it might be the result of a fault with the software.
What causes Microsoft Visual C++ runtime error?
Visual C++ is a basic component of many applications, and if it gets damaged, you’ll get various error messages on your PC.
Many users reported that they Cannot install Visual C++ 2015, and that can negatively impact all applications that require this component.
These issues affect every version of Windows, and many reported Runtime error in Windows 11 as well. Luckily, there are ways to fix these problems, and this guide will show you how to do that.
The Microsoft Visual C++ runtime error can be problematic, and speaking of errors, users reported the following issues as well:
- Microsoft Visual C++ runtime error r6025, r6034, r6016, r6030, r6002 – When this error comes with an error code, it can be due to corrupt files.
- Microsoft Visual C++ runtime error in explorer.exe, qbw32.exe, atibtmon.exe, csrss.exe, nvvsvc.exe: This is caused by a problem with a particular application that depends on the Visual C++ feature. You can fix it by reinstalling the application.
- A Microsoft Visual C++ runtime error in Excel, Internet Explorer, Skype, Steam, Java: In this case also, the error occurs due to an application that depends on one of the Redistributables.
- Microsoft Visual C++ runtime error on startup: This is usually caused by your startup applications.
- Microsoft Visual C++ runtime error in Nvidia: This version of the error is caused by outdated or faulty drivers.
- The Microsoft Visual C++ setup failed, not installing: Several users reported that they can’t install Visual C++. According to them, the setup fails to complete on their PC.
- Microsoft Visual C++ unspecified error: This can be a big problem, but you should be able to fix it using one of our solutions.
- Microsoft Visual C++ keeps crashing: This can also be caused by broken or missing files. You need to reinstall Visual C++ Redistributables to fix it.
- Microsoft Visual C++ runtime error assertion failed: This problem is usually down to the app that gives the error while trying to run it.
- A Microsoft Visual C++ runtime error abnormal program termination: If you encounter this issue on startup, it might be down to one of the startup programs.
- Microsoft Visual C++ runtime error stray: This is an error that occurs if you are missing one of the Redistributables on your PC.
- Mechwarrior 5 Microsoft Visual C++ runtime error: This is another error that occurs if one of the runtime redistributable is missing on your PC.
- Microsoft Visual C++ runtime error games: Sometimes, the error occurs in games because of an outdated or broken Microsoft Visual C++ runtime version.
Can we uninstall Microsoft Visual C++?
Yes, you can uninstall some of the Microsoft Visual C++ Redistributables but it is not advisable. This is because there are software and programs on your PC that rely on one or more of them.
So, when you uninstall any one of the Redistributables, the software that relies on it stops working.
How do I fix the Microsoft Visual C++ runtime library error on Windows 10?
1. Perform a clean boot
- Press the Windows key + R, type msconfig, and click OK to run it.
- Click the Services tab in the top and check the box next to Hide all Microsoft services.
- Now, click the Disable all button.
- Select the General tab at the top.
- From here, tick the Selective startup box and uncheck the box next to Load startup items.
- Finally, click Apply and OK to save changes. and restart your system.
Sometimes, third-party and startup applications can interfere with your system and cause Microsoft Visual C++ runtime errors to appear. To fix this problem, you need to perform a clean boot.
If you do not get the error anymore you will have to do this step, but this time disable the applications one by one and see exactly which of them is causing this error to appear.
Your graphics card driver can often cause Microsoft Visual C++ runtime error, and to fix it you need to reinstall your graphics card driver.
If you do not then it means that you need to update your graphics card driver to the latest version that is compatible with your Windows 10 system version.
To see how to update your drivers, we advise you to check out our detailed guide on how to update your graphics card driver.
Another solution is to automatically update your graphic card drivers using a dedicated tool that keeps you away from harming your PC by updating or installing the wrong drivers.
With DriverFix, you can update all of your drivers quickly and safely with only a few clicks.

DriverFix
Maintain all your drivers updated and automatically boost your device performance.
3. Reinstall Windows 10
- Restart your PC several times during the boot and select Troubleshoot > Reset this PC.
- Choose whether to keep your personal files or Remove everything.
- Insert Windows 10 installation media, if you are asked to do so.
- Select the installed version of Windows and choose Only the drive where Windows is installed > Just remove my files.
- Now, click the Reset button.
- Finally, follow the instructions on the screen to complete the reset.
If the problem still persists, your only option might be to reinstall Windows. Before you do that, try to access your files and back them up. To reinstall Windows 10, you’ll need a Windows installation media.
To create one, you’ll need to use Media Creation Tool on a working PC. After creating an installation media, follow the above steps.
After you successfully reinstalled the operating system, you will have to make sure that you do not update your PC until Microsoft fixes the issues with Visual C++ runtime error.
4. Reinstall Microsoft Visual C++ Redistributables
To fix the Microsoft Visual C++ runtime error, you can learn the simple but efficient method to reinstall your Visual C++ Redistributables. To do that, follow the steps detailed below.
Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.
1. Press the Windows key + S, enter Control panel and select Control Panel from the list.
2. Choose Uninstall a program under the Programs option.
3. Locate Microsoft Visual C++ Redistributable, and double-click it to remove.
4. Finally, click the Yes button when prompted to complete the process.
Once you remove all Redistributables, you have to download them from Microsoft’s website. Keep in mind that you’ll have to install all available Redistributables in order to fix this problem.
Instead of reinstalling the Redistributables, you can also repair your installation by following the steps below:
1. Repeat Steps 1 and 2 from above, and click on the Redistributable to repair.
2. Click the Change button at the top.
3. Click on the Repair button in the setup windows and follow the onscreen instructions to complete the process.
Keep in mind that not all Redistributables support repair. If the Change option from step 2 isn’t available, your only option is to remove the selected Redistributable.
This might be a bit tedious solution, but many users reported that reinstalling Visual C++ Redistributables fixed the problem for them, so be sure to try it.
- How to fix the Activation context generation failed error
- Fix side-by-side configuration error in Windows 10/11
- Fix: Side by side configuration is incorrect [Windows 10/11]
- Full Fix: The file or directory is corrupted and unreadable
5. Create a new user account
- Press the Windows key + I to open the Settings app, and select Accounts.
- Click Family & other people in the left pane and select Add someone else to this PC.
- Click on I don’t have this person’s sign-in information.
- Now click on Add a user without a Microsoft account.
- Enter the desired name for a new account and click on Next.
If you’re still getting Microsoft Visual C++ runtime library error, you might be able to fix the problem simply by creating a new user account.
After creating a new account, you need to sign out from your current account and switch to a new one. If the problem doesn’t appear, it means that your old account is corrupted.
To fix the problem, move your personal files to a new account and use it instead of your old account.
6. Turn off the Compatibility mode
- Right-click the app causing the problem and choose Properties from the menu.
- Go to the Compatibility tab and uncheck Run this program in compatibility mode for.
- Now, click on Apply and OK to save changes.
Compatibility mode is a useful feature that allows you to run old applications on your PC. However, this feature can sometimes cause Microsoft Visual C++ runtime error to appear.
To fix the problem, you need to disable Compatibility Mode by following the above steps. After doing that, try to run the application again and the error message shouldn’t appear.
7. Reinstall the problematic application
- Press the Windows key + I and select Apps.
- Click on the app to remove, select Uninstall, and follow the onscreen instruction to complete the process.
- Finally, download and install the app from official sources.
If you’re getting the Microsoft Visual C++ error while trying to run a specific app, you might want to try reinstalling that application. Sometimes your files can get corrupted, and that can cause this error to appear.
You are done, the steps above will fix your Microsoft Visual C++ runtime library error in the shortest time possible.
For other error that crashes important software on your PC, check out our comprehensive guide to fix the runtime error r6025 in Visual C++.
If you encounter any other troubles along the way, you can write us below in the comments section of the page and we will help you further with this issue.
Also, please leave there any other suggestions or questions you may have.
Still having issues? Fix them with this tool:
SPONSORED
If the advices above haven’t solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.