pebau
Junior Member
Posts: 81
|
Post by pebau on Feb 16, 2020 18:09:48 GMT 1
Hello, Today I played with latest BaCon 4.0 beta and HUG. I tried to run some simple HUG demos but most of them segfault. With ddd I have seen that bacon gets the segfault signal sent, but I could not find the reason. Just a simple demo with one window and one button does not segfault. I am using Ubuntu 18.04 and gcc. What is your experience with HUG and BaCon 4.0 ? Apart from the problems with HUG current BaCon 4.0 from repo looks stable for me. www.basic-converter.org/hug-tutorial/BaCon_widget_Examples_Documentation.htmlwww.basic-converter.org/hug-tutorial/BaCon_widget_Examples_Documentation.html#EDIT -> Segfaults on my configuration gcc --version gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 bacon -v BaCon version 4.0 on Linux x86_64 - (c) Peter van Eerten - MIT License. hug.bac is version 0.109 BR, Pebau
|
|
|
Post by rikky on Feb 16, 2020 23:55:49 GMT 1
Works on my configuration BaCon version 4.0 on Linux armv7l - (c) Peter van Eerten - MIT License. gcc (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516 hug.bac version 0.109 You can skip the INIT though, then it still works. Rik.
|
|
|
Post by Pjot on Feb 17, 2020 18:31:35 GMT 1
Hi pebau,
The tutorial you are referring to is quite dated. Though the examples work for me (Mageia 7 with gcc 8.3.1) they indeed use the INIT function.
This was needed in older versions of HUG. Nowadays you only need to use INIT when specifying separate widgets in the INCLUDE statement. So when your code shows "INCLUDE hug" then we do not need the INIT function.
I have seen systems where invoking INIT do crash the program.
It is like rikky says: can you omit the INIT and verify if the samples work?
BR Peter
|
|
pebau
Junior Member
Posts: 81
|
Post by pebau on Feb 17, 2020 18:39:57 GMT 1
Thank You,
I just removed the HUG INIT functions from the examples and now they work !
Sorry, Pebau
|
|
|
Post by bigbass on Feb 17, 2020 19:39:42 GMT 1
Hello Yes a long time ago we used a hug.so but not now so we don't need that anymore sorry it is a typo here is a cleaned file BaCon with HUG Examples.html.tar.gz (11.62 KB) should be replaced on the main site too if you see any errors let me know or even a just question we all will help out somehow Joe
|
|