Menu

#121 All prg crash with hwgdebug

v1.0_(example)
open
nobody
hwgdebug (1)
1
2023-08-18
2023-08-09
No

Hi,
Since HwGUI r3268 (I didn't use it since a few time), all my prg are crashing when building with libhwgdebug.a

Unrecoverable error 9998: Harbour terminal (GT) initialization failure

I'm always under Xubuntu 16.04

Just try with hello.prg

A+

Discussion

  • Alexander S.Kresin

    Hm... Works normally here under Debian 10.
    Regards, Alexander.

     
  • Aupeix Alain

    Aupeix Alain - 2023-08-09

    Were there some modifications which can explain the problem ?

    A+

     
  • Aupeix Alain

    Aupeix Alain - 2023-08-09

    on my laptop under Xubuntu 16.04 too, same problem with r3224.

    A+

     
  • Aupeix Alain

    Aupeix Alain - 2023-08-09

    It works with Xubuntu 20.04

     
  • Alexander S.Kresin

    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.

     
  • Aupeix Alain

    Aupeix Alain - 2023-08-17

    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+

     
  • Alexander S.Kresin

    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

     
  • Aupeix Alain

    Aupeix Alain - 2023-08-17

    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
  • Alexander S.Kresin

    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.

     
  • Aupeix Alain

    Aupeix Alain - 2023-08-18
    What about gthwg.
    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.

    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.

     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.
    

    hwgdebug is, after building, copied in /usr/bin which is in the path ...

    alain@Gramps-JujuLand2:/opt/TuxPrograms/trunks/harbour/addons/hwgui-src/hwgui/utils/debugger$ printenv PATH
    /home/alain/bin:/home/alain/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    

    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+

     

Log in to post a comment.