Skip to content

Conversation

@brianbbsu
Copy link
Contributor

Info

Originally, the __del__ function of gobj called super(gcurve, self).__del__(), while gcurve is inherited from gobj, so gobj.__del__() is being called, again.

This caused an infinite loop, resulted in RecursionError, as the recursion depth limit of Python was hit.

I think this is a typo, and super(gobj, self).__del__() is what we expect.

Step to reproduce

Using the original code, the error can be reproduced with just two lines of code:

from vpython import *
curve1 = gcurve()

After closing the browser, Python deleted the curve1 object, and thus triggered the bug.

@mwcraig
Copy link
Contributor

mwcraig commented Oct 17, 2019

Thanks for the PR! Can you please also add your name to to contributors list here: https://github.com/vpython/vpython-jupyter/blob/master/CONTRIBUTORS.md

Feel free to enter

@mwcraig mwcraig added this to the 7.5.2 milestone Oct 17, 2019
@brianbbsu
Copy link
Contributor Author

Thanks for the PR! Can you please also add your name to to contributors list here: https://github.com/vpython/vpython-jupyter/blob/master/CONTRIBUTORS.md

Feel free to enter

Done.

Tell me if there's other things I can help. Thanks a lot.

@brianbbsu
Copy link
Contributor Author

Oops, I don't know why 6294f4e failed to build, it's just a simple change on a text document.

@mwcraig
Copy link
Contributor

mwcraig commented Oct 17, 2019

Those seem to be conda problems, I've restarted those jobs.

@mwcraig
Copy link
Contributor

mwcraig commented Oct 17, 2019

Note to self: this line may be the underlying issue with the mac build, check with the conda folks about it: https://travis-ci.com/vpython/vpython-jupyter/jobs/246536941#L759

@brianbbsu
Copy link
Contributor Author

Is there anything I can do to fix the issue?

@mwcraig
Copy link
Contributor

mwcraig commented Oct 18, 2019

If you want to try reproducing the error locally that would be great, but would require a Mac and setting up conda build. I'll have a bit of time to work on it over the weekend.

@mwcraig
Copy link
Contributor

mwcraig commented Oct 24, 2019

thanks again, @brianbbsu, I'm merging this! (The test failure was completely unrelated to anything in vpython)

@mwcraig mwcraig merged commit 06bb235 into vpython:master Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants