Complete lock up when debugging
Gday All,
I have been using PhpStorm for a while now and its a fantastic product! Great work.
However I have been having major issue's when debugging my application.
Occasionally when I am stepping through a script the debugger crashes and my computer completley locks up. I am not sure what is causing the problem but it seems to be a runaway process or memory leak.
If I can sometimes get to another tty session in linux and killall java which will bring my computer back to life, however most of the time I have to resort to a hard reboot.
I have tried multiple versions of xdebug and java to no avail.
My current system setup is:
Ubuntu 10.04
PhpStorm 95.480
PHP 5.3.3
Xdebug v2.0.5 (2.1 does not work with PhpStorm)
Sun Java JRE 1.6.0_20
Any help on getting to the bottom of this issue will be appreciated because it is a major headache!
Cheers,
Mikey
Please sign in to leave a comment.
Could you please get a thread dump of a hang java process using jstack utility from Java SDK instead of killing it?
Hello Michael,
One of our users also got the system hang/performance problems on Mac: see http://youtrack.jetbrains.net/issue/WI-2063#comment=27-153717. Unfortunately, we haven't find the solution yet.
Just a raw guess: it may be not directly related, but rather easy to try - http://devnet.jetbrains.net/docs/DOC-1142.
Regards,
Kirill
@Nikolay - Usually takes at least 5-10 minutes for me to switch tty sessions and then another few mins to log in and kill the processes but I will try the dump next time.
@Kirill - The symtoms Mke is seeing on the Mac are pretty much the same as what I am experiencing in Ubuntu. I will try the workaround you suggested and see if that helps.
I am also noticing a lot of "Broken Pipe" messages during normal debugging too which frustrating.
Gday All,
It happened again this morning so adding "-Dsun.awt.disablegrab=true" did not help the problem.
I am trying to get a jstack dump of the jvm when it hangs but this is proving the be difficult due to the lack of system response.
Any more help to get to the bottom of this problem would be much appreciated.
Cheers,
Michael
Hello Michael,
To my regret we have no ideas up to the moment, until we can look at PhpStorm thread dump. Moreover, since all the PC gets locked, it seems for me to be the problem with JRE+OS. Can you try switching to different Java version
Regards,
Kirill
Gday Krill,
I believe it is a JDK issue too.
I have removed the Sun Java JDK that is installed via the Ubuntu partner network and have installed the latest JDK from the Java website.
Hopefully this will fix the problem.
If not I will get a core dump up here when I can.
Cheers,
Michael
Gday All,
I have updated my system to the latest Sun JRE and latest PhpStorm and my system still hangs occasionally when debugging.
I managed to get a jstack output form the last time the issue occured but it does not really tell me anything.
I performed the following command "jstack -F 2424 > dump.txt" and the results are below.
Like I said, noting of help here.
Is there any other tool I can use to try and get to the bottom of this issue?
Deadlock Detection:
No deadlocks found.
Thread 2590: (state = BLOCKED)
Error occurred during stack walking:
Thread 2585: (state = BLOCKED)
Error occurred during stack walking:
Thread 2580: (state = BLOCKED)
Error occurred during stack walking:
Thread 2575: (state = BLOCKED)
Error occurred during stack walking:
Thread 2570: (state = BLOCKED)
Error occurred during stack walking:
Thread 2569: (state = BLOCKED)
Error occurred during stack walking:
Thread 2564: (state = BLOCKED)
Error occurred during stack walking:
Thread 2559: (state = BLOCKED)
Error occurred during stack walking:
Thread 2542: (state = BLOCKED)
Error occurred during stack walking:
Thread 2517: (state = BLOCKED)
Error occurred during stack walking:
Thread 2514: (state = BLOCKED)
Error occurred during stack walking:
Thread 2509: (state = BLOCKED)
Error occurred during stack walking:
Thread 2508: (state = BLOCKED)
Error occurred during stack walking:
Thread 2507: (state = BLOCKED)
Error occurred during stack walking:
Thread 2506: (state = BLOCKED)
Error occurred during stack walking:
Thread 2505: (state = BLOCKED)
Error occurred during stack walking:
Thread 2504: (state = BLOCKED)
Error occurred during stack walking:
Thread 2497: (state = BLOCKED)
Error occurred during stack walking:
Thread 2496: (state = BLOCKED)
Error occurred during stack walking:
Thread 2495: (state = BLOCKED)
Error occurred during stack walking:
Thread 2494: (state = BLOCKED)
Error occurred during stack walking:
Thread 2493: (state = BLOCKED)
Error occurred during stack walking:
Thread 2492: (state = BLOCKED)
Error occurred during stack walking:
Thread 2491: (state = BLOCKED)
Error occurred during stack walking:
Thread 2490: (state = BLOCKED)
Error occurred during stack walking:
Thread 2489: (state = BLOCKED)
Error occurred during stack walking:
Thread 2487: (state = BLOCKED)
Error occurred during stack walking:
Thread 2484: (state = IN_NATIVE)
Error occurred during stack walking:
Thread 2483: (state = BLOCKED)
Error occurred during stack walking:
Thread 2482: (state = BLOCKED)
Error occurred during stack walking:
Thread 2479: (state = BLOCKED)
Error occurred during stack walking:
Thread 2478: (state = BLOCKED)
Error occurred during stack walking:
Thread 2477: (state = BLOCKED)
Error occurred during stack walking:
Thread 2476: (state = BLOCKED)
Error occurred during stack walking:
Thread 2474: (state = IN_NATIVE)
Error occurred during stack walking:
Thread 2473: (state = BLOCKED)
Error occurred during stack walking:
Thread 2472: (state = IN_NATIVE)
Error occurred during stack walking:
Thread 2449: (state = BLOCKED)
Error occurred during stack walking:
Thread 2470: (state = BLOCKED)
Error occurred during stack walking:
Thread 2463: (state = IN_NATIVE)
Error occurred during stack walking:
Thread 2462: (state = BLOCKED)
Error occurred during stack walking:
Thread 2461: (state = BLOCKED)
Error occurred during stack walking:
Thread 2460: (state = BLOCKED)
Error occurred during stack walking:
Thread 2459: (state = BLOCKED)
Error occurred during stack walking:
Hello Michael,
Please try jstack -l <pid>
Regards,
Kirill
Hello,
I'm also working with Ubuntu 10.04. After removing the package php5-xdebug via apt-get, I reinstalled via pecl install xdebug (2.1) - and this works for me fine.