Lazarus

Programming => Packages and Libraries => LazReport => Topic started by: tkramer3 on September 07, 2012, 10:00:42 pm

Title: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: tkramer3 on September 07, 2012, 10:00:42 pm
Lazreport on Lazarus 1.0 under Kubuntu 12.04. Asus MB m5a88v evo,Graphic card:VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS880 [Radeon HD 4250] 

When I start the designer, i see only a gray panel where the report should be designed. The other widgets look OK. With the stringgrid sample project, I can preview and print the report, but I can not see the design (I can change it, but i can not see what I changed until I preview it). Also, on the stringrid project, in runtime there is a design report button, when I click it, the designer does just show the gray panel, see attached a printscreen .
Title: Re: Lazreport designer shows just a gray panel, no objects on AMD64 Linux
Post by: taazz on September 07, 2012, 10:10:05 pm
Have seen it on windows too from time to time I do not remember if it was on lazarus or delphi with freeReport though.

Try to add a new page in your report and switch between them this should force it to refresh correctly you can then delete the second page or the one that does not display correctly but If I remember right you have to do that every time you open the designer.
Title: Re: Lazreport designer shows just a gray panel, no objects on AMD64 Linux
Post by: tkramer3 on September 07, 2012, 10:19:11 pm
Hello taazz,

Thank you for your superquick answer, I tried it immediately but unfortunately does not work.

Title: Re: Lazreport designer shows just a gray panel, no objects on AMD64 Linux
Post by: tkramer3 on September 09, 2012, 09:16:22 am
I tried this on an MSI AMD64 laptop also on Kubuntu 12.04 with Mobility Radeon HD 4200 and this works OK. I remembered I read somewhere it could be caused by 32 -> 24 bit graphics conversion, the Mobility 4200 is probably a simpler video interface or is controlled differently. 
Title: Re: Lazreport designer shows just a gray panel, no objects on AMD64 Linux
Post by: tkramer3 on October 25, 2012, 09:32:10 pm
I installed Kubuntu 12.10 on my MSI Laptop and Lazarus 1.0 on top of that and now... the same problem on this machine  to  :'(

Nobody else got this?

Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: cpalx on November 03, 2012, 01:23:16 pm
Try to use GTK instead od QT. I think the bug is in the QT interfaces. If everythings go ok, then report in bugtracker.
Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: tkramer3 on November 06, 2012, 07:37:12 pm
Thank you for your reply cpaix,

I did this under GTK, I have tried to get it running under QT to see if that works, but I had trouble building the IDE under QT, so I could not test under QT.
Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: jesusr on November 07, 2012, 08:40:20 pm
tkramer3 have you tried Lazarus 1.0.2?

I cannot reproduce the problem.
Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: tkramer3 on November 15, 2012, 09:14:45 pm
Thank you for your reply,

I just tried this on 2 machines, the desktop on which I reported this first, and the MSI laptop. They both still have this problem with Lazarus 1.0.2. I uninstalled lazarus by purging with dpkg the fpc, fpc-src and lazarus packages, and removing the .lazarus directory under my home directory, and install the new DEB packages.

Everything looks fine, but as soon as I open the Lazreport designer, the gray panel reappears. I can place bands, texts and pictures, nothing appears in the designer, but when I do a preview they show up in the report. I also checked I can add pages, in various formats and orientations,  they do not appear in the designer except for the tab, but they all show up in the preview, with correct size and orientation. 
Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: tkramer3 on November 16, 2012, 01:15:16 pm
Just found a somewhat laborious but straightforward solution: I installed Debian  Wheezy with KDE (and Gnome, which is the default when you install from internet), on the desktop machine and Lazarus 1.0.2 on top of that, and with this, lazreport designer works OK.

Kubuntu basically is Debian + KDE but I guess some package is missing in Kubuntu or a different version is being deployed or some Gnome package is active.

Yesterday I also tried Ubuntu 12.10, but after installing Lazarus I did not even get a main menu bar, I had to use CTRL <F>  or <ALT> F to do anything with it.



Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: neodarkman on March 02, 2013, 02:59:06 pm
I use the Lazarus 1.0.6 and have a same problem.
But, if a run lazarus as root, lazreports works....  :o

will be a bug?

Ps.: sorry my english, I'm brazilian.
Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: tkramer3 on March 04, 2013, 09:35:45 pm
Hello Neodarkmen,

Are you also using AMD64 and Kubuntu?

I reported this as a bug, but the developer could not reproduce the problem (See post jesusr of nov 7  2012). I tried as root and by doing this, Lazreport also works OK. This can probably be used as a hint for reproducing this problem, and perhaps solving it.



Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: neodarkman on March 07, 2013, 07:49:48 pm
Hello Neodarkmen,

Are you also using AMD64 and Kubuntu?

I reported this as a bug, but the developer could not reproduce the problem (See post jesusr of nov 7  2012). I tried as root and by doing this, Lazreport also works OK. This can probably be used as a hint for reproducing this problem, and perhaps solving it.

Hi..
Yes, I'm using (core2quad Q6600) and kubuntu 64bits.

Lazarus 1.0.6 and Freepascal 2.6.2
[]'s
Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: jesusr on March 08, 2013, 07:36:04 pm
Please try changing your Kubuntu theme.
Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: neodarkman on March 09, 2013, 02:14:59 pm
Please try changing your Kubuntu theme.
Do you think the theme (default) Oxygen has something to do with it?
I'm usign KDE 4.8.5.
Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: tkramer3 on March 09, 2013, 04:38:52 pm
I tried some different themes, and I also downloaded some new themes and tried them, but it did not solve this problem. I am using KDE 4.8.5 too.
Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: jesusr on March 12, 2013, 10:03:38 pm
Sadly I removed my kubuntu install here. Once I reproduced the problem and confirmed changing the default theme solved the issue, I overwrote kubuntu VM with something else (/me is not in love with KDE anymore, specially when using old equipment). If I remember correctly, is not the Kde theme, is was the settings that make GTK to look alike KDE or the GTK2 theme used.
Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: jesusr on March 19, 2013, 07:06:54 am
Ok, I gave him another chance to Kubuntu.

I can confirm that Oxygen-gtk theme is the responsible for this bug, if you run the program as this way:
Code: [Select]
$ OXYGEN_DISABLE_INNER_SHADOWS_HACK=1 ./theprogram (or ./lazarus)
the problem disappear, but there is another artifact, the scrollbars on designer are not painted, they are functional but there are only empty spaces where the scrollbar should appear. It must be another oxygen-gtk problem but I have not investigated too much about another command line workaround.

Instead, in revision 40585 and 40586 I modified the report designer to overcome this problem
Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: neodarkman on March 21, 2013, 04:30:51 pm
I installed and configured the theme QtCurve GTK to use it. Hence the problem was solved.
Title: Re: Lazreport designer shows just a gray panel, no rep design objects on AMD64 Linux
Post by: tkramer3 on March 30, 2013, 11:21:12 pm
I tried the OXYGEN...HACK.... from the post of Jesusr, unfortunately that didn't work.

Also I tried the daily snapshot, with Fpc 2.6.0 and Lazarus 1.1.40672, this worked OK under Kubuntu - AMD64

And finally I installed the latest release, Lazarus 1.0.8 with fpc 2.6.2. This did not work. But after installing QTcurve (just with apt-get install qtcurve)  and switching in KDE system settings-> Application Appearance-> GTK+ Appearance -> Widget Style (under GTK+ Styles) -> QtCurve (Or any other style except Oxygen-gtk) it also worked.

Oxygen-gtk is the default in this setting. After switching back to this default and restarting Lazarus the gray panel reappeared.

So with the two options I've got right now I am very happy, thank you Jesus and Neodarkman for this results.
TinyPortal © 2005-2018