-
Notifications
You must be signed in to change notification settings - Fork 412
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 when deleting a fit that is being viewed. #164
Comments
Don't have much experience with debugging but maybe this will help.
Cheers, |
Confirmed on Ububtu / Arch. Doesn't affect Windows build. I also don't have much experience with using debugging programs. wish me luck ;D |
My linux distribution gdb (gnu debugger) doesn't seem to have a python Neug On 3 September 2014 04:25, Ryan Holmes [email protected] wrote:
|
This is the backtrace from gdb currently. I should be able to get a more python friendly backtrace later this week.
Neug |
DeletePage @ page.Destroy() is causing the segmentation fault in chromeTabs.py but only when called from fittingView.py. SNIP |
Correction. This only happens to me on Ubuntu. Arch handles this fine... odd... Also found that execution goes to at least
|
I wonder what would happen if you used the /usr/lib/libwx_baseu-2.8.so.0 file from arch on ubuntu? |
For the record - this sometimes happens when you delete fit you're not viewing too. |
@DarkFenX "not viewing" meaning it's not loaded at all in the fitting tabs, or it's just not the active one? I've experimented with it a bit. I think (not certain) it's probably because when you delete the fit, the fit deletes from the database, then the event is fired to remove it from the fitting window. The fitting window probably tries to do something with it upon close, but since it's already been deleted, it dies. I've had mild success with this:
Sometimes I'm able to delete the fit without it breaking. However, it still segfaults more often then not. =/ |
@blitzmann i meant that it may happen even when no fits are open (just single empty tab). |
@Neugeniko have you made any progress in identifying the issue? I remember you stating on the forums that you had a possible answer |
I've given up on finding a good workaround that could be coded. I'm using On Wednesday, November 19, 2014, Ryan Holmes [email protected]
|
I had a similar issue with a seg fault when destroying wx.ProgressDialog, see: #232 The way I fixed it was a workaround: don't Destroy, instead Hide. There was also a possible work aroud that may work for this issue: insert a small delay before destroying. Sometimes there is still activity in the events queue when you want to destroy, and that causes the seg fault. Adding a small delay might help. DestroyLater() may also be a thing, however I believe it's only available in Pheonix. https://groups.google.com/forum/#!topic/wxpython-users/fOgc5jdjey8 |
This crash (though possibly not the exact same one -- regardless, the cause is the same) also appears to occur under Windows 8.1. Or, rather, it does now, given that it wasn't occurring in Sept. 2014. |
I'm taking another look at this. If I comment out this bit that actually deletes the fit, it can still crash, so the fit itself deleting doesn't seem to be the cause. |
in I'm starting to think that this is an event issue or collision of some sort. Each fitting view has events attached to it so that it can look for changes. A proper fix would be to have the fitting view only display the modules, and have all the event handing in the parent, the MultiSwitch. That would be proper design, anyway. |
I haven't been getting any issues with this lately. What about other people in this thread? |
Closing, reopen if still applicable. |
Software: Slackware 14.1 linux installation
Packages: wxPython-2.8.12.1-i486-2_SBo.tgz, SQLAlchemy-0.9.6-i486-1_SBo.tgz, python-dateutil-2.2-i486-1_SBo.tgz, matplotlib-1.1.1-i486-1_SBo.tgz, numpy-1.8.0-i486-1_SBo.tgz
Hardware: 1.7Ghz Celeron 32-bit (Single core)
Steps to reproduce.
Other messages: Gtk-WARNING **: gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem.
Cheers,
Neug
The text was updated successfully, but these errors were encountered: