I have a non-trivial GUI application that recently shows a failure dialog on startup:
ASSERT INFO:
./src/common/sizer.cpp(1624): assert "CheckSizerFlags ( !(flags & (wxALIGN_BOTTOM | wxALIGN_CENTRE_VERTICAL)) || !(flags & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL)) )" failed in DoInsert(): wxEXPAND flag will be overridden by alignment flags
DO NOT PANIC !!
If you're an end user running a program not developed by you, please ignore this message, it is harmless, and please try reporting the problem to the program developers.
You may also set WXSUPPRESS_SIZER_FLAGS_CHECK environment variable to suppress all such checks when running this program.
If you're the developer, simply remove either wxEXPAND or the alignment in at least one direction from your code to avoid getting this message. You can also call wxSizerFlags::DisableConsistencyChecks() to globally disable all such checks, but this is strongly not recommended.
BACKTRACE:
[1] wxGridSizer::DoInsert(unsigned long, wxSizerItem*)
[2] cdcXS_info ghc_116.c
However, I have not used wxEXPAND
in my code. I guess it is implicitly used in wxhaskell
code. I'm still investigating what widget actually causes this failure. What can I do to pinpoint the cause?
I am using wx-0.93.0.0
and libwxgtk3.0-gtk3-dev:amd64 3.0.5.1+dfsg-2
.
No, I think it is
wxwidgets-3.2.4
. I have used the Nix scripts and these providewxwidgets-3.2.4
, but the underlying Debian haswxgtk3.0
.I have tracked down the issue. WxWidgets had a problem with an empty
WX.row
. In formerwxwidgets
versions this did not cause a warning.