comp.lang.ada
 help / color / mirror / Atom feed
* Gtk Combobox under Ubuntu
@ 2017-03-13 17:50 ahlan
  2017-03-13 17:58 ` Dmitry A. Kazakov
  0 siblings, 1 reply; 3+ messages in thread
From: ahlan @ 2017-03-13 17:50 UTC (permalink / raw)


Hi,

I wonder if anyone has experienced the same problem or can give me a clue as to what I might be doing wrong.

We use Gtk under Windows, Ubuntu and Osx but have problems with combo boxes under Ubuntu.

The programs work fine under windows and Osx and some Ubuntu installations.
However on some machines (but not all) they fail.
If we take out the combo boxes they work.

It is enough simply to simply create the combobox and place it into the main window.
The program crashes when the main window is shown.

If we run the same program from GPS it works again.
If I run the same program on another machine it works.

This, to my mind, suggest that it is a timing issue.
Some machines are faster than others and perhaps running a program from GPS makes it somehow slower.

Because they work when run from GPS, we can't debug them - because they work.

Has anyone any ideas what I could try?

Best wishes,
Ahlan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Gtk Combobox under Ubuntu
  2017-03-13 17:50 Gtk Combobox under Ubuntu ahlan
@ 2017-03-13 17:58 ` Dmitry A. Kazakov
  2017-03-14 16:38   ` ahlan
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry A. Kazakov @ 2017-03-13 17:58 UTC (permalink / raw)


On 2017-03-13 18:50, ahlan@marriott.org wrote:

> Because they work when run from GPS, we can't debug them - because they work.

One difference I know is that GPS redirects standard files. So, the same 
GtkAda program doing Ada.Text_IO.Put_Line works under GPS, but crashes 
outside it.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Gtk Combobox under Ubuntu
  2017-03-13 17:58 ` Dmitry A. Kazakov
@ 2017-03-14 16:38   ` ahlan
  0 siblings, 0 replies; 3+ messages in thread
From: ahlan @ 2017-03-14 16:38 UTC (permalink / raw)


On Monday, March 13, 2017 at 6:58:33 PM UTC+1, Dmitry A. Kazakov wrote:
> On 2017-03-13 18:50, ahlan@marriott.org wrote:
> 
> > Because they work when run from GPS, we can't debug them - because they work.
> 
> One difference I know is that GPS redirects standard files. So, the same 
> GtkAda program doing Ada.Text_IO.Put_Line works under GPS, but crashes 
> outside it.
> 
> -- 
> Regards,
> Dmitry A. Kazakov
> http://www.dmitry-kazakov.de

Our idea that the speed of the machine might be a factor was a red herring.
We have done some more tests and discovered that our programs always work on
Ubuntu if Gnat/GtkAda is NOT installed.

So we now think it is some form of combination of Gnat GPL 2015/2016 and GtkAda GPL 2015/2016 that is causing the failure.

I notice that when Gnat GPL2015 or GPL2016 is installed (without Gtk or GtkAda) our Gtk programs stop working - they don't even startup. So obviously installing Gnat puts something into some search path that causes our GTK programs to crash.

My guess - to be confirmed tomorrow is that installing Gtk/GtkAda will fix this and that depending on which GtkAda/Gtk is installed (either 2015 or 2016) we will have a working program or one that fails if it has comboboxes. I suspect the 15 is OK and that it is the newer 16 that is causing us problems.

I know nothing about Linux - so I don't know if what I am describing makes sense or is indeed possible.
It is just the result of our tests.

MfG
Ahlan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-14 16:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-13 17:50 Gtk Combobox under Ubuntu ahlan
2017-03-13 17:58 ` Dmitry A. Kazakov
2017-03-14 16:38   ` ahlan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox