Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant