No images in reports

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

No images in reports

Jonathan Gdalevich
Hi,

I am running Bugzilla 2.18 with MySQL 4.1.11.  Everything works great except
when I try to do graphical reports, or charts (either old or new), I get a
broken link for the image.  When I try to view the image, I get the
following message:

The image
"...report.cgi?bug_file_loc_type=allwordssubstr&bug_status=new&bug_status=reopened&bugidtype=include&chfieldto=Now&emailassigned_to1=1&emailassigned_to2=1&emailcc2=1&emailreporter2=1&emailtype1=substring&emailtype2=substring&field0-0-0=noop&long_desc_type=allwordssubstr&query_format=report-graph&short_desc_type=allwordssubstr&type0-0-0=noop&y_axis_field=bug_severity&format=bar&ctype=png&action=plot&width=600&height=350"
cannot be displayed, because it contains errors.

However, Table/CSV/Tabular reports work fine and give correct results.

I have the following Perl modules installed:

Checking perl modules ...
Checking for       AppConfig (v1.52)   ok: found v1.56
Checking for             CGI (v2.93)   ok: found v3.08
Checking for    Data::Dumper (any)     ok: found v2.121
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.9006
Checking for      File::Spec (v0.82)   ok: found v0.87
Checking for      File::Temp (any)     ok: found v0.14
Checking for        Template (v2.08)   ok: found v2.14
Checking for      Text::Wrap (v2001.0131) ok: found v2001.09292

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

and have libgd version 2.0

According to the Bugzilla manual, I should have everything required to be
able to generate and display the images.

I should also note that when trying to run Old Charts, the image files are
gnerated but are of size 0 and contain no data.

I have crono running every day collecting data for the past three weeks.

Sincerely,

Jonathan Gdalevich
Software Engineering Intern (ClickFox, Inc.)


_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: No images in reports

Gervase Markham
Jonathan Gdalevich wrote:

> Hi,
>
> I am running Bugzilla 2.18 with MySQL 4.1.11.  Everything works great except
> when I try to do graphical reports, or charts (either old or new), I get a
> broken link for the image.  When I try to view the image, I get the
> following message:
>
> The image
> "...report.cgi?bug_file_loc_type=allwordssubstr&bug_status=new&bug_status=reopened&bugidtype=include&chfieldto=Now&emailassigned_to1=1&emailassigned_to2=1&emailcc2=1&emailreporter2=1&emailtype1=substring&emailtype2=substring&field0-0-0=noop&long_desc_type=allwordssubstr&query_format=report-graph&short_desc_type=allwordssubstr&type0-0-0=noop&y_axis_field=bug_severity&format=bar&ctype=png&action=plot&width=600&height=350"
> cannot be displayed, because it contains errors.

Add "&debug=1", and see if the output sheds any light. If not, attach it
to a new Bugzilla bug report.

Gerv
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: No images in reports

Jonathan Gdalevich
"Gervase Markham" <[hidden email]> wrote in message
news:d7kudv$[hidden email]...
> Add "&debug=1", and see if the output sheds any light. If not, attach it
> to a new Bugzilla bug report.
>
> Gerv

Thanks for the reply.

I got this output:


data hash:
$VAR1 = '-total-';
$VAR2 = {
          'critical' => {
                          '' => 14
                        }
        };
$VAR3 = '';
$VAR4 = {
          'critical' => {
                          '' => 14
                        }
        };


data array:
$VAR1 = [
          [
            'critical'
          ],
          [
            14
          ]
        ];


Report: Severity
        2005-06-01 22:51:55

SELECT 42217354, bugs.bug_severity, 42217354 FROM bugs LEFT JOIN
bug_group_map ON bug_group_map.bug_id = bugs.bug_id AND
bug_group_map.group_id NOT IN (8,3,4,1,6,2,5,7) LEFT JOIN cc ON cc.bug_id =
bugs.bug_id AND cc.who = 41 WHERE (bugs.bug_severity IN ('critical')) AND
(bugs.bug_status IN ('new','reopened')) AND ((bug_group_map.group_id IS
NULL) OR (bugs.reporter_accessible = 1 AND bugs.reporter = 41) OR
(bugs.cclist_accessible = 1 AND cc.who IS NOT NULL) OR (bugs.assigned_to =
41) ) GROUP BY bugs.bug_id

It looks correct to me considering 42217354 is built into report.cgi.  I
still get correct Table but no image on the screen.  I still think it is a
problem with my setup.  Does anyone know what folders the images are
supposed to be saved to?

Sincerely,

Jonathan Gdalevich
Software Engineering Intern (ClickFox, Inc.)


_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: No images in reports

Jonathan Gdalevich
In reply to this post by Jonathan Gdalevich
I compared debug results from my Bugzilla with Bugzilla at
http://landfill.bugzilla.org/bugzilla-2.18-branch/.

It appears the calculations of data are correct and so is the SQL statement
used to retrieve the data; however, in my Bugzilla the image is not being
displayed.  I cannot find it anywhere in the Bugzilla directory (I can find
images from Old Charts but they are all 0 bytes in size); therefore, I think
it is same to assume that the images are not being generated.

Does anyone know what might cause that?
What directories should contain the generated images for Graphical reports?
Has anyone had a similar problem before?

Sincerely,

Jonathan Gdalevich
Software Engineering Intern (ClickFox, Inc.)


_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: No images in reports

Gervase Markham
Jonathan Gdalevich wrote:
> What directories should contain the generated images for Graphical reports?

It's never written to disk. It's streamed directly to the browser from
the CGI.

Gerv
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: No images in reports

Gervase Markham
In reply to this post by Jonathan Gdalevich
Jonathan Gdalevich wrote:
> I got this output:

I need the URL to match... And, ideally, the working equivalent URL on
b.m.o. And a Bugzilla version. In fact, a proper bug report :-)

Gerv
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: No images in reports

Jonathan Gdalevich
Hi,

I found a duplicate bug in Bugzilla's Bugzilla.
https://bugzilla.mozilla.org/show_bug.cgi?id=257497
(should have looked there first, sorry).

I am going to try to reinstall GD and/or gdlib.  They seem to be compatible
(2.19 and 2.0.33), but other people are having similar problems in the bug
report.  If reinstalling GD won't fix it, I will submit a proper bug report;
otherwise, there is no point in adding another duplicate if the same
solution works.

Thank a lot for all the help,

Jonathan Gdalevich
Software Engineering Intern (ClickFox, Inc.)


_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools