veracrypt / VeraCrypt

Disk encryption with strong security based on TrueCrypt
https://www.veracrypt.fr
Other
6.8k stars 940 forks source link

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

Open ghost opened 8 years ago

ghost commented 8 years ago

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, std::allocator >::~basic_stringbuf() [9] std::cxx11::basic_stringbuf<wchar_t, std::char_traits, std::allocator >::~basic_stringbuf() [10] std::cxx11::basic_stringbuf<wchar_t, std::char_traits, std::allocator >::~basic_stringbuf() [11] std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf() [12] libc_start_mai

andreas-becker commented 4 years ago

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

chrisretusn commented 2 years ago

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
tobiasBora commented 1 year ago

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