[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Program run at startup hogs cpu?
[Thread Prev] | [Thread Next]
- Subject: Re: Program run at startup hogs cpu?
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Tue, 11 Mar 2025 17:42:01 +0000
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On Tue, 11 Mar 2025 at 16:43, Benoît Minisini < benoit.minisini@xxxxxxxxxxxxxxxx> wrote: > Le 11/03/2025 à 12:17, Bruce Steers a écrit : > > > > Here's a peculiar problem... > > My launcher program Desktop-ish does something strange. > > > > For some reason the program hogs the cpu , my fans blow hard and the > > program uses 98% cpu. > > > > If i close it then re-run it from the desktop icon it runs fine and does > > not hog cpu. > > If i do not launch it at startup and just run it from the icon it is > okay. > > > > But for some reason launching it from ~/.config/autostart/ makes > > something go loop-de-loo. > > > > Anyone seen anything like this before? > > Know what might cause it, know what to do? > > gmail.txt archive is 600k so I cannot attach. > > It's on git though... > > git clone https://gitlab.com/bsteers4/desktop-ish.git <https:// > > gitlab.com/bsteers4/desktop-ish.git> > > > > Respects > > BruceS > > Use 'gdb' to know where the infinite loop is: > > $ sudo gdb gbr3 <process id of my program> > ... > (gdb) bt > (gdb) p DEBUG_get_current_position() > > And send the result of the two last gdb commands. > > Regards, > > -- > Benoît Minisini. Thanks Benoit... (gdb) bt #0 0x00007ebbe051b4cd in __GI___poll (fds=0x5852867fdf90, nfds=6, timeout=229) at ../sysdeps/unix/sysv/linux/poll.c:29 #1 0x00007ebbdd76466e in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007ebbdd704a53 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007ebbdddfec19 in gtk_main_iteration () at /lib/x86_64-linux-gnu/libgtk-3.so.0 #4 0x00007ebbdebc7ae5 in MAIN_do_iteration (do_not_block=do_not_block@entry=false) at main.cpp:703 #5 0x00007ebbdebc7b2e in hook_loop () at main.cpp:579 #6 0x0000585246e395ff in main (argc=<optimised out>, argv=<optimised out>) at gbx.c:520 (gdb) p DEBUG_get_current_position() $1 = 0x585246e9102d "?" (gdb) On closer inspection it does not start at high cpu usage it slowly steadily increases until eventually maxed out. Respects BruceS
Re: Program run at startup hogs cpu? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Program run at startup hogs cpu? | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: Program run at startup hogs cpu? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |