Quuxplusone / Homeworlds

A C++ framework for working with the game of Binary Homeworlds, including a text interface to a simple AI.
http://boardgamegeek.com/boardgame/14634/homeworlds
Other
21 stars 4 forks source link

../src/gtk/window.cpp(5243): assert ""Assert failure"" failed in GTKSendPaintEvents(): unsupported background style #4

Open hartkes opened 1 year ago

hartkes commented 1 year ago

I compiled wx-gui, but as soon as I run it, I receive the following assertion error: ../src/gtk/window.cpp(5243): assert ""Assert failure"" failed in GTKSendPaintEvents(): unsupported background style

The traceback doesn't give any particularly helpful information.

I compiled the program with g++ 11.3.1 on Fedora Linux 35. I have wxBase-devel and wxGTK-devel both installed, both version 3.1.5. Should the program be compiled against an older version of wx? Fedora has 3.0.5 in the repositories.

Thanks! The C++ annotate program works great (I lost my first Homeworlds game!), but it would be great to have the graphic interface.

Quuxplusone commented 1 year ago

FWIW, according to my commit messages, I last compiled this wxgui stuff in 2020, using "wxmac 3.0.4_2"; before that the last significant change was in 2017; and the last significant change by me was in 2012. So personally I'm unlikely to be of much help here. :)

If I were doing this whole thing over again in this decade, I'd probably try to make an HTML5/JavaScript front-end that talks to a webserver backend (Python/flask? I have a Python binding for this library already in ./pythonsrc) where the backend knows only one API verb: "given a GameState, compute the best WholeMove." https://homeworlds-live2.glitch.me/ has a nice front-end, but I have never tried to combine it with this.

hartkes commented 1 year ago

Thanks for the feedback! I installed Fedora Linux 26 (from 2017) in a virtual machine, using wxGTK 2.8.12 (I think this is using GTK2) and wxGTK3 3.0.3 (using GTK3). When compiling wxgui with each one I get the same error. Do know if wxgui was successfully compiled against wxGTK on Linux, and if so, which version? I could try further back in time.

It's surprising that this error is coming up, since setting the background to be a solid color is a pretty standard thing to do. Other things that I saw online seem to suggest this is a problem with setting a transparent background, which as far as I can tell wxgui is not trying to do. So I'm assuming that something else is really the problem.