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

Segmentation fault o.O #410

Closed
stew822 opened this issue Feb 29, 2012 · 3 comments
Closed

Segmentation fault o.O #410

stew822 opened this issue Feb 29, 2012 · 3 comments
Assignees
Labels
Milestone

Comments

@stew822
Copy link

stew822 commented Feb 29, 2012

Hi, and first of all, cool library :)

Anyhoo, when you do:
| mywidget = Widget()
| mywidget.add_widget( mywidget )
it ends up (on my system) with a segmentation fault (the code is actually inside a class derived from App, in the build() function).

I just thought you'd like to know. Here's the output from my application, with the level or whatever it was set to "debug": http://paste.pocoo.org/show/558507/

(sorry about all the other stuff my application is spewing out - I'm trying to parse a html-like file and generate a GUI based on that. I tested it on a different python file and it also resulted in a segmentation fault)

I'm using ubuntu, maybe 10.10, on a recent laptop.

@rubik
Copy link

rubik commented Feb 29, 2012

You are adding your widget to itself! Why are you doing that?

@stew822
Copy link
Author

stew822 commented Feb 29, 2012

It was an accident. I've fixed it now. My code's pretty convulted.

Anyway, I figure you guys could stop the fault and instead replace the message with something along the lines of: "You're an idoit, why are you adding a widget to itself?"

@ghost ghost assigned tito Feb 29, 2012
@tito
Copy link
Member

tito commented Feb 29, 2012

Seem legit, will push a fix for that case. Note that more complex dependices recursion will be not fixed for the moment.

@tito tito closed this as completed in f7f4732 Mar 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants