Skip to content
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

Error getting stack trace #1339

Closed
alanbirtles opened this issue Dec 12, 2017 · 14 comments
Closed

Error getting stack trace #1339

alanbirtles opened this issue Dec 12, 2017 · 14 comments
Labels
bug debugger fixed Check the Milestone for the release in which the fix is or will be available.

Comments

@alanbirtles
Copy link

When trying to get the stack trace after stopping at a breakpoint or exception visual studio code is throwing a NullReferenceException.
I'm running cpptools 0.14.4 on Centos 7 in vs code 1.18.1
stack trace of error:
stacktrace.txt

@nzjony
Copy link

nzjony commented Dec 12, 2017

I also started having a similar problem starting today, please see image:

stack_trace_error

I'm running also running cpptools 0.14.4, Ubuntu 16.04 with code 1.18.1

@pieandcakes
Copy link
Contributor

Can either of you tell me if this is 100% reproducible and what the steps are to hit this?

@sean-mcmanus sean-mcmanus added the more info needed The issue report is not actionable in its current state label Dec 12, 2017
@pieandcakes
Copy link
Contributor

I have CentOS 7 with 0.14.4 installed with a multithreaded C++ app. I have set breakpoints and also hit pause to try and replicate this and i'm not able to.

@sean-mcmanus
Copy link
Collaborator

sean-mcmanus commented Dec 12, 2017

I also am not able to repro this on Mint/Ubuntu 16.04. Do you have a breakpoint in some file "special" file or is there anything else unusual about your scenario? What is your debugger type? gdb?

@alanbirtles
Copy link
Author

alanbirtles commented Dec 12, 2017

I don't know how to reproduce it but I was unable to hit these breakpoints all day, this was with gdb

@pieandcakes
Copy link
Contributor

Ok. I think I might have figured out what the problem is. The log file helped out immensely. I'm going to see if I can make a fix.

@pieandcakes
Copy link
Contributor

@alanbirtles @nzjony Can either of you try this release and see if it fixes the problem?
Steps:

  1. Download the file.
  2. Uninstall the existing extension.
  3. Go to Extensions -> ... -> Install from VSIX and choose the file that was downloaded.

It should prompt you to reload. Then try debugging.

Please let me know.

Thanks

@pieandcakes
Copy link
Contributor

Can anyone confirm if this fixes their issue? I would like to know if I need to investigate more. Thanks!

@ytimenkov
Copy link

@pieandcakes I've had similar issue when debugging remote target on CentOS 7.4 (debugger just failed to show any call stack and execute any command when execution stopped at breakpoint).

With 0.14.5-insiders release the problem is gone and debugger started working again.
Thanks for quick fix!

@alanbirtles
Copy link
Author

seems to work for me too

@alexbaden
Copy link

Resolved here, Arch w/ code 1.18.1.

@josesimoes
Copy link

I stumbled on this today too. Installed the fix from @pieandcakes and it's gone.
If this is relevant I'm using VS Code on a Windows 10 64bits setup.

@pieandcakes
Copy link
Contributor

We're probably releasing this fix next week with a few other bugfixes.

@pieandcakes pieandcakes added fixed Check the Milestone for the release in which the fix is or will be available. quick fix and removed more info needed The issue report is not actionable in its current state quick fix labels Dec 15, 2017
@pieandcakes pieandcakes added this to the December 2017 Bug Fix milestone Dec 15, 2017
@sean-mcmanus
Copy link
Collaborator

Fixed with 0.14.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug debugger fixed Check the Milestone for the release in which the fix is or will be available.
Projects
None yet
Development

No branches or pull requests

7 participants