Recent

Author Topic: IDE freezing the OS  (Read 26155 times)

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 460
  • Programming is FUN only when it works :)
    • Cool Technology
Re: IDE freezing the OS
« Reply #105 on: October 19, 2022, 05:50:22 pm »
Hi fellow programmers,

Yes, I realize that this is an OLD question and/or post.

I am having the SAME ISSUE with my latest Lazarus FreePascal Program I wrote.

I am using latest Ubuntu OS using WAYLAND interface and the LATEST LAZARUS COMPILER.

All this program does is read scheduled system shutdown date time and when only 10 minutes left before system shuts down it ALERTS the user of this impending system shutdown by popping up a form with displaying animated GIF or window and playing a warning AUDIO FILE in the background.

As soon as the program ALERTS while displaying GIF and playing AUDIO FILE, the program FREEZES momentarily putting up a message box saying, "Program is not responsive" with buttons force quit or wait. Then, the messagebox goes away until the next time ALERT or WARNING window is up and the Audio file is played. Ubuntu OS doesn't freeze or crash. It is only the Lazarus PROGRAM.

I read through this post and it seems that no one found a solution yet.

What do you think is happening?


AlexTP

  • Hero Member
  • *****
  • Posts: 2541
    • UVviewsoft
Re: IDE freezing the OS
« Reply #106 on: October 19, 2022, 07:36:09 pm »
Quote
and the LATEST LAZARUS COMPILER.
Do you mean latest from Git branch 'main' or the last release?
What FPC version, if you run the "fpc"?

MarkMLl

  • Hero Member
  • *****
  • Posts: 8333
Re: IDE freezing the OS
« Reply #107 on: October 19, 2022, 08:06:41 pm »
I am having the SAME ISSUE with my latest Lazarus FreePascal Program I wrote.

So, what version of Lazarus and FPC are you using? Please put those in the body of your message, since something like "latest" is utterly useless... particularly when somebody re-reads the thread in a couple of years (as you have just done) and "latest" is now something totally different.

Apart from that, what widgetset are you using and what happens if you run your program on an OS which isn't quite so "bleeding edge"? How are you actually playing the audio, do you have a background thread etc.?

Can you duplicate it with a simple program which plays a sound when a button is pressed? Posting the complete source of a test program like that would make life much easier.

And /that/ you see, is whet you get when you necropost: unwelcome procedural suggestions from somebody who was engaged in the discussion some years ago, even if he does not necessarily consider himself the best to sort out a problem of this type with current releases and OSes :-)

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

dbannon

  • Hero Member
  • *****
  • Posts: 3294
    • tomboy-ng, a rewrite of the classic Tomboy
Re: IDE freezing the OS
« Reply #108 on: October 19, 2022, 11:52:13 pm »
Awesome, I have no idea what the problem is but I am pretty sure it has nothing to do with this thread !
Firstly, this thread affected ALL GTK2 apps made by Lazarus (and other dev systems), including Lazarus itself. The original problem never saw a message popup. We are quite sure the original problem related to a missing component from GTK that Cannonical left out in one, short term, release of Ubuntu.

There was an additional report from Segfault but he/she has not reported back what eventually happened.

Awesome, you problem appears important enough to warrant a new thread !

Maybe interesting see if you experience the same problem with QT5 ?  Remember to install libqt5pas-dev

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

MarkMLl

  • Hero Member
  • *****
  • Posts: 8333
Re: IDE freezing the OS
« Reply #109 on: October 20, 2022, 08:59:17 am »
Awesome, you problem appears important enough to warrant a new thread !

He'd already duplicated it at https://forum.lazarus.freepascal.org/index.php/topic,60957.msg457279.html

This sort of thing is irritating, since we don't have an "ignore this thread from now on" button and are effectively spammed whenever anybody notices that a dormant thread has a lot of participants.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018