memory profiler crashing when taking snapshot
SR_BRU
Posts: 4 New member
Hi
If we start our application from within the .NET memory profiler, when taking the snapshot the profiler crashes.
and
If we start the application in independent mode, and attach the Memory profiler, then the application crash when taking the snapshot.
In both ways we are not able to analyze the memory of the application.
Logs for both cases attached.
Can you please give some suggestion on how to proceed?
If we start our application from within the .NET memory profiler, when taking the snapshot the profiler crashes.
and
If we start the application in independent mode, and attach the Memory profiler, then the application crash when taking the snapshot.
In both ways we are not able to analyze the memory of the application.
Logs for both cases attached.
Can you please give some suggestion on how to proceed?
Tagged:
Answers
Not much help I'm afraid, but possibly an additional case of the issue?
Based on the logfile, it appears that the process you've launched lacks the debug permissions to perform the task. You or your administrator will need to assign your account the 'Debug programs' privileges.
If it still doesn't work after that modification, please come back to us.
Both the application and the memory profiler is started using the option "run as administrator."
the account itself had been given administrator privileges, and also when starting application "run as administrator." option is used.
I'm sorry to say, this is largely out of our hands, as the logs state 'This process does not have the debug privilege' and admin privileges aren't equivalent to that policy being allowed. However if it is allowed, the remaining avenue you could explore would be to check the profiler service and see what account / privilege it's running under and elevate it.
https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debug-privilege
You're essentially in this scenario https://stackoverflow.com/questions/59745613/do-not-have-enough-privilege-on-visual-studio-2019-to-attach-w3p-process-on-loca
when running in light weight mode the Redgate can attach and work correctly.
Only when its in lab mode the issue is there. It attaches to the exe correctly, but the issue happens when trying to take snapshot.
if the application is started from Profiler then the profiler crashes, if its attached to profiler then application crashes.
I'd probably approach troubleshooting this application as thought it were two separate apps given the disparity of functionality, Does your lab app have sufficient logging to identify where it's falling down?
Presumably in an area of functionality that doesn't exist in the other mode?
Lastly could you estimate the average snapshot size?