-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
You want to finish 2 frames, but stack size is only -3 #127
Comments
Note: This occurs usually after I enter |
This is really weird @nritholtz . I do need a sample app, otherwise I'm totally lost here... :( |
You want to finish 2 frames, but stack size is only -373 What I can tell you is Rails 4.1.6, Ruby 2.1.2-p95, let me know what sort of details will help and I will copy and paste them all in next time I get this hit. |
Ok, this is definitely a regression, sorry about that. I'll fix it soon. |
Let me know if you need anymore details, I am more then happy to produce when I hit the error. Normally a restart of the server resolves it as well. |
+1 same error |
Guys, I'm pretty sure the offending commit is this one, but I'd like to reproduce this myself cause I think that commit is the way to go and I wouldn't like it reverted. So I'd like to properly fix this. Does anyone have a sample app that exhibits this behavior? If not, specifying |
I will be working on my project throughout the weekend and will more then likely hit it so I will add and post back. |
👍 If you can copy paste some code context around your |
Is there anyway to have the debug information sent to a separate log file? Just tested it with a debugger point and have been waiting 5 minutes for the code to continue! |
No... can you use shell redirections? |
+1. Error stacktrace pasted here. http://pastebin.com/94kngDxc |
Can someone hitting the issue try against the |
I will update to that branch when working tonight and let you know if I encounter it again. |
👍 |
Hi all, I have tried your fix and I think it works, I have been suffering that bug in a concrete place inside my app and now it works like a charm. Lets see what others say about their tests. |
I am new to Ruby and ROR. Below are my steps,
Hope the above is the correct way to do...When i run the application, I am still getting a bug "/home/dev/.gem/ruby/2.1.0/gems/byebug-4.0.3/lib/byebug/attacher.rb:15:in |
You can do the following, I guess: Easier. |
To try the fix, add this to your gemfile
|
Thanks for the cool way. Ignore my comments because i forgot to switch branch and was using code from master. |
@ketuls No problem, let me know if it works for you. |
Yuppy . I tried around 5 times & it works fine for me. |
@nritholtz @jbrodie @sofibraun Have you tried the patch? Did you find any problems? |
I am using byebug 5.0.0 but still facing this issue. |
I am also getting this issue. It seems to be related to the way that you exit the pry debugger, but I cannot get it to consistently reproduce. This brings down my debugging session 3 or 4 times within a single bug and is seriously slowing me down so any advice would be appreciated. byebug (4.0.3) |
@kyprifog @kamal-github If you still experience this using latest |
I am getting this error with |
More than happy to reopen if you provide a reproduction using latest master with ruby |
Do you want Ruby |
Sorry, I meant |
I double-checked for you. Yes, without it, the same steps I'm using to pry work fine. |
Thanks. So... the repro? |
Any progress on this? |
@youconsulting The issue is waiting for a reproduction. Your question make me think that you are experiencing the issue too, so it looks like the ball is in your court. |
@deivid-rodriguez what logs do you want? How can I help :) |
I need a way to reproduce the issue myself using recent rubies. As you can imagine, I can't fix it if I can't see it happening... |
@deivid-rodriguez what solved the issue for me specifically is going from the following gems: pry (0.10.2) Too currently the following setup: gem 'pry-byebug', '=1.3.3' pry (0.10.2) Only problem is that next and step is not working yet, you can follow the progress here: http://stackoverflow.com/questions/32780971/pry-remote-not-triggered-rails-4/32818381#32818381 |
I'm totally lost regarding why downgrading the libraries would fix this issue. Are you sure you are posting to the right issue? I think you are refering to deivid-rodriguez/pry-byebug#33 |
Well using the my gems described above also fixed the issue with "You want to finish 2 frames..." |
Finally, had to switch to binding.pry |
I also had the same problem, and using the configuration proposed by @youconsulting in this comment also solved my issue. |
i'm seeing this issue in both byebug and binding.pry using ruby 2.3.0 |
I'd like to help you people with this issue, but as you can imagine, if I can't see it happening, I can't fix it. |
What do you mean "you people"? |
Sorry about my terrible English. I mean "people still facing this issue". What do you think I meant? |
@derekcannon So are you still getting the issue? I asked you for a reproduction 10 months ago and you didn't reply. |
i just tried to reproduce this with a simple example and couldn't. i've On Wed, May 25, 2016 at 1:11 AM, David Rodríguez [email protected]
|
@zenkalia what ruby version are you using? Is it one of the versions recommended in the README? |
@deivid-rodriguez i was seeing the issue in 2.3.0 but just upgraded to 2.3.1 and haven't seen the issue again. |
@zenkalia That's weird. I'm not aware of any changes in 2.3.1 that could improve (or worsen) byebug's behaviour... |
I just got it with ruby 2.3.1. Unfortunately, I'm running a huge app, so can't easily distill down to a simple test case. It seems to only happen when I'm running a Rails app under pow.cx (i.e. no pty), but works fine when I use |
FWIW I just saw it for the first time. It was on the console (Ruby 2.3.1, Byebug 9.0.6, using pry) Relevant trace:
|
I can reliably reproduce this issue in my regretfully large, regretfully private repo. ruby 2.3.8p459 (2018-10-18 revision 65136) [x86_64-linux] Reproduction is as follows,
Interestingly, the stack size keeps "shrinking" to lower and lower negative numbers. It seems like some stack size counter is not being properly reset, or perhaps frames are not being accounted for as they are pushed. I can probably provide more details if you can ask for specifics. A unredacted stack trace won't be available, sorry. :( |
I'm currently pointing to master, specifically commit '7c8c0db25f3efe5878477449c5b9e070b41beabe'
Randomly when starting or in the middle of using byebug inside my cucumber/capybara steps, I get the error
The stack trace isn't really showing anything useful, except at some points along the way the negative number at the end of the error message, keeps increasing until the thread (test) is finished.
Unfortunately I don't have a sample app to provide, since this proprietary project. However, if necessary and I can find some time to see if I can scrape one together.
Any ideas?
The text was updated successfully, but these errors were encountered: