#226 pydev debugger often freezing

1.0.1
closed-works-for-me
debugger (210)
5
2006-02-16
2006-02-09
No

Hi Fabio,

Eclipse: 3.1
PyDev: 1.0.1
OS: Windows XP
Java: Sun JRE 1.5.0_05

I've been facing this gentle freeze very often while
debugging. It doesn't have a definite time when it
freezes. Sometimes it also freezes withing 5 minutes
while the debugger is running.

I suspect the number of steps aren't being handled
properly by the debugger properly. If I "step in"
with some time gap, say one step a second or two, it
works.

The freeze is soft and isn't crashing anything. It
just doesn't proceed. The only way to recover is to
restart the debugging process.

rrs

Discussion

1 2 > >> (Page 1 of 2)
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-02-10
    • status: open --> pending
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-02-10

    Logged In: YES
    user_id=617340

    So, that happens only while stepping in?

     
  • Ritesh Raj Sarraf

    • status: pending --> open
     
  • Ritesh Raj Sarraf

    Logged In: YES
    user_id=382018

    Yes,
    I can't exactly tell you about *when* it happens.
    Sometimes it can be just a minute and sometimes after a
    lot of recursions in a loop.
    It isn't definite.
    If you tell me some steps, I can do it for you.

    Regards,
    rrs

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-02-10

    Logged In: YES
    user_id=617340

    Seems like some threading issue... Make a test for me: there
    is a 'big if clause in the pydevd.py' file
    (org.python.pydev.debug_xxx/pyrsr/pydevd.py)

    Try just changing the order of the assigns:
    t.additionalInfo.pydev_state
    t.additionalInfo.pydev_step_cmd

    to
    t.additionalInfo.pydev_step_cmd
    t.additionalInfo.pydev_state

    (that's around line 237).

    The result would be something as:

    elif id == CMD_THREAD_RUN:
    t = pydevd_findThreadById(text)
    if t:
    t.additionalInfo.pydev_step_cmd = None
    t.additionalInfo.pydev_state =
    PyDB.STATE_RUN

    elif id == CMD_STEP_INTO or id == CMD_STEP_OVER
    or id == CMD_STEP_RETURN:
    #we received some command to make a single step
    t = pydevd_findThreadById(text)
    if t:
    t.additionalInfo.pydev_step_cmd = id
    t.additionalInfo.pydev_state =
    PyDB.STATE_RUN

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-02-10
    • status: open --> pending
     
  • Ritesh Raj Sarraf

    Logged In: YES
    user_id=382018

    I've done the changes and am testing. Up till now, I've
    had another 2 freezes.

    Regards,
    rrs

     
  • Ritesh Raj Sarraf

    • status: pending --> open
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-02-10

    Logged In: YES
    user_id=617340

    try replacing it with the file attached: pydevd.py v01

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-02-10
    • status: open --> pending
     
  • Ritesh Raj Sarraf

    Logged In: YES
    user_id=382018

    I think you forgot to attach the file.

     
  • Ritesh Raj Sarraf

    • status: pending --> open
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-02-10
    • milestone: 519173 --> 1.0.1
    • status: open --> pending
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-02-10

    pydevd.py 01

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-02-10

    Logged In: YES
    user_id=617340

    Yeap, didn't see that check...

    Now it should go...

    Cheers,

    Fabio

     
  • Ritesh Raj Sarraf

    • status: pending --> open
     
  • Ritesh Raj Sarraf

    Logged In: YES
    user_id=382018

    Thanks Fabioz,

    I tested and am still testing the new pydevd.py file you
    mentioned.
    The difference is that now the freeze is very low. It
    occurs once in about 10 times as compared to earlier where
    it occured once almost every 3 times.
    The first freeze I got was almost stepping in after 100
    times.
    I guess whatever you changed needs some more tweaking.
    I'll still keep testing with it. If you have any newer
    changes, please let me know and I'll test that too.

    Regards,
    rrs

     
  • Ritesh Raj Sarraf

    Logged In: YES
    user_id=382018

    The improvement is huge.
    But I'm still able to make it freeze.
    I've used the new file totally for around 8 hours in which
    it has frozen for around 10 times only.

    rrs

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-02-12

    pydevd.py 02

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-02-12

    Logged In: YES
    user_id=617340

    Ok, I made some more changes again (mostly in making it more
    thread-safe), so, please test to see if you still have
    freezes (pydevd.py 02).

    Cheers,

    Fabio

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-02-12
    • status: open --> pending-accepted
     
  • Ritesh Raj Sarraf

    • status: pending-accepted --> open-accepted
     
  • Ritesh Raj Sarraf

    Logged In: YES
    user_id=382018

    The improvement pydevd.py v02 has been excellent. I've not
    found any freeze in past 30 minutes. Let me test it for
    some more time and then we can close the bug as FIXED. :-)

    Regards,
    rrs

     
  • Ritesh Raj Sarraf

    Logged In: YES
    user_id=382018

    Hi Fabio,

    Sorry for the delay.
    As mentioned in the previous comment, the improvements are
    tremendous. I've had very few freezes (maybe around 5-6
    freezes in 4 hours of work).
    Maybe we can close the defect for now and you can put the
    fix into the new release.

    Ritesh

     
  • Ritesh Raj Sarraf

    Logged In: YES
    user_id=382018

    Sorry to say but in the last 15 minutes after my comment
    I've had 4 freezes. :-(

     
1 2 > >> (Page 1 of 2)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks