Page 1 of 1

"Critical" Error msg in working progam

Posted: Monday 8th August 2022 6:14pm
by CMWhitley
I have a fully functional program which, in development mode, constantly posts a "Critical" error msg in the Console Window.

Gtk-CRITICAL **: 13:57:26.980: gtk_box-gadget_distribute: association 'size >= 0' failed in GtkRadioButton

I only have 2 Radio Buttons on one form and they function perfectly.

I made sure using "Hierarchy" that only 2 Radio Buttons were listed and there was not a phantom one that was too small to see on the form and there were only 2 as there should have been.

Any thought? Or should I just ignore?

Thanks

Re: "Critical" Error msg in working progam

Posted: Tuesday 9th August 2022 4:08am
by grayghost4
Kinda like this one, which I get over and over when my program runs.

Gtk-WARNING **: 23:02:55.963: Negative content width -5 (allocation 13, extents 9x9) while allocating gadget (node entry, owner GtkEntry)

it seems to be a "BUG" in GTK

Re: "Critical" Error msg in working progam

Posted: Tuesday 9th August 2022 7:23am
by BruceSteers
GTK used to put out loads of warnings.
Benoit has found workarounds for most errors.

It's usually nothing to worry about. you can sometimes get rid of the warning by adjusting the size/font of the gadget/container

Are you using the latest version of gambas?

Re: "Critical" Error msg in working progam

Posted: Tuesday 9th August 2022 1:31pm
by CMWhitley
Thanks for the replies. I am using 3.16.3 and given how many times I've been bitten by "updates", I generally fall way behind. Running Linux Mint ver 19.3 and have not updated it as the last time I lost all ability to copy/paste login/passwords into web pages and even all the "Fixes" failed.

If it is just an Error in Error messages, that's fine as the program sure works properly.

Re: "Critical" Error msg in working progam

Posted: Tuesday 9th August 2022 6:17pm
by BruceSteers
It's often a fault in the gtk theme.
the gtk themes like Mint-X Mint-Y etc all work and report things differently, some are better than others.

If i run pluma (MATE text editor) in a terminal i get way more gtk error warnings than i do running a gambas application :)

You should consider upgrading though.

If the autotools compilation methods is too much there always PPA on ubuntu/mint

Should be as simple as running the following commands...
# Install latest gambas stable release
# First add the PPA to your sources.list. Open a terminal and do:

sudo add-apt-repository ppa:gambas-team/gambas3

# Next update the sources and install Gambas:

sudo apt-get update
sudo apt-get install gambas3

Re: "Critical" Error msg in working progam

Posted: Wednesday 10th August 2022 1:16pm
by CMWhitley
Thank you Bruce. I'll update after I finish this program {99% done} and if I can successfully compile it to an .exe {Have 8 programs which never compiled well and more than likely 100% my fault}. I just run them in development mode as they are only for myself.

In my former Corporate life, I had over 50 VB 6.0 programs running in 70 plants world wide, and hated VB.Net. Love GAMBAS and promote it to anyone who will listen.