Recent

Author Topic: System crash with ShowMessage  (Read 2881 times)

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: System crash with ShowMessage
« Reply #15 on: May 02, 2020, 04:09:30 pm »
Can somebody help me analyse these messages?

Running from the terminal in this machine says something similar:
Code: Text  [Select][+][-]
  1. (project1:7625): Gdk-WARNING **: Native Windows wider or taller than 65535 pixels are not supported

It means basically what it says: someone tried to create a too large window. Most probably the window or composition manager calculates how big the window must be to accomodate all the text without regard to size limits and blithely tries to create and use such a window which, since it fails at the low-level, makes the application/wm/cm crash down.

What it sounds like is as if the middle (WM/CM) or high (LCL) level layers weren't checking whether the base "toolkit" (Gtk in this case) returns a valid window or errors out. Strange, but it can happen ...
« Last Edit: May 02, 2020, 04:12:16 pm by lucamar »
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: System crash with ShowMessage
« Reply #16 on: May 02, 2020, 06:31:35 pm »
Hi!

As MaxCuriosus uses the same Lazurus and fpc version like me, I think the error is in a deeper level.

And gtk does not talk about it's own error but received an error from the X Window System, that a native Window can't be bigger than 32767 x 32767.

The program did not crash with Windows and and up to date KDE.

So there are three possibilities :

* The X 11 system is outdated or
* The desktop system including the window manager is outdated.
* Or both.

With which desktop did you ran the tests?

Winni
« Last Edit: May 02, 2020, 06:36:23 pm by winni »

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: System crash with ShowMessage
« Reply #17 on: May 02, 2020, 06:46:07 pm »
With which desktop did you ran the tests?

Ubuntu 12.04 and Ubuntu 18.04 (Gnome session, not Unity). The quoted message is from the (much) older Ubuntu (which for the moment is my "main" OS) but the more recent failed the same way.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018