Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

VS Crash - A heap has been corrupted
Silvenga
#1 Posted : Wednesday, August 7, 2019 3:28:46 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 1/24/2016(UTC)
Posts: 40
Location: United States of America

Was thanked: 3 time(s) in 3 post(s)
I'm seeing a crash in VS2019 on startup running NCrunch 3.29.

Quote:

Unhandled exception at 0x7766F8CD (ntdll.dll) in devenv.exe.18532.dmp: 0xC0000374: A heap has been corrupted (parameters: 0x776AB960).

ntdll.dll!7766f8cd() Unknown
ntdll.dll![Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] Unknown
[External Code]
[Managed to Native Transition]
EasyHook.dll!EasyHook.NativeAPI.LhInstallHook(System.IntPtr InEntryPoint, System.IntPtr InHookProc, System.IntPtr InCallback, System.IntPtr OutHandle) Unknown
EasyHook.dll!EasyHook.LocalHook.Create(System.IntPtr InTargetProc, System.Delegate InNewProc, object InCallback) Unknown
nCrunch.VSAddIn.dll!nCrunch.VSAddIn.LaaFix.() Unknown
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) Unknown
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() Unknown
[Native to Managed Transition]
[External Code]


I can provide a couple of dumps directly - they are large 2GB.
Silvenga
#2 Posted : Wednesday, August 7, 2019 3:40:45 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 1/24/2016(UTC)
Posts: 40
Location: United States of America

Was thanked: 3 time(s) in 3 post(s)
Deleting the cache from the `.vs` mitigates the issue - so no idea what could be happening.
Remco
#3 Posted : Thursday, August 8, 2019 2:00:41 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Thanks for sharing this issue. The code shown above is an old workaround we implemented to correct VS process memory management issues in older operating systems. I suspect the problem here may actually be indirect - although we're on the stack trace for this one, it's possible there is already heap corruption in place or there may be a plugin clash involved.

Can you confirm if this problem is still present for you? Or can be reproduced?
Silvenga
#4 Posted : Thursday, August 8, 2019 6:09:21 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 1/24/2016(UTC)
Posts: 40
Location: United States of America

Was thanked: 3 time(s) in 3 post(s)
Visual Studio 2019 has been randomly crashing, since GA (The only third party plugins installed are R# and NCrunch). The fix is normally to delete the .vs folder cache.

This was the first time I was able to catch a dump, and every crash since has had the same stacktrace.

- Still present? - likely, but I can't prove that. The problem is currently mitigated.
- Reproducible? - I can reproduce the crash after the first occurance (until I delete the .vs folder cache), VS likes to crash silently and restart (so it loops until I kill VS with Taskmgr). I can't reproduce the first crash though.

What kind of sucks is that I can't live without NCrunch or R# :D - my productivity will definitely drop to test if either one causes the problem. If you don't think NCrunch is at fault, then I'll likely have to live with it. R# and VS is unlikely to provide any help with NCrunch in the stacktrace.
Remco
#5 Posted : Thursday, August 8, 2019 10:51:52 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Silvenga;13735 wrote:

What kind of sucks is that I can't live without NCrunch or R# :D - my productivity will definitely drop to test if either one causes the problem. If you don't think NCrunch is at fault, then I'll likely have to live with it. R# and VS is unlikely to provide any help with NCrunch in the stacktrace.


Thanks for the extra detail. I can understand that there isn't really anything else you can do here. We've created a task on our side to pull this code out, as it's unlikely people are still using the environments it was intended to fix up. Probably it's creating more problems than it solves now.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.050 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download