Closed Bug 276832 Opened 20 years ago Closed 20 years ago

any graphical charts are not displayed correctly

Categories

(Bugzilla :: Reporting/Charting, defect)

2.18
All
Linux
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 275705

People

(Reporter: Leufkes, Assigned: gerv)

Details

in addition to bug#257497 ;-)

Our installation is 2.18rc2 under Red Hat Linux ES 3.0. 
Everything works fine but whenever a graphic should be displayed (old or new
graphs, pie, line and so on) it ends with a broken image. I fact the linked
png-files in the graphs-directory are empty (0 bytes). collectstats.pl runs
every night.

We had problems installaing the GD 1.x on our server under Red Hat. 
So we decided to install GD 2 (yes, with png support). 
But that should not be the problem.

Here is the output of my checksetup:
[tst03:buggfi] /kmtools/bugzilla/gfi> checksetup.pl

Checking perl modules ...
Checking for       AppConfig (v1.52)   ok: found v1.56
Checking for             CGI (v2.93)   ok: found v3.05
Checking for    Data::Dumper (any)     ok: found v2.12
Checking for    Date::Format (v2.21)   ok: found v2.22
Checking for             DBI (v1.36)   ok: found v1.43
Checking for      DBD::mysql (v2.1010) ok: found v2.1021
Checking for      File::Spec (v0.82)   ok: found v3.01
Checking for      File::Temp (any)     ok: found v0.13
Checking for        Template (v2.08)   ok: found v2.13
Checking for      Text::Wrap (v2001.0131) ok: found v2001.0929

The following Perl modules are optional:
Checking for              GD (v1.20)   ok: found v2.19
Checking for     Chart::Base (v1.0)    ok: found v2.3
Checking for     XML::Parser (any)     ok: found v2.34
Checking for       GD::Graph (any)     ok: found v1.43
Checking for GD::Text::Align (any)     ok: found v1.18
Checking for     PatchReader (v0.9.4)  ok: found v0.9.5

Checking user setup ...

Warning: you have entered a value for the "webservergroup" parameter
in localconfig, but you are not running this script as root.
This can cause permissions problems and decreased security.  If you
experience problems running Bugzilla scripts, log in as root and re-run
this script, or remove the value of the "webservergroup" parameter.
Note that any warnings about "uninitialized values" that you may
see below are caused by this.

Removing existing compiled templates ...
Precompiling templates ...
Checking for    MySQL Server (v3.23.41) ok: found v4.0.18-standard

[tst03:buggfi] /kmtools/bugzilla/gfi>

At the moment I wonder about how to test the graphs functionality in Bugzilla,
so I could figure out where is the problem ?

Any hints welcome !
[eqf02:buggfi] ~> gdlib-config --version
2.0.33
[eqf02:buggfi] ~>
Thomas: I'm not sure what to suggest. There is a bug where someone has attached
a patch for testing GD, but it's fairly self-evident that it doesn't work for
you. <sigh>. Your libgd and GD.pm versions should be compatible (assuming GD.pm
is using that version of libgd).

Could you try reinstalling GD.pm from CPAN?

Gerv
> There is a bug where someone has attached a patch for testing GD

Bug 275701.

Gerv
(In reply to comment #3)
> > There is a bug where someone has attached a patch for testing GD
> 
> Bug 275701.
> 
> Gerv

this bug doesn´t have a patch ?
Sorry - make that bug 275705.

Gerv
I have installed the 2 png´s and 2 gif´s under t/ and added my testserver.pl
with the diff out of the patch. Here is the output:

[tst03:buggfi] /kmtools/bugzilla/gfi> testserver.pl http://bugtest.ihk-gfi.de/
TEST-OK Webserver is running under group id in $webservergroup.
TEST-OK Got ant picture.
TEST-OK Webserver is executing CGIs.
TEST-OK Webserver is preventing fetch of http://bugtest.ihk-gfi.de/localconfig.
Use of uninitialized value in print at ./testserver.pl line 148.
Use of uninitialized value in string eq at ./testserver.pl line 155.
TEST-FAILED GD Library generated a PNG that didn't match expected image.
  It has been saved as data/testgd-local.png
TEST-OK GD Library generated a good GIF image
TEST-FAILED Chart Library generated a png that didn't match expected image.
  It has been saved as data/testchart-local.png
[tst03:buggfi] /kmtools/bugzilla/gfi>


my line 148 is 
  print FH $my_png;
and line 155 is:
  if ($my_png eq $good_png) {


under data/ I can found a testgd-local.gif which seems to be ok.
testchart-local.png and testgd-local.gif are created empty (0 kb)
I can´t find testchart-local.gif.
just want to let you how we solve the problem:
- we installed GD Library 2.0 
- after that we compiled the Perl GD - Modul with -options PNG,JPEG,GIF -gd-path
/usr and then make test and install (without problems)
- after that the testserver.pl runs without errors:

[tst03:buggfi] /kmtools/bugzilla/gfi> testserver.pl http://bugtest.ihk-gfi.de
TEST-OK Webserver is running under group id in $webservergroup.
TEST-OK Got ant picture.
TEST-OK Webserver is executing CGIs.
TEST-OK Webserver is preventing fetch of http://bugtest.ihk-gfi.de/localconfig.
TEST-OK GD Library generated a good PNG image
TEST-OK GD Library generated a good GIF image
TEST-OK Chart Library generated a good png image
[tst03:buggfi] /kmtools/bugzilla/gfi>

Perhaps it is a good idea to let checksetup.pl look for the right GDlib version.

The GDlib 2.0 is not part of Red Hat ES 3.0. 
It´s seems to be included with RH ES 4.0.

*** This bug has been marked as a duplicate of 275705 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.