VSDebugPro icon indicating copy to clipboard operation
VSDebugPro copied to clipboard

memdump error

Open sunbinjin opened this issue 4 years ago • 6 comments

system:win10 vs:2017 app:x64 error wen memdump

the memory is big than dump size.

image

sunbinjin avatar Dec 26 '20 06:12 sunbinjin

dumpmem -f e:\memdump.bin 0x00000205F5241080 16588800 Couldn`t dump memory to file! Error code:-1 - NtdbgFail.

sunbinjin avatar Dec 26 '20 06:12 sunbinjin

is it always happening ?. Could you provide more details ?.

ovidiuvio avatar Dec 28 '20 19:12 ovidiuvio

I tried again today. It's successful. Maybe it can't be repeated.

sunbinjin avatar Dec 29 '20 07:12 sunbinjin

I'm having the same issue:

>dumpmem sample.raw mImageData mSize.X * mSize.Y * 4
Couldn`t dump memory to file!
Error code:-1 - NtdbgFail.
>dumpmem d:\sample.raw mImageData mSize.X * mSize.Y * 4
Couldn`t dump memory to file!
Error code:-1 - NtdbgFail.
>dumpmem -f d:\sample.raw mImageData mSize.X * mSize.Y * 4
Couldn`t dump memory to file!
Error code:-1 - NtdbgFail.
>dumpmem -f d:\Temp\sample.raw mImageData mSize.X * mSize.Y * 4
Couldn`t dump memory to file!
Error code:-1 - NtdbgFail.
>dumpmem -f d:/Temp/sample.raw mImageData mSize.X * mSize.Y * 4
Couldn`t dump memory to file!
Error code:-1 - NtdbgFail.
>dumpmem -f d:/Temp/sample.bin mImageData mSize.X * mSize.Y * 4
Couldn`t dump memory to file!
Error code:-1 - NtdbgFail.
>dumpmem -f d:/Temp/sample.bin 0x000002c9b2f30000 mSize.X * mSize.Y * 4
Couldn`t dump memory to file!
Error code:-1 - NtdbgFail.
>dumpmem -f d:/Temp/sample.raw mImageData mSize.X * mSize.Y * 4
Couldn`t dump memory to file!
Error code:-1 - NtdbgFail.
>

Environment: Win 10 Pro x64 Visual Studio 2019 16.8.6

The issue happens all the time. I've also tried running VS as an administrator but with same effect. I've also noticed that plugin settings are lost everytime after I restart VS.

heretique avatar Mar 03 '21 07:03 heretique

Apparently restarting the computer after the plugin is installed does make the dump succeed.

>dumpmem -f d:\Temp\sample.raw mImageData mSize.X * mSize.Y * 4
Wrote: 2240000 bytes to: <file://d:\Temp\sample.raw>.
>

however the settings are still lost after each restart of VS.

heretique avatar Mar 03 '21 08:03 heretique

Apparently restarting the computer after the plugin is installed does make the dump succeed.

>dumpmem -f d:\Temp\sample.raw mImageData mSize.X * mSize.Y * 4
Wrote: 2240000 bytes to: <file://d:\Temp\sample.raw>.
>

however the settings are still lost after each restart of VS.

Hi,

for memdump error, latest build on github releases page 3.4.0.0 changes the way memory is read / written. This should fix the occasional access denied error.

ovidiuvio avatar Mar 16 '21 18:03 ovidiuvio