enaml icon indicating copy to clipboard operation
enaml copied to clipboard

Repeatable segfault in ToolBar example on OS X/PySide

Open corranwebster opened this issue 11 years ago • 8 comments

You can get a segfault reliably by running examples/widgets/tool_bar.enaml, selecting one of the exclusive toolbar buttons and then closing the window.

Looking at the stack trace, it would appear that the toolbar destructor is attempting to reference a Python object which has already been garbage collected.

This may be a PySide issue.

corranwebster avatar Jun 28 '13 21:06 corranwebster

My stance on this is going to be, if it works in PyQt but segfaults in PySide, it's a PySide issue until there is evidence otherwise. I really don't have the time to fix or workaround PySide issues, so I have to leave that to the community.

sccolbert avatar Jul 05 '13 17:07 sccolbert

As an additional data point, this probably the same issue that occurs when you select a checkable menu item and close the window. That also reliably segfaults on PySide.

sccolbert avatar Jul 05 '13 17:07 sccolbert

Have you tested under PyQt - I haven't because I don't currently have PyQt installed on my machine.

If this is a PySide issue, I agree that it's not Enaml's responsibility.

corranwebster avatar Jul 05 '13 19:07 corranwebster

None of the examples have issues on PyQt. On Jul 5, 2013 12:08 PM, "Corran Webster" [email protected] wrote:

Have you tested under PyQt - I haven't because I don't currently have PyQt installed on my machine.

If this is a PySide issue, I agree that it's not Enaml's responsibility.

— Reply to this email directly or view it on GitHubhttps://github.com/nucleic/enaml/issues/31#issuecomment-20534448 .

sccolbert avatar Jul 05 '13 19:07 sccolbert

To be more specific, all of the examples were developed and tested on pyqt and worked fine when they were written. I know of know changes that would have effected that.

I'll test to confirm when I'm back at my machine. On Jul 5, 2013 12:38 PM, "Chris Colbert" [email protected] wrote:

None of the examples have issues on PyQt. On Jul 5, 2013 12:08 PM, "Corran Webster" [email protected] wrote:

Have you tested under PyQt - I haven't because I don't currently have PyQt installed on my machine.

If this is a PySide issue, I agree that it's not Enaml's responsibility.

— Reply to this email directly or view it on GitHubhttps://github.com/nucleic/enaml/issues/31#issuecomment-20534448 .

sccolbert avatar Jul 05 '13 19:07 sccolbert

Just tested this on PyQt on OSX. It works fine, so seems to be a PySide issue.

sccolbert avatar Jul 05 '13 21:07 sccolbert

should I close this as a PySide issue?

sccolbert avatar Jul 08 '13 22:07 sccolbert

closing as a PySide issue

sccolbert avatar Sep 23 '13 00:09 sccolbert