Skip to content
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

error message on startup: assert ""m_size != wxSize(0, 0)"" failed in GetSize(): Invalid image list. #151

Open
martinkg opened this issue Aug 16, 2022 · 0 comments

Comments

@martinkg
Copy link

Hi,

the patch released here allows me to compile guayadeque with wxwidgets-3.2, but on startup I get the error message:
../src/generic/imaglist.cpp(231): assert ""m_size != wxSize(0, 0)"" failed in GetSize(): Invalid image list.

someone on the fedora devel list forum pointed out to me that these warnings have to do with the changes in wxwidgets.

The issue appears to be that guayadeque is creating a wxImageList with its
default constructor (wxImageList()), here:
https://github.com/anonbeat/guayadeque/blob/master/src/ui/radios/RadioPan...

This creates a wxImageList where the images are of width=0, height=0 which
is basically useless (hence the assert).

Instead, it should specify a width and height for the wxImageList using
this constructor:
https://docs.wxwidgets.org/trunk/classwx_image_list.html#a7c99503e0d851e8...

Either that, or build without Debug enabled and you won't see the asserts.

I hope the developer can change that.
In the meantime I compile guayadeque without debug flag.

Regards
Martin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant