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 not load profiling files #143

Closed
PetrHar opened this issue Aug 18, 2021 · 17 comments
Closed

webgrind not load profiling files #143

PetrHar opened this issue Aug 18, 2021 · 17 comments
Labels

Comments

@PetrHar
Copy link

PetrHar commented Aug 18, 2021

OS: Debain 10
PHP: php7.4
Debug version: v3.0.4
Webgrind version: 1.8
Config xdebug:
`zend_extension=xdebug.so
xdebug.mode=profile
xdebug.start_with_request=trigger

xdebug.output_dir = /tmp`

The profile file is created at a folder /tmp. After pressing the update button in the webgirnd, the following will be displayed:
Loading...
Loading information from server. If the callgrind file is large this may take some time.

And no files will be loaded.
Where is the problem please?

@francoisjacquet
Copy link

francoisjacquet commented Aug 21, 2021

I have somewhat the same configuration as @PetrHar

; Webgrind (Xdebug profiling)
xdebug.mode = develop,profile
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = /tmp

The issue is a bit different though:
The cachegrind.out file data is displayed well, but when clicking on any arrow to expand (toggleCallInfo), the "Loading..." message is displayed and the computer freezes shortly after.

Tested with webgrind 1.7.0 too, same issue.

@alpha0010 alpha0010 added the bug label Aug 23, 2021
@alpha0010
Copy link
Collaborator

Difficult to find time to develop a project I am not actively using, but I will try to take a look sometime this week.

@kaihaase
Copy link

@PetrHar for xdebug version 3 you need to change line 138 of config.php (in version 1.8.0 of webgrind):
$dir = ini_get('xdebug.profiler_output_dir'); => $dir = ini_get('xdebug.output_dir');

see https://xdebug.org/docs/upgrade_guide#changed-xdebug.profiler_output_dir

@PetrHar
Copy link
Author

PetrHar commented Sep 8, 2021

@PetrHar for xdebug version 3 you need to change line 138 of config.php (in version 1.8.0 of webgrind):
$dir = ini_get('xdebug.profiler_output_dir'); => $dir = ini_get('xdebug.output_dir');

see https://xdebug.org/docs/upgrade_guide#changed-xdebug.profiler_output_dir

I edited the line, the result is the same

@kaihaase
Copy link

kaihaase commented Sep 8, 2021

I edited the line, the result is the same

I had the same problem, but was able to fix it with this. But of course it can have several causes. Which error message is displayed in the Console of the browser? Which responses do the XHR requests in the Network deliver?

@PetrHar
Copy link
Author

PetrHar commented Sep 8, 2021

Console:
ncaught TypeError: Cannot read properties of undefined (reading '4') at getCachedSortType (jquery.tablesorter.js:482) at multisort (jquery.tablesorter.js:436) at HTMLTableElement.<anonymous> (jquery.tablesorter.js:617) at HTMLTableElement.handle (eval at <anonymous> (jquery.js:11), <anonymous>:1:26157) at HTMLTableElement.eval (eval at <anonymous> (jquery.js:11), <anonymous>:1:23905) at Object.trigger (eval at <anonymous> (jquery.js:11), <anonymous>:1:25523) at HTMLTableElement.eval (eval at <anonymous> (jquery.js:11), <anonymous>:1:28478) at Function.each (eval at <anonymous> (jquery.js:11), <anonymous>:1:8461) at init.each (eval at <anonymous> (jquery.js:11), <anonymous>:1:1089) at init.trigger (eval at <anonymous> (jquery.js:11), <anonymous>:1:28454)
XHR:
image

1 similar comment
@PetrHar
Copy link
Author

PetrHar commented Sep 8, 2021

Console:
ncaught TypeError: Cannot read properties of undefined (reading '4') at getCachedSortType (jquery.tablesorter.js:482) at multisort (jquery.tablesorter.js:436) at HTMLTableElement.<anonymous> (jquery.tablesorter.js:617) at HTMLTableElement.handle (eval at <anonymous> (jquery.js:11), <anonymous>:1:26157) at HTMLTableElement.eval (eval at <anonymous> (jquery.js:11), <anonymous>:1:23905) at Object.trigger (eval at <anonymous> (jquery.js:11), <anonymous>:1:25523) at HTMLTableElement.eval (eval at <anonymous> (jquery.js:11), <anonymous>:1:28478) at Function.each (eval at <anonymous> (jquery.js:11), <anonymous>:1:8461) at init.each (eval at <anonymous> (jquery.js:11), <anonymous>:1:1089) at init.trigger (eval at <anonymous> (jquery.js:11), <anonymous>:1:28454)
XHR:
image

@kaihaase
Copy link

kaihaase commented Sep 8, 2021

Which browser do you use?

@PetrHar
Copy link
Author

PetrHar commented Sep 8, 2021

Which browser do you use?

Chrome
I have tested other browsers IE, Firefox

@kaihaase
Copy link

kaihaase commented Sep 8, 2021

Could you provide the responses from the XHRs?

@PetrHar
Copy link
Author

PetrHar commented Sep 8, 2021

{"functions":[],"summedInvocationCount":0,"summedRunTime":0,"dataFile":null,"invokeUrl":"","runs":0,"breakdown":{"internal":0,"procedural":0,"class":0,"include":0},"mtime":"2021-09-08 09:09:32","linkToFunctionLine":false}

@kaihaase
Copy link

kaihaase commented Sep 8, 2021

Are there any entries in the DataFile Select (select box with default option "Auto (newest)" in the menu)?

@PetrHar
Copy link
Author

PetrHar commented Sep 8, 2021

Unfortunately, I can't find the menu. Can you direct me?

@kaihaase
Copy link

kaihaase commented Sep 8, 2021

menu

@PetrHar
Copy link
Author

PetrHar commented Sep 8, 2021

It's functional. Thank you very much for your help.

@kaihaase
Copy link

kaihaase commented Sep 8, 2021

You're welcome, but what exactly was the problem / solution?

@PetrHar
Copy link
Author

PetrHar commented Sep 9, 2021

Just edit that line 138. Then I tested it wrong. I didn't select the debug file from the menu.

@PetrHar PetrHar closed this as completed Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants