Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-03

Form refuses to display properly under Ubuntu x64

9 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Brunner

Compiler: FPC + Laz from SVN trunk
OS: Linux Ubuntu 9.10 x64

No matter what I do, I can't get the form to load properly. There is definitely something wrong with the lcl form streaming under linux. I don't know what's causing it bug can someone fix the issue?

A few days ago I noticed the IDE compile dialog was messed up. I had submitted a really cool dialog a few months ago and I'm really disappointed in the way it looks now. I'm suspecting this latest bug is what caused that change in the dialog look.

Windows compile does not have this issue. Windows displays the form (Dialog.png)

And on a more general note... The IDE is starting to crash every few minutes. It just hangs. It started around the time I installed Chrome...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Dialogs.tar.gz
Type: application/x-gzip
Size: 9845 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100316/16e7a642/attachment-0001.bin> -------------- next part --------------
A non-text attachment was scrubbed...
Name: Dialog.png
Type: image/png
Size: 25640 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100316/16e7a642/attachment-0001.png>

Reply by email

Andrew Brunner
to Andrew Brunner

Compiler: FPC + Laz from SVN trunk
OS: Linux Ubuntu 9.10 x64

No matter what I do, I can't get the form to load properly. ?There is definitely something wrong with the lcl form streaming under linux. ?I don't know what's causing it bug can someone fix the issue?

A few days ago I noticed the IDE compile dialog was messed up. ?I had submitted a really cool dialog a few months ago and I'm really disappointed in the way it looks now. ?I'm suspecting this latest bug is what caused that change in the dialog look.

Windows compile does not have this issue. ?Windows displays the form (Dialog.png)

And on a more general note... The IDE is starting to crash every few minutes. ?It just hangs. ?It started around the time I installed Chrome...

P.S.

Sorry if you got this a second time, I had to update mailing lists... -------------- next part --------------
A non-text attachment was scrubbed...
Name: Dialog.png
Type: image/png
Size: 25640 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100316/4063d6f9/attachment-0001.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: Dialogs.tar.gz
Type: application/x-gzip
Size: 9845 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100316/4063d6f9/attachment-0001.bin>

Reply by email

Mattias Gaertner
to Andrew Brunner
Compiler: FPC + Laz from SVN trunk OS: Linux Ubuntu 9.10 x64 No matter what I do, I can't get the form to load properly.

It loads here under linux/gtk2.
Maybe it was caused by bug
http://bugs.freepascal.org/view.php?id=16009

Show quoted text 7 lines
?There is definitely something wrong with the lcl form streaming under linux. ?I don't know what's causing it bug can someone fix the issue? A few days ago I noticed the IDE compile dialog was messed up. ?I had submitted a really cool dialog a few months ago and I'm really disappointed in the way it looks now.

Have you provided it in mantis?
Do you know the mantis bug number?

Show quoted text 9 lines
?I'm suspecting this latest bug is what caused that change in the dialog look. Windows compile does not have this issue. ?Windows displays the form (Dialog.png) And on a more general note... The IDE is starting to crash every few minutes. ?It just hangs. ?It started around the time I installed Chrome...

Can you run the IDE in gdb and create a backtrace. Chances are high I can fix it then.

Mattias

Reply by email

Andrew Brunner
to Mattias Gaertner

Thanks Mattias,

I just re-loaded Ubuntu this time it was livex64 10.04 daily build. After I got setup I was able to checkout FPC and Lazarus and build both.

I no longer see this issue. Which means the problem was from Linux either GTK or something else I do not know. All I know is it's working now under 10.04 and it did not work under my stale 9.10 with all updates since the day it was released. I guess it was time I had done a fresh install on this laptop. In any case if the issue pops up again I'll pursue it, otherwise I've gotta get back to work.

WOW though Ubuntu 10.04 looks better than my Windows 7.

Reply by email

Andrew Brunner
to Andrew Brunner

Actually, I just opened another form and it was mangled up even more than the first form. The main control console form has tons of nested gui objects. I'm not exaggerating when I say that the problem is still present for (nested) complicated lfm data.

It could be related to GTK2 or perhaps lcl. My bet is on any code specific to GTK2.

HELP is much needed b/c I'm pretty much done major flaw testing under Windows and need to focus on Linux now.

Will get Laz under GDB next...

Reply by email

