Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#75330 - [veracrypt] UI warning messages (related to wxWidgets)

Attached to Project: Community Packages
Opened by J Miller (j.mlr) - Friday, 15 July 2022, 08:48 GMT
Last edited by freswa (frederik) - Thursday, 24 November 2022, 10:20 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
freswa (frederik)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No



Launching Veracrypt results in this warning message:

/build/wxwidgets/src/wxWidgets-3.2.0/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

This message appears 7 times before the normal interface pops up. The application itself functions normally.

Based on the warning message, I suppose this is related to the recent wxWidgets update.

Additional info:

veracrypt 1.25.9-2.

Likely related to this:

Steps to reproduce:

Launch Veracrypt
This task depends upon

Closed by  freswa (frederik)
Thursday, 24 November 2022, 10:20 GMT
Reason for closing:  Fixed
Comment by John Bug (johnbug) - Friday, 15 July 2022, 10:19 GMT
Bug confirmed.
Comment by J Miller (j.mlr) - Friday, 15 July 2022, 10:23 GMT
I forgot to mention that I am using KDE...
Comment by loqs (loqs) - Friday, 15 July 2022, 18:45 GMT
Does applying the attached patch resolve the issue?
Comment by John Bug (johnbug) - Tuesday, 19 July 2022, 23:45 GMT
  • Field changed: Percent Complete (100% → 0%)
Similar messages appear when opening things from menus and the main window.

Steps to reproduce: in Volumes menu, click on Create New Volume; in Tools menu, click on Volume Creation Wizard; in Settings, click anything; below, click on "Volume Tools..." or "Select Device...".
Comment by Romain (carrion_crow) - Tuesday, 09 August 2022, 06:45 GMT
Same thing for me, with veracrypt 1.25.9-3.
Comment by freswa (frederik) - Tuesday, 09 August 2022, 12:14 GMT
Does the patch from loqs work for you people?
Comment by roberto (joseghast) - Sunday, 30 October 2022, 22:30 GMT
The patch does not work for me. Rebuilt the same version of Veracrypt that's in the Arch package applying the patch and still got the message.
Comment by loqs (loqs) - Sunday, 06 November 2022, 23:19 GMT
Please try this updated patch.
Comment by roberto (joseghast) - Monday, 07 November 2022, 00:12 GMT
Tried rebuilding twice but it doesn't work either.

It does throw a slightly different error than the one above, I've attached the message from veracrypt in case it's useful.
Comment by loqs (loqs) - Monday, 07 November 2022, 00:35 GMT
Change of approach, call wxSizerFlags::DisableConsistencyChecks() to disable the failing checks.
Comment by roberto (joseghast) - Monday, 07 November 2022, 19:54 GMT
Just rebuilt and this does solve it for me!

Thanks very much loqs!!
Comment by freswa (frederik) - Monday, 14 November 2022, 21:19 GMT
Please check veracrypt-1.25.9-4 in [community-testing]