Skip to content
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

Webgrind - Impossible to generate Graph #4

Closed
heyyo-droid opened this issue Jan 13, 2023 · 6 comments
Closed

Webgrind - Impossible to generate Graph #4

heyyo-droid opened this issue Jan 13, 2023 · 6 comments

Comments

@heyyo-droid
Copy link

heyyo-droid commented Jan 13, 2023

I was able to configure Xdebug profile with webgrind.

But I don't succeed to generate the graph.
I got this error:
Unable to generate /tmp/cachegrind.out.103.gz-10.webgrind.svg via python: /usr/bin/python and dot: /usr/bin/dot. Please update config.php.

I suppose we are missing one package in webgrind container:
jokkedk/webgrind#22

image

@csandanov csandanov transferred this issue from wodby/docker4drupal Jan 16, 2023
csandanov added a commit that referenced this issue Jan 16, 2023
@csandanov
Copy link
Member

Could you please try again with the latest image, I've added py3-graphviz package

@heyyo-droid
Copy link
Author

Thanks I will

@heyyo-droid
Copy link
Author

By using WEBGRIND_TAG=latest, the problem remains.

image

I can see the py3-graphviz
image

@csandanov
Copy link
Member

it seems the issue caused by compressed xdebug files, webgrind has added the support but no tag was released jokkedk/webgrind#156

@csandanov
Copy link
Member

PHP now has PHP_XDEBUG_USE_COMPRESSION, set it to false and the call graph will work. That's a workaround until they release a tag with compression support

@jomoflash
Copy link

jomoflash commented May 4, 2024

Disabling xdebug compression helps. Using below configuration in php.ini

[xdebug]
xdebug.mode = profile
xdebug.start_with_request = yes
xdebug.use_compression = false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants