-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show Call Graph Error (cannot be displayed because it contains errors) #22
Comments
open webgrind wherever it is located on your computer.
|
Hi, I have graphviz installed (dot is under /usr/bin/dot) and have updated the config.php file accordingly, Still no go on the image generation, anything else I should check? |
yeah, I'm having a similar problem. Both dot and python are installed. The problem is that library/gprof2dot.py isn't producing any useful output. All it manages to generate is the following preamble:
Oddly enough, that won't produce a very interesting picture... |
Hi, i also faced same problem. In my case, i found it was caused by xdebug setting - xdebug.profiler_append When "xdebug.profiler_append = 1" in php.ini, different request is mapped to the same cachegrind file, which gprof2dot.py cannot parse properly. So, setting "xdebug.profiler_append = 0" in php.ini, I could see the call graph properly. |
the dot executable is referenced incorrectly in the config file.
Before this you need to install graphviz
|
In my case, the generated image is always a 11x11 blank png. Any ideas why? |
I also have empty graph - using last version of Webgrind (from github) and xdebug version 2.1.0 |
Thanks @bananaumai. That worked for me. |
For brew brew install graphviz after installation config.php static $dotExecutable = '/usr/local/Cellar/graphviz/x.xx.x/bin/dot'; |
i replaced the gprof2dot.py with a symbolic link to a checkout of the script ( http://code.google.com/p/jrfonseca/wiki/Gprof2Dot ) in José Fonseca's utilitities via : |
I'm having problems with this too - a 'missing image' icon is present in Chrome. (I'm running on OSX - Mountain Lion)
To fix this, I did the following (I have homebrew installed already) :
Following this, it all worked as expected. |
Same problem here. Graphviz & python installed and correct in webgrind config file here (Feedora 17). |
Has anyone managed to get it to work on a Windows box at all? Graphviz that is |
Okay I have it working on Windows for anyone who wants to know what to do.
So here's an example: config.php changes
index.php changes
|
@syntheticintel This worked for me from webgrind-master and Ubuntu 12.04. |
I'm running on OSX - Mountain Lion line 152 in index.php
dosn't work, but when run in command line, for example:
class graph is generated. Any ideas? |
check your conf.php for $pythonExecutable it looks like you might have a different path setup there. try which python from the terminal to see where it is installed and update the path on conf.php |
also check for your $doExecutable... |
and
are set. I have data from python, i have problem with dot, from cli - ok, but from _shell_exec_ :/
$return is null :( PHP 5.4.4, MAMP server - I spent many hours and nothing ... |
did you use brew to install dot? |
After installing dot with brew I had to set $dotExecutable to: static $dotExecutable = '/usr/local/Cellar/graphviz/2.28.0/bin/dot'; |
No, port, dot installed with imagemagick. |
my bad, yeah graphviz installed via imagemagick, but search in /usr/local/Cellar for graphviz dir. |
I had problems when setting up webgrind, and turns out was just to do with the paths, from command line everything worked for me... |
and $dotExecutable is set to:
I have no idea on this, from command line everything worked ... For phpDocumentator dot works perfectly. OK, a have bug:
OK my friends - SOLUTION
Have fun! |
are you able to run mkjasinski@machine ~ $ dot -V On 30/01/2013, at 9:16 AM, Marcin notifications@github.com wrote:
|
Yes, all is ok :) |
When I click on Show Call Graph button, it opens new page with this error: |
@lexonight comment, about incorrect paths in the config solved my issue. I removed 'local' out of the path & it now works |
In case you are forced ;) to use XAMPP in Windows this worked fine for me:
|
Installing graphviz and changing the |
Thank you GiumDev! That did it for me (XAMPP). |
In Windows in XAMPP it's telling me "The image 'http://xxx/__grind/index.php?dataFile=0&showFraction=0.9&op=function_graph' cannot be displayed because it contains errors". |
Few providers / clients disable the shell_exec function via "disable_functions" in the php.ini. This will result in a white page when opening the call graph. |
On-prem server. I can use shell_exec, its not disabled. Clicking on the FYI. On 16 December 2014 at 04:05, slein87 notifications@github.com wrote:
|
Thanks @sameg14, got it working in Ubuntu 14.04. 👍 |
@vaughany You're very welcome! |
I was having trouble getting this to work on Windows 7 as well. For starters, the changes suggested by StevenMapes were necessary. Also necessary was moving GraphViz from the default installation folder (for me, C:\Program Files (x86)\GraphViz) to something without spaces: C:\dot. I tried putting quotes around the path, but I couldn't find a combination that shell_exec liked. |
@StevenMapes Also works for me except that I did not change anything about index.php My configuration: /**
* Path to python executable
*/
static $pythonExecutable = 'C:\\Python27\\python.exe';
/**
* Path to graphviz dot executable
*/
static $dotExecutable = '"C:\\Graphviz2.38\\bin\\dot.exe"'; I was tried Python 3.5 but it is not working, change to 2.7 works fine. |
I followed the @ve3 solution, and worked fine for me. Thanks =) |
For those who use MAMP. After changing the config.php and setting the path you must restart the server. It worked for me. |
By me I have issue to get the svg file cause of error returned by the python
|
@alpha0010 yes it does. I'm using a vagrant machine with Ubuntu 14.04 with Python 2.7.6 |
It appears that is a known issue, that does not have a current plan for a fix. (If you think your case is different, please report on jrfonseca/gprof2dot.) |
Ok thanks
Envoi depuis mon mobile
… Le 29 nov. 2016 à 02:46, Alpha ***@***.***> a écrit :
It appears that is a known issue, that does not have a current plan for a fix. (If you think your case is different, please report on jrfonseca/gprof2dot.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
To all involved: this is a rather extended thread comprising of a variety of issues, which may or may not be outdated. Closing this ticket; if your issue is still applicable, please open a new ticket. |
At config.php change python to python3 And it works. |
Apologies if this is addressed in other issues.
I have the latest stable release of webgrind and every time I 'Show call Graph' I get the error:
The Image "(image generation url)" cannot be displayed because it contains errors
Any ideas how to fix this?
The text was updated successfully, but these errors were encountered: