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

Debug stack reference lost/reset when another thread is executed in versions 4.22.0 and 4.22.1 #1250

Closed
duduabreu opened this issue May 14, 2024 · 9 comments
Assignees
Labels
for: eclipse something that is specific for Eclipse type: bug

Comments

@duduabreu
Copy link

duduabreu commented May 14, 2024

Describe the bug
In versions 4.22.0 and 4.22.1 of sts4 eclipse distribution for linux, while debugging the code, if I'm paused at a breakpoint and another thread is executed, displaying a message in the console tab, the debug stack reference is lost/reset.

As a result, the step into, step over, and step return buttons become disabled, and I lose the values of my variables in the variables tab.

To return to normal, I need to expand the System Thread again and click on the first item in the stack. However, every time another thread is executed, I lose this reference again.

To Reproduce
1 - Run the program in debug mode.
2 - Set a breakpoint in the program.
3- While paused at the breakpoint, have another thread display a message in the console tab.

I tried to take a screenshot of the first moment and the second moment. I hope it helps, and I apologize for deleting a lot of information from the images, but it's for confidentiality reasons.

First Moment (The debug reference has not been lost yet.)
first

Second Moment (The debug reference has already been lost.)
second

@BoykoAlex
Copy link
Contributor

@duduabreu I think the problem is with Eclipse Debug UI rather than STS's plugins... Looks like the problem has been introduced in Eclipse 4.31. Try STS distribution on Eclipse 4.32 snapshot via our snapshot build site: https://cdn.spring.io/spring-tools/snapshot/STS4/nightly-distributions.html
If the issue is still there I'd report it to Eclipse via https://bugs.eclipse.org/bugs/

@duduabreu
Copy link
Author

I downloaded spring-tool-suite-4-4.23.0.202405141928-SNAPSHOT-e4.32.0-linux.gtk.x86_64.tar.gz, but the problem persisted. I will report it on the suggested site. Thank you in advance.

@mauricio-rodrigues-vega

I also have this problem, has anyone managed to solve it?

@martinlippert
Copy link
Member

@duduabreu Did you report it to Eclipse? If so, do you have a URL to the report?

Aside from that, the issue should probably be reported to https://github.com/eclipse-jdt/eclipse.jdt.debug, if that hasn't happened yet. Before doing that, it would be good to verify that the issue is still around via trying the latest Eclipse SDK builds from https://download.eclipse.org/eclipse/downloads/

The latest Eclipse milestone or RC builds would be a good candidate - or even the latest integration builds to double check even the absolutely latest code.

@duduabreu
Copy link
Author

@martinlippert i didn't.

I tried on version 4.23 of STS and the bug still remaining.

@martinlippert
Copy link
Member

@martinlippert i didn't.

I tried on version 4.23 of STS and the bug still remaining.

Please try with the latest Eclipse 2024-09 builds and report the issue against https://github.com/eclipse-jdt/eclipse.jdt.debug.

@martinlippert martinlippert closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2024
@martinlippert
Copy link
Member

And would be awesome if you could paste a link to the reported issue once you filed it, so that we can keep track of it here.

@christian-elsen
Copy link

This one here more or less describes this case: eclipse-jdt/eclipse.jdt.debug#345

@martinlippert
Copy link
Member

This one here more or less describes this case: eclipse-jdt/eclipse.jdt.debug#345

Thanks @christian-elsen for the reference to the JDT debug issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: eclipse something that is specific for Eclipse type: bug
Projects
None yet
Development

No branches or pull requests

5 participants