Recent

Author Topic: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi  (Read 9359 times)

ertank

  • Sr. Member
  • ****
  • Posts: 274
Hello,

I have tested this problem on yesterday updates of Jessie and Stretch operating systems. Same problem exists in both of them. I also confirm that There is no such problem on fixes_1_6 branch aka 1.8.0RC3 version

Problem is that, when ever I open a dialog windows of Lazarus - be it open file, options, form list (Shift+F12) - that window shows up and instantly refresh itself and go behind all open Lazarus windows having focus on itself. If current windows allows, I can drag that modal window. I can use keys, or click its visible parts. Everything works. Except it stays behind no matter what.

I also cannot select a design form because Lazarus dialog is a modal one.

With these explanations, now I hope it is easier to understand it using attached pictures.

P.S. First picture, there is no problem. Just to display view before any dialog window shows.

balazsszekely

  • Guest
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #1 on: November 02, 2017, 11:15:55 am »
@ertank
Quote
I have tested this problem on yesterday updates of Jessie and Stretch operating systems. Same problem exists in both of them. I also confirm that There is no such problem on fixes_1_6 branch aka 1.8.0RC3 version
I did take a quick look. It seems like r55848 is a good candidate for causing such an issue. In order to test(I don't have Raspberry Pi) please do the following:
1. Navigate to $(LazarusDir)/lcl/interfaces folder
2. Make a backup of gtk2 subfolder(copy somewhere else)
3. Extract the content of gtk2.zip(see attachment1) to gtk2 folder, overwrite existing files
4. Open Tools-->Configure "Build Lazarus", click "Clean all" then rebuild(see attachment2)

PS: You can always switch back to the original state, doing the same steps with the backup gtk2 folder.
« Last Edit: November 02, 2017, 11:26:09 am by GetMem »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #2 on: November 02, 2017, 11:31:42 am »
Yes, there is a report:
 https://bugs.freepascal.org/view.php?id=32575
What desktop system you have?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

ertank

  • Sr. Member
  • ****
  • Posts: 274
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #3 on: November 02, 2017, 11:33:48 am »
Yes, there is a report:
 https://bugs.freepascal.org/view.php?id=32575
What desktop system you have?
That is Raspbian default. I believe it is called LXDE

ertank

  • Sr. Member
  • ****
  • Posts: 274
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #4 on: November 02, 2017, 11:41:03 am »
4. Open Tools-->Configure "Build Lazarus", click "Clean all" then rebuild(see attachment2)
PS: You can always switch back to the original state, doing the same steps with the backup gtk2 folder.
Now it is compiling. I shall provide a feedback when done.

I got a slightly different Build form. It is selected options were as in the attached before I click build button.

Thanks.

ertank

  • Sr. Member
  • ****
  • Posts: 274
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #5 on: November 02, 2017, 11:55:01 am »
First trials seems to be fine. I will work during the day and see if it ever happnens again.

We can say these three files solves problem. I may have it back again, I will inform in here.

Thanks.

balazsszekely

  • Guest
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #6 on: November 02, 2017, 12:03:14 pm »
Quote
@ertank
We can say these three files solves problem.
Unfortunately it's not that simple. If you wish a long term solution, you should report the bug. Replacing those three files it worked for now, but almost certainly won't work in the future.

ertank

  • Sr. Member
  • ****
  • Posts: 274
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #7 on: November 02, 2017, 12:19:33 pm »
Unfortunately it's not that simple. If you wish a long term solution, you should report the bug. Replacing those three files it worked for now, but almost certainly won't work in the future.
Done. https://bugs.freepascal.org/view.php?id=32635

balazsszekely

  • Guest
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #8 on: November 02, 2017, 01:01:41 pm »
Unfortunately it's not that simple. If you wish a long term solution, you should report the bug. Replacing those three files it worked for now, but almost certainly won't work in the future.
Done. https://bugs.freepascal.org/view.php?id=32635
Thanks, let's hope it will be fixed soon.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #9 on: November 02, 2017, 02:13:43 pm »
Done. https://bugs.freepascal.org/view.php?id=32635
Thanks, let's hope it will be fixed soon.
Sorry but the report is not very good. Essential information is missing. What was revealed by the "3 files"? What revision broke it? Are there related issues? Does the desktop system in use affect? Which ones show the problem?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

balazsszekely

  • Guest
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #10 on: November 02, 2017, 02:39:35 pm »
The issue is caused by r55848, I will add a comment to the bugreport soon. It affects every linux system I tested: Ubuntu 16(crappy os by the way), Linux mint 17 mate, Kali Linux. Every newly created form(form1, form2) goes under object inspector, message window, etc. More over under raspberry pi it's even worse, Lazarus dialogs are alway in background(see above).

PS: The bug is also mentioned here: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Annoyance-with-1-8RC5-td4052951.html
« Last Edit: November 02, 2017, 02:58:29 pm by GetMem »

balazsszekely

  • Guest
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #11 on: November 06, 2017, 06:25:14 am »
@ertank
The modal window issue is fixed, you should test it on Raspberry PI ASAP.

ertank

  • Sr. Member
  • ****
  • Posts: 274
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #12 on: November 07, 2017, 07:34:38 pm »
Out of city for business trip. Be back next Monday, 13th. Unfortunately, I cannot test it before.

ertank

  • Sr. Member
  • ****
  • Posts: 274
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #13 on: November 14, 2017, 09:35:57 am »
I get new 1.80RC5 sources SVN 56371 in a new directory and applied the patch. Everything seems to be working OK. No modal window problem as far as I can see.

balazsszekely

  • Guest
Re: Lazarus 1.8.0RC5 SVN 56257 - Modal window problem on Raspberry Pi
« Reply #14 on: November 14, 2017, 10:07:46 am »
Quote
@ertank
I get new 1.80RC5 sources SVN 56371 in a new directory and applied the patch. Everything seems to be working OK. No modal window problem as far as I can see.
Great! Thanks. Let's hope the changes will be merged to 1.8 final.

 

TinyPortal © 2005-2018