-
Notifications
You must be signed in to change notification settings - Fork 58
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
wxWidgets Debug alert make luajit crash #28
Comments
@sonoro1234, any further details on this? How do you trigger the alert? Any details from the stack trace after the crash? |
The alert was triggered by lua code: Inserting with CENTER_HORIZONTAL in a wxBoxSizer with horizontal style. wxWidgets were compiled in debug mode but wxLua with Release mode (my fault). Now compiled all in debug mode:
and thread 4:
and after The same debuging with editor.wx.lua modified for triggering the assert only prints the warning but dont makes SIGTRAP (why??) but instead got SIGSEGV on closing
|
I have managed to compile wxWidgets and wxLuaModule with wxDEBUG_LEVEL = 0 and the assertions dissappear avoiding the crash. It would be much more convenient to wrap wxDisableAsserts function so that we can use asserts or not at will. |
@sonoro1234, I use the same configuration for non-debug builds, so not sure what may be going on with the assertions and don't plan to work on this in the near future. Feel free to re-open if you have some additional information or have time to work on this. |
Is there something I can do to avoid it?
I think this is wxWidget debug alert that does not arrive to wxLua so there is no message about the lua code triggering it, and so it is difficut to track.
wxDisableAsserts seems not wrapped by wxLua
defining wxDEBUG_LEVEL = 0 before wxWidgets compilation seems the only way to get rid of them
The text was updated successfully, but these errors were encountered: