Recent

Author Topic: The window frame appears for a second at startup and disappears  (Read 1651 times)

Helltar

  • Newbie
  • Posts: 3
The window frame appears for a second at startup and disappears
« on: December 04, 2022, 01:11:46 am »
Here is a screencast, it will be clearer:

https://youtu.be/cONZ5jnjIeU

I do not understand why this is happening.

Lazarus 2.2.4 Qt

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: The window frame appears for a second at startup and disappears
« Reply #1 on: December 04, 2022, 08:23:33 am »
Sorry, I don't click on random links, especially from a first poster.  Show the code, ideally a simplified version of it. I often find, making that simplified version of a problem is enough for me to see what I am doing wrong !

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: 6676
Re: The window frame appears for a second at startup and disappears
« Reply #2 on: December 04, 2022, 09:28:03 am »
I've looked at it using a sacrificial browser and I haven't a clue what's being demonstrated.

I /think/ it's some version of Linux running KDE, hence is possibly germane to the problems in Gus's thread.

PLEASE could we have more details, preferably with demonstration code and a full description of what OS etc. is being used.

I'd also suggest that reporting a potential problem via a public channel such as Youtube, rather than raising it in the forum or one of the mailing lists, is an extremely reliable way to make oneself highly unpopular.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

balazsszekely

  • Guest
Re: The window frame appears for a second at startup and disappears
« Reply #3 on: December 04, 2022, 09:58:08 am »
Apparently there is a second smaller, minimized(?) window, see attached image. It's absolutely not clear if the second window is an artifact(bug?) or more forms are involved.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: The window frame appears for a second at startup and disappears
« Reply #4 on: December 04, 2022, 10:54:38 am »
Apparently there is a second smaller, minimized(?) window, see attached image. It's absolutely not clear if the second window is an artifact(bug?) or more forms are involved.

Yes. It's also not clear whether this is an artifact of starting to program from Dolphin (KDE's file etc. manager).

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

zeljko

  • Hero Member
  • *****
  • Posts: 1594
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: The window frame appears for a second at startup and disappears
« Reply #5 on: December 04, 2022, 10:59:16 am »
Here is a screencast, it will be clearer:

https://youtu.be/cONZ5jnjIeU

I do not understand why this is happening.

Lazarus 2.2.4 Qt

I guess it's some slow machine, add -disableaccurateframe to your program cmd line.  Same cmdline param applies to all X11 widgetsets (gtk2, qt, qt5 and qt6)

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: The window frame appears for a second at startup and disappears
« Reply #6 on: December 04, 2022, 01:32:22 pm »
I don't see that behaviour when starting a program using Dolphin on KDE even with e relatively slow machine.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Helltar

  • Newbie
  • Posts: 3
Re: The window frame appears for a second at startup and disappears
« Reply #7 on: December 04, 2022, 03:37:51 pm »
Quote
Sorry, I don't click on random links, especially from a first poster.  Show the code, ideally a simplified version of it.

Yes, I understand, but it's just YouTube, I just don't know how to describe it in words.

On the video is clean form (Hello World), but it window is also present in my projects, at first I thought it was something on my part, but probably not.

Quote
I /think/ it's some version of Linux running KDE, hence is possibly germane to the problems in Gus's thread.

About KDE, the same thing happens on GNOME (Ubuntu).

Quote
I guess it's some slow machine, add -disableaccurateframe to your program cmd line.  Same cmdline param applies to all X11 widgetsets (gtk2, qt, qt5 and qt6)

Thanks, I'll look. No, machine is fine, 16 ram ssd i5.

Today I checked on gtk2, there is no such thing, most likely it is because of Qt.

Here are my programs built with Qt interface, everywhere the same window at startup that appears for half a second.

- https://github.com/Helltar/AMPASIDE
- https://github.com/Helltar/plainotepad
- https://github.com/Helltar/gcencryptor

I use Arch Linux, qt library of this version:

- https://archlinux.org/packages/community/x86_64/qt5pas

Lazarus 2.2.4:

- https://archlinux.org/packages/community/x86_64/lazarus-qt5/

Helltar

  • Newbie
  • Posts: 3
Re: The window frame appears for a second at startup and disappears
« Reply #8 on: December 04, 2022, 03:57:41 pm »
Here is a screencast, it will be clearer:

https://youtu.be/cONZ5jnjIeU

I do not understand why this is happening.

Lazarus 2.2.4 Qt

I guess it's some slow machine, add -disableaccurateframe to your program cmd line.  Same cmdline param applies to all X11 widgetsets (gtk2, qt, qt5 and qt6)

Thank you! That helped.

https://wiki.freepascal.org/Lazarus_2.2.0_release_notes#Widgetsets

Quote
Qt, Qt5 and Gtk2: Form dimensions are accurate now on x11 (frame around form).
Solution is provided by creating dummy widget before Application.MainForm.Handle is created. This can be disabled via command line switch "-disableaccurateframe". This feature is used inside WidgetSet.GetWindowRect() only.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: The window frame appears for a second at startup and disappears
« Reply #9 on: December 04, 2022, 05:28:00 pm »
Arch is, of course, well-respected but there's always a chance that they've done something odd when building the package: pulled a not-quite stable one from the official repository etc.

Apropos your initial youtu.be posting, you should be aware that there have been multiple cases of malware embedded in YouTube videos. A text description possibly supported with a screenshot would have been far more welcome.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

hansotten

  • Jr. Member
  • **
  • Posts: 88
Re: The window frame appears for a second at startup and disappears
« Reply #10 on: December 04, 2022, 06:48:07 pm »
Apropos your initial youtu.be posting, you should be aware that there have been multiple cases of malware embedded in YouTube videos. A text description possibly supported with a screenshot would have been far more welcome.

MarkMLl
I have never heard malware infections from playing youtube videos. Of course, if one clicks on links, in description/comments ... You have links of reports otherwise.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: The window frame appears for a second at startup and disappears
« Reply #11 on: December 04, 2022, 07:19:57 pm »
I have never heard malware infections from playing youtube videos. Of course, if one clicks on links, in description/comments ... You have links of reports otherwise.

With respect, I'm surprised: this really is very old news.

https://security.stackexchange.com/questions/18086/virus-encoded-in-video https://packetstormsecurity.com/files/159605/HiSilicon-Video-Encoder-Buffer-Overflow-Denial-Of-Service.html https://www.cvedetails.com/vulnerability-list/vendor_id-26/product_id-1032/Microsoft-Windows-Media-Player.html plus /many/ others.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018