VeraCrypt icon indicating copy to clipboard operation
VeraCrypt copied to clipboard

wxWidgets 3.1: Asserts: Sizer.DoInsert() - ignored alignments

Open ghost opened this issue 9 years ago • 2 comments

I compiled VeraCrypt on Ubuntu 15.10 with wxWidgets 3.1 and receive the following warning when starting the program. It seems wxWidgets 3.1+ has tightened its rules on sizers.

Error

../src/common/sizer.cpp(2091): assert "!(flags & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL))" failed in DoInsert(): Horizontal alignment flags are ignored with wxEXPAND '''Backtrace''' ASSERT INFO: ../src/common/sizer.cpp(2091): assert "!(flags & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL))" failed in DoInsert(): Horizontal alignment flags are ignored with wxEXPAND

Backtrace

[1] std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf() [2] std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf() [3] std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf() [4] std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf() [5] std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf() [6] std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf() [7] std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf() [8] std::__cxx11::basic_stringbuf<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_stringbuf() [9] std::__cxx11::basic_stringbuf<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_stringbuf() [10] std::__cxx11::basic_stringbuf<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_stringbuf() [11] std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf() [12] __libc_start_mai

ghost avatar Feb 04 '16 14:02 ghost

@idrassi , the user is not on github anymore. I think this one can be closed.

andreas-becker avatar Jan 22 '20 12:01 andreas-becker

Slackware64-current I am experiencing a similar issue. Compiled with wxwidgets 3.1.5

ASSERT INFO:
../src/common/sizer.cpp(2109): assert "!(flags & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL))" failed in DoInsert(): Horizontal alignment flags are ignored with wxEXPAND

BACKTRACE:
[1] wxBoxSizer::DoInsert(unsigned long, wxSizerItem*)
[2] wxEntry(int&, wchar_t**)
[3] __libc_start_main

Run from a Konsole:

 veracrypt 
../src/common/sizer.cpp(2109): assert "!(flags & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL))" failed in DoInsert(): Horizontal alignment flags are ignored with wxEXPAND
../src/common/sizer.cpp(2109): assert "!(flags & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL))" failed in DoInsert(): Horizontal alignment flags are ignored with wxEXPAND
../src/common/sizer.cpp(2109): assert "!(flags & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL))" failed in DoInsert(): Horizontal alignment flags are ignored with wxEXPAND
../src/common/sizer.cpp(2109): assert "!(flags & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL))" failed in DoInsert(): Horizontal alignment flags are ignored with wxEXPAND
../src/common/sizer.cpp(2109): assert "!(flags & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL))" failed in DoInsert(): Horizontal alignment flags are ignored with wxEXPAND
../src/common/sizer.cpp(2109): assert "!(flags & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL))" failed in DoInsert(): Horizontal alignment flags are ignored with wxEXPAND

chrisretusn avatar Nov 13 '21 17:11 chrisretusn

I can confirm a similar bug (NixOs, running 2caf4ef5005ecc68141ecb4aac271079f7371c44)

ASSERT INFO: ./src/common/sizer.cpp(2288): assert "CheckSizerFlags(!((flags) & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL | wxALIGN_BOTTOM | wxALIGN_CENTRE_VERTICAL)))" failed in DoInsert(): wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL | wxALIGN_BOTTOM | wxALIGN_CENTRE_VERTICAL will be ignored in this sizer: wxEXPAND overrides alignment flags in box sizers

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 this flag 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] wxBoxSizer::DoInsert(unsigned long, wxSizerItem*) [2] wxEntry(int&, wchar_t**) [3] __libc_start_main

tobiasBora avatar Feb 18 '23 17:02 tobiasBora