1. Problem using EuGTK - segmentation fault

I am using Euphoria on Debian Stable (9) Linux and it is otherwise running very well. I had installed Euphoria from Debian repository using apt-get package manager.

I recently downloaded EuGTK 4.12.2 from https://sites.google.com/site/euphoriagtk/Home , unzipped it and copied Gtk*.e files from demos folder to /usr/share/include/euphoria which had other *.e files also.

However, on running test files, there is no response for about 5-7 seconds and then the program ends with only an error message:

$ eui test1.ex 
Segmentation fault 
$ 

I have libgtk installed:

libgtk-3-0 is already the newest version (3.22.11-1). 
Where is the problem and how can it be solved? Thanks for your replies.

new topic     » topic index » view message » categorize

2. Re: Problem using EuGTK - segmentation fault

Which version of Euphoria? Also, 32 or 64-bit?

new topic     » goto parent     » topic index » view message » categorize

3. Re: Problem using EuGTK - segmentation fault

irv said...

Which version of Euphoria? Also, 32 or 64-bit?

Euphoria version 4 on Linux 32bit:

$ eui --version 
Euphoria Interpreter v4.0.5  
   Linux, Using System Memory 
   Revision Date: 2012-10-15, Id: 62d94559f849 
 
$ uname -a 
Linux debian 4.9.0-3-686-pae #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) i686 GNU/Linux 

new topic     » goto parent     » topic index » view message » categorize

4. Re: Problem using EuGTK - segmentation fault

For the past year or so, I've only tested it with Eu 4.1

Euphoria Interpreter v4.1.0 development 
   64-bit Linux, Using System Memory 
   Revision Date: 2015-02-02 14:18:53, Id: 5861:57179171dbed 
I have only 2 computers now to test with: 1 running Mint 18 or Ubuntu, 64-bits, and a Raspberry Pi 3 running Raspian (which is Debian, I think), 32-bits. Works on those. I'll try to download a Debian live iso tonight and try it tomorrow.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Problem using EuGTK - segmentation fault

Last I remember the demos had to be run from $HOME/demo or things would break.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Problem using EuGTK - segmentation fault

I removed Gtk*.e files from /usr/share/euphoria/include (where I had copied them earlier) and placed the demos folder in home folder.

I also added my home path to /etc/euphoria/eu.cfg file. It had only one line:

/usr/share/euphoria/include  
as mentioned on http://openeuphoria.org/wiki/view/Configuration%20Files.wc

However, I am still getting segmentation fault.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Problem using EuGTK - segmentation fault

I cannot reproduce this on my end. Computers are different. So it seems like you found a bug that is just masked in other places. As a Euphoria developer, I would download source, build with the debug option and run using a debugger to see where this happens. Now, as a user, I would try to download a newer 4.0 version http://www.rapideuphoria.com/install_aio2.tgz

new topic     » goto parent     » topic index » view message » categorize

8. Re: Problem using EuGTK - segmentation fault

A different file is mentioned on http://rapideuphoria.com/v20.htm :

http://rapideuphoria.com/31/euphor31.tar

Link to All-in-one file is not shown on http://rapideuphoria.com/v20.htm

new topic     » goto parent     » topic index » view message » categorize

9. Re: Problem using EuGTK - segmentation fault

I'd like to help, but I downloaded Debian Live last night, booted it up this morning (3 times) and it locks up at random times - before I have a chance to download or install Eu or anything else. I don't have a computer I can spare, so I won't be installing this.

I suspect that your problem is caused by the older version of Euphoria. I'll download that and test on Mint.

new topic     » goto parent     » topic index » view message » categorize

10. Re: Problem using EuGTK - segmentation fault

SDPringle said...

Last I remember the demos had to be run from $HOME/demo or things would break.

Things will break because images and includes may not be found. Should not segfault, however.

I have never liked software that scatters bits all over your file system without telling you. Also, I figure that anyone who is actually going to write programs probably will have their own preferred way of arranging things. That's easier if everything you might need can be found without searching.

Besides that, there's the problem of knowing where to store stuff in Windows, OSX, and all the various flavors of Linux. I can only test 1 version of Windows, and zero versions of OSX.

new topic     » goto parent     » topic index » view message » categorize

11. Re: Problem using EuGTK - segmentation fault

rneu said...

A different file is mentioned on http://rapideuphoria.com/v20.htm :

http://rapideuphoria.com/31/euphor31.tar

Link to All-in-one file is not shown on http://rapideuphoria.com/v20.htm

Try this search: http://rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=aio

Warning: this aio download is very slow - 25kb/s

EDIT: never mind:

tar: eubin40tip-linux.tar.xz-C: Cannot open: No such file or directory 
tar: Error is not recoverable: exiting now 
Install of 4.0 tip has failed.  Please contact Shawn Pringle <shawn.pringle@gmail.com> 

new topic     » goto parent     » topic index » view message » categorize

12. Re: Problem using EuGTK - segmentation fault

rneu said...

I removed Gtk*.e files from /usr/share/euphoria/include (where I had copied them earlier) and placed the demos folder in home folder.

I also added my home path to /etc/euphoria/eu.cfg file. It had only one line:

/usr/share/euphoria/include  
as mentioned on http://openeuphoria.org/wiki/view/Configuration%20Files.wc

However, I am still getting segmentation fault.

Your eu.cfg files (one in your home folder, as well as one in your /demos folder) should both include the line:
~/demos
Without that, Eu will display an error "cant find x in ..." with a list of include paths. Usually that file not found will be GtkEngine.e.

