"Critical" Error msg in working progam

Post your Gambas programming questions here.
Post Reply
CMWhitley
Posts: 13
Joined: Monday 1st February 2021 10:05pm

"Critical" Error msg in working progam

Post 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
User avatar
grayghost4
Posts: 174
Joined: Wednesday 5th December 2018 5:00am
Location: Marengo, Illinois usa

Re: "Critical" Error msg in working progam

Post 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
User avatar
BruceSteers
Posts: 1521
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: "Critical" Error msg in working progam

Post 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?
If at first you don't succeed , try doing something differently.
BruceS
CMWhitley
Posts: 13
Joined: Monday 1st February 2021 10:05pm

Re: "Critical" Error msg in working progam

Post 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.
User avatar
BruceSteers
Posts: 1521
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: "Critical" Error msg in working progam

Post 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
If at first you don't succeed , try doing something differently.
BruceS
CMWhitley
Posts: 13
Joined: Monday 1st February 2021 10:05pm

Re: "Critical" Error msg in working progam

Post 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.
Post Reply