Andrew Brunner
to Andrew Brunner

Debugging log was collected with project had no open forms. After running I opened the form frmConsole from the project and that's when get_state stuff got logged.

The status bar of the form comes up as Height = 1.. Which is not true the lfm has 22 for the height.

Reading symbols from /home/atbrunner/Developer/Lazarus/startlazarus...done. (gdb) run
Starting program: /home/atbrunner/Developer/Lazarus/startlazarus [Thread debugging using libthread_db enabled]
[WARNING] Out of OEM specific VK codes, changing to unassigned [WARNING] Out of unassigned VK codes, assigning $FF TLazarusManager.Run starting /home/atbrunner/Developer/Lazarus/lazarus ... [WARNING] Out of OEM specific VK codes, changing to unassigned [WARNING] Out of unassigned VK codes, assigning $FF TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/atbrunner/.lazarus"
SecondaryConfigPath="/etc/lazarus"

(lazarus:18297): Gdk-CRITICAL **: gdk_window_get_state: assertion `GDK_IS_WINDOW (window)' failed
LAZARUS END - cleaning up ...
[TMainIDE.Destroy] A
[TMainIDE.Destroy] B -> inherited Destroy... TMainIDE [TMainIDE.Destroy] END

Program exited normally.
(gdb)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Console.tar.gz
Type: application/x-gzip
Size: 38015 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100317/f4cac650/attachment-0001.bin>

Reply by email

Mattias Gärtner
to Andrew Brunner

Zitat von Andrew Brunner :

Show quoted text 6 lines
Debugging log was collected with project had no open forms. After running I opened the form frmConsole from the project and that's when get_state stuff got logged. The status bar of the form comes up as Height = 1.. Which is not true the lfm has 22 for the height.

I can only open it in the designer, as the unit contains a lot of references. It opens here in the designer and the statusbar has height 22.

Show quoted text 15 lines
Reading symbols from /home/atbrunner/Developer/Lazarus/startlazarus...done. (gdb) run Starting program: /home/atbrunner/Developer/Lazarus/startlazarus [Thread debugging using libthread_db enabled] [WARNING] Out of OEM specific VK codes, changing to unassigned [WARNING] Out of unassigned VK codes, assigning $FF TLazarusManager.Run starting /home/atbrunner/Developer/Lazarus/lazarus ... [WARNING] Out of OEM specific VK codes, changing to unassigned [WARNING] Out of unassigned VK codes, assigning $FF TMainIDE.ParseCmdLineOptions: PrimaryConfigPath="/home/atbrunner/.lazarus" SecondaryConfigPath="/etc/lazarus" (lazarus:18297): Gdk-CRITICAL **: gdk_window_get_state: assertion `GDK_IS_WINDOW (window)' failed

I fixed this critical.

Maybe the bug was fixed with some other fixes?
Can you test with svn revision 24064?

Mattias

Reply by email

Andrew Brunner
to Mattias Gärtner
Show quoted text 9 lines
I can only open it in the designer, as the unit contains a lot of references. It opens here in the designer and the statusbar has height 22. I fixed this critical. Maybe the bug was fixed with some other fixes? Can you test with svn revision 24064? Mattias

Under latest svn it loaded form with statusbar height 22. So far so good. Will have to go over with details of all other objects as the form is loaded with GUI objects.

Thanks so much Mattias!

Reply by email

Andrew Brunner
to Andrew Brunner

This error is being raised using my mouse to scroll to tabs left of current tab. I scroll (down) I believe inside the Tabs.

(lazarus:9726): Gtk-CRITICAL **: gtk_widget_is_ancestor: assertion `ancestor != NULL' failed

Finally, most everything checks out working BUT the following problem:

I have nested tab controls and I'm noticing various GroupBoxes that are set visible=false but are being displayed at runtime even though it should not.

cbClusters_ClusterInfo.Visible=false but you can see it through the GUI (See attachment)

This is a problem b/c the groupbox inside nested
(PageControl/TTabSheet) is part of logic that does not make sense until GUI is put into edit mode.

Can you find the culprit w/o back-trace or errors being thrown for this particular problem? If not, how do we get this problem fixed? -------------- next part --------------
A non-text attachment was scrubbed...
Name: SCS-Cluster.png
Type: image/png
Size: 20957 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100317/04f2ce3b/attachment-0001.png>

Reply by email