Obviously, you must run the program from a terminal to see this error message.

However, lack of that line in eu.cfg does not cause a segfault, that is a separate issue.

new topic     » goto parent     » topic index » view message » categorize

13. Re: Problem using EuGTK - segmentation fault

Adding ~/demos to eu.cfg does not make any difference. "Segmentation fault" persists.

new topic     » goto parent     » topic index » view message » categorize

14. Re: Problem using EuGTK - segmentation fault

rneu said...

Adding ~/demos to eu.cfg does not make any difference. "Segmentation fault" persists.

Lack of that line in eu.cfg does not cause a segfault, that is a separate issue.

The easiest way to get an updated version of Euphoria is to go to: http://rapideuphoria.com/contrib.htm Look for "eu.ex and euc.ex compiled for v4.1.0-32bit" by James Cook. These are a quick download, just drag the eui from his /bin folder into, for example, your home folder, and then, from a terminal, type:
./eui ~/demos/test0
That should test whether the problem caused by using Eu 4.0 instead of Eu 4.1.

new topic     » goto parent     » topic index » view message » categorize

15. Re: Problem using EuGTK - segmentation fault

I uninstalled Euphoria from my system (using Debian package manager) and downloaded and installed the all-in-one file install_aio2.tgz manually.

It installed Euphoria-4.1 on my system and it works fine. All Gtk examples are working all right. So there must have been some problem in version 4.0.5. I also see that Euphoria is no more available in Debian Repositories. Probably version 4.1 will reappear there. Thank you all for your help.

new topic     » goto parent     » topic index » view message » categorize

16. Re: Problem using EuGTK - segmentation fault

irv said...

I'd like to help, but I downloaded Debian Live last night, booted it up this morning (3 times) and it locks up at random times

I have been using Debian Stable for quite some time now and am very happy with it. I find it really rock-solid stable, availability of all good software from repositories which can be easily installed and uninstalled. Moreover, most developers provide .deb files for installation even if their software is not in Debian repos.

new topic     » goto parent     » topic index » view message » categorize

17. Re: Problem using EuGTK - segmentation fault

rneu said...

I uninstalled Euphoria from my system (using Debian package manager) and downloaded and installed the all-in-one file install_aio2.tgz manually.

It installed Euphoria-4.1 on my system and it works fine. All Gtk examples are working all right. So there must have been some problem in version 4.0.5. I also see that Euphoria is no more available in Debian Repositories. Probably version 4.1 will reappear there. Thank you all for your help.

Thank you, I'll add a note that EuGTK now requires Eu4.1.

new topic     » goto parent     » topic index » view message » categorize

18. Re: Problem using EuGTK - segmentation fault

irv said...

... I'll add a note that EuGTK now requires Eu4.1.

Pete Eberlein's marvelous EuGTK editor,WEE, also requires Eu4.1.

Create a folder called "Wee" and download updater.ex.

Run "eui updater.ex" to download/update the files for your platform.

Run "eui wee.exw" to run the editor, or compile/bind/shroud it for convenience.

Regards,
Ken Rhodes

new topic     » goto parent     » topic index » view message » categorize

19. Re: Problem using EuGTK - segmentation fault

I downloaded updater and started 'eui41 wee.exw' and it is working very well. However, on command line it gave following warning:

( wee.exw:1894): Gtk-WARNING **: Allocating size to GtkDrawingArea 0x91b58c0 without calling gtk_widget_get_preferred_width/height().  
How does the code know the size to allocate? 

It had downloaded new files in its EuGTK subfolder: GtkEngine.e, GtkEnums.e, GtkEvents.e, GtkPrinter.e .

I compiled wee.exw it with euc41. The compilation process went on smoothly so I started './wee'. But it does not run and ended with 'segmentation fault'.

new topic     » goto parent     » topic index » view message » categorize

20. Re: Problem using EuGTK - segmentation fault

rneu said...

I downloaded updater and started 'eui41 wee.exw' and it is working very well. However, on command line it gave following warning:

( wee.exw:1894): Gtk-WARNING **: Allocating size to GtkDrawingArea 0x91b58c0 without calling gtk_widget_get_preferred_width/height().  
How does the code know the size to allocate? 

It had downloaded new files in its EuGTK subfolder: GtkEngine.e, GtkEnums.e, GtkEvents.e, GtkPrinter.e .

I compiled wee.exw it with euc41. The compilation process went on smoothly so I started './wee'. But it does not run and ended with 'segmentation fault'.

GTK development versions are commonly littered with unimportant warnings. Wee uses no DrawingArea directly, so we know the message was left by a developer, probably as a reminder. These can be ignored.

As far as compiling, I just successfully compiled Wee using euc which comes with the download from the downloads page: http://sourceforge.net/projects/rapideuphoria/files/Euphoria/4.1.0-beta2/euphoria-4.1.0-ARMv6-hardfloat-57179171dbed.tar.gz/download
This is on the Raspberry Pi 3, with Raspian, which is as close to Debian as I can get.

Edit: There is a note about 32-bit eubins being bad. Ticket #933. I suggest you try euc from http://sourceforge.net/projects/rapideuphoria/files/Euphoria/4.1.0-beta2/euphoria-4.1.0-Linux-x86-57179171dbed.tar.gz/download

If that fails, try the euc from http://sourceforge.net/projects/rapideuphoria/files/Euphoria/4.1.0/, or download the source and compile your own, it isn't difficult.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu