Skip to content
This repository was 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

@martinkg

Description

@martinkg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions