Were there some modifications which can explain the problem ?
My modifications are not related to this issue, as I see it.
Just checked on other computer with Ubuntu 18.04: compiled gtk_samples/samples/a.prg and few others with -lhwgdebug and -b options - programs runs with debugger withou problems.
Maybe, something in your build scripts... Post here shortest prg and the script you use to build it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use two differents tools :
° HwMake Linux (an hwgui program)
° hwbuild (a bash script)
With the two tools, it build without problem when no debugger, and crashes with debugger.
I send you my script, and the logs with and without debugger for the two tools and the script hwbuild.
In hwgui, I modified the line building HWGUI_LIBS, because the presence of ${gt}, ${misc} or ${ext} make the script to crash even without debugger (same error). This problem doesn't occurs in HwMake Linux, as, by default, these libraries aren't included.
I reviewed your hwbuild script. The problem is that you use there gthwg and gtcgi together. Are you really need gthwg there? If you use it, see the contrib/gthwg/tests how to do it .
If you don't need it, remove it from your script, or you may add gttrm there. Hthwg disables using of gtcgi. And because you don't include in the prg all lines, necessary for using gthwg, the program is linked without gt at all - that's a reason of an error message.
Regards, Alexander
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok for hwbuild, I'll have to read again the use of libgthwg.
But as I comment the inclusion of $gt, it doesn't include this gt (same with hwmake which for now doesn't include gthwg), and when building with hwgdebug, it crash with the same error.
Is-it to say that, when using hwgdebug, I must use gthwg instead of gtcgi ?
Thanks
A+
Last edit: Aupeix Alain 2023-08-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems that you've confused yourself and me). Your first problem is the message "Unrecoverable error 9998: Harbour terminal (GT) initialization failure", which you linked with libhwgdebug. Later you've wrote, that without libhwgdebug 'it crash with the same error'.
I've wrote you already, that libhwgdebug itself isn't related to that message. The reason of that message is using of gthwg and gtcgi together as gt drivers.
As I see from your hwbuild-with-dbg.txt, the message "Unrecoverable error 9998: Harbour terminal (GT) initialization failure" doesn't appear already, because you commented $gt. The program simply hangs, isn't it? This may occur, if you don't have hwgdebug (gui debugger itself) in your path or in the same directory - the program wait for it answer.
What about gthwg - it is a gt driver for pseudo-console applications, as gtxwc for Linux or gtwvt for Windows. You don't need it if don't build a console pseudo-console app.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Whataboutgthwg.
Youdon't need it if don'tbuildaconsolepseudo-consoleapp.
ok, I have seen in the prg source. I will remove definitively it from hwbuild.
It seems that you've confused yourself and me
For the gt error message when using hwgdebug, here is what I have :
HwMake : hello always crashes with the gt error
hwbuild : hello always crashes with the gt error
Without hwgdebug, it always run without error when I comment $gt.
I probably didn't clearly explain , that's why it confused you.
This morning, I build sample.prg in debugger folder, and it works.
I remove hwgdebug in this folder, and it crashes.
I added hwgdebug in gtk_samples, and it works.
So, it's the reason of this problem, but before a possible modification in hwgui (where ?), it always worked.
That's probably the reason to find ...
Thanks
A+
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hm... Works normally here under Debian 10.
Regards, Alexander.
Were there some modifications which can explain the problem ?
A+
on my laptop under Xubuntu 16.04 too, same problem with r3224.
A+
It works with Xubuntu 20.04
My modifications are not related to this issue, as I see it.
Just checked on other computer with Ubuntu 18.04: compiled gtk_samples/samples/a.prg and few others with -lhwgdebug and -b options - programs runs with debugger withou problems.
Maybe, something in your build scripts... Post here shortest prg and the script you use to build it.
Hi Alexander,
I use two differents tools :
° HwMake Linux (an hwgui program)
° hwbuild (a bash script)
With the two tools, it build without problem when no debugger, and crashes with debugger.
I send you my script, and the logs with and without debugger for the two tools and the script hwbuild.
In hwgui, I modified the line building HWGUI_LIBS, because the presence of ${gt}, ${misc} or ${ext} make the script to crash even without debugger (same error). This problem doesn't occurs in HwMake Linux, as, by default, these libraries aren't included.
It's also a problem I need to solve.
Thanks
A+
I reviewed your hwbuild script. The problem is that you use there gthwg and gtcgi together. Are you really need gthwg there? If you use it, see the contrib/gthwg/tests how to do it .
If you don't need it, remove it from your script, or you may add gttrm there. Hthwg disables using of gtcgi. And because you don't include in the prg all lines, necessary for using gthwg, the program is linked without gt at all - that's a reason of an error message.
Regards, Alexander
Ok for hwbuild, I'll have to read again the use of libgthwg.
But as I comment the inclusion of $gt, it doesn't include this gt (same with hwmake which for now doesn't include gthwg), and when building with hwgdebug, it crash with the same error.
Is-it to say that, when using hwgdebug, I must use gthwg instead of gtcgi ?
Thanks
A+
Last edit: Aupeix Alain 2023-08-17
It seems that you've confused yourself and me). Your first problem is the message "Unrecoverable error 9998: Harbour terminal (GT) initialization failure", which you linked with libhwgdebug. Later you've wrote, that without libhwgdebug 'it crash with the same error'.
I've wrote you already, that libhwgdebug itself isn't related to that message. The reason of that message is using of gthwg and gtcgi together as gt drivers.
As I see from your hwbuild-with-dbg.txt, the message "Unrecoverable error 9998: Harbour terminal (GT) initialization failure" doesn't appear already, because you commented $gt. The program simply hangs, isn't it? This may occur, if you don't have hwgdebug (gui debugger itself) in your path or in the same directory - the program wait for it answer.
What about gthwg - it is a gt driver for pseudo-console applications, as gtxwc for Linux or gtwvt for Windows. You don't need it if don't build a console pseudo-console app.
ok, I have seen in the prg source. I will remove definitively it from hwbuild.
For the gt error message when using hwgdebug, here is what I have :
HwMake : hello always crashes with the gt error
hwbuild : hello always crashes with the gt error
Without hwgdebug, it always run without error when I comment $gt.
I probably didn't clearly explain , that's why it confused you.
hwgdebug is, after building, copied in /usr/bin which is in the path ...
This morning, I build sample.prg in debugger folder, and it works.
I remove hwgdebug in this folder, and it crashes.
I added hwgdebug in gtk_samples, and it works.
So, it's the reason of this problem, but before a possible modification in hwgui (where ?), it always worked.
That's probably the reason to find ...
Thanks
A+