- System: windows xp
- Eclipse version: Eclipse Classic 3.7.1.
- PyDev version: 2.3.0
- Java version: 1.7.0_02
- PyDev error log: see the accessory
- Eclipse install location: D:\Marslo\Tools\Softwares\Editor\eclipse\eclipse-SDK-3.7.1-win32\eclipse
- Project location where the bug appears: D:\Marslo\Study\Script\Python\Eclipse\helloworld
- What were you doing when the bug appeared:
1. Start the Eclipse, and write a simple python project
2. Click -> Run -> Run as -> Python Run
3. Eclipse freezed
I start eclipse with the java executable and add the -Dcom.sun.management.jmxremote flag to vmargs, but Eclipse freezed at start processing (Loading Workbench), please see the screenshots1.png, and the popping information please see screenshots2.png
In this process, on deadlock was detected.
Others way also can made eclipse freeze:
1. Start Eclipse, and open a project
2. double click the python source code (e.g.: project/src/helloworld.py)
3. right click the source code name in the PyDev Package Explorer
4. Eclipse freezed
It seems that the attachment got corrupted (tried downloading 3 times).
Can you upload it again?
If a deadlock was detected (and the traces were attached), it shouldn't be hard to fix...
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "(deprecated) Please use https://www.brainwy.com/tracker/PyDev/"
Hello Fabioz, I re-installed the JDK again (I assume the newest JDK is not stabilize), the installed JDK version is 1.6.0_29, and run the python script again, but it still freezed.
I have re-upload the log again, the log is got from : %Project_Name%/.metadata/.plugins/org.eclipse.ui.workbench/log
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "(deprecated) Please use https://www.brainwy.com/tracker/PyDev/"
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "(deprecated) Please use https://www.brainwy.com/tracker/PyDev/"
and I forget to answer, no deadlock was detected.
thanks for deal with my problem
Looking at the logs there's nothing that stands out as a possible reason and I can't really reproduce it here... As it happens there, would you be willing to run the program in a profiler to check if it works?
If so, the steps are the following:
Download yourkit: http://www.yourkit.com/ (you can use an evaluation license).
- Start Eclipse
- Start Yourkit
- Attach Yourkit to Eclipse (in the initial screen it should show a list of the running java programs)
- Hover over the 'play' icon, set mode to 'tracing' and then click on the play.
- Wait a bit (it can take a while to do the attach)
- Execute the launch operation a few times
- Stop the profile
- Capture performance snapshot with the results (floppy disk icon in the middle of the screen)
- It should show the path where it was saved: attach that file to this bug.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "(deprecated) Please use https://www.brainwy.com/tracker/PyDev/"
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "(deprecated) Please use https://www.brainwy.com/tracker/PyDev/"
Upload error: Uploaded file must be no larger than 256k.
But the zipped accessory is 359kb, so, I cannot upload the accessory. But I see something Blocked as follow:
Worker-0 [BLOCKED] CPU time: 0:01
org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(IPythonNature, int)
org.python.pydev.editor.codecompletion.revisited.modules.CompiledModule.setTokens(String, IModulesManager)
org.python.pydev.editor.codecompletion.revisited.modules.CompiledModule.<init>(String, int, IModulesManager)
org.python.pydev.editor.codecompletion.revisited.modules.CompiledModule.<init>(String, IModulesManager)
org.python.pydev.editor.codecompletion.revisited.SystemModulesManager.getBuiltinModule(String, boolean)
org.python.pydev.editor.codecompletion.revisited.SystemModulesManager.getBuiltinModule(String, boolean)
org.python.pydev.ui.interpreters.AbstractInterpreterManager.getBuiltinMod(String)
org.python.pydev.ui.interpreters.AbstractInterpreterManager.getBuiltinCompletions(String)
org.python.pydev.plugin.nature.PythonNature.getBuiltinCompletions()
org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getBuiltinComps(IPythonNature)
org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getBuiltinCompletions(ICompletionState, List)
com.python.pydev.analysis.scopeanalysis.AbstractScopeAnalyzerVisitor.<init>(IPythonNature, String, IModule, IDocument, IProgressMonitor)
com.python.pydev.analysis.visitors.OccurrencesVisitor.<init>(IPythonNature, String, IModule, IAnalysisPreferences, IDocument, IProgressMonitor)
com.python.pydev.analysis.OccurrencesAnalyzer.analyzeDocument(IPythonNature, SourceModule, IAnalysisPreferences, IDocument, IProgressMonitor, IIndentPrefs)
com.python.pydev.analysis.builder.AnalysisBuilderRunnable.doAnalysis()
com.python.pydev.analysis.builder.AbstractAnalysisBuilderRunnable.run()
org.python.pydev.core.concurrency.RunnableAsJobsPoolThread$1.run(IProgressMonitor)
org.eclipse.core.internal.jobs.Worker.run()
and some WAITING tags:
Worker-1 [WAITING] CPU time: 0:00
org.eclipse.core.internal.jobs.Worker.run()
Worker-2 [WAITING] CPU time: 0:00
org.eclipse.swt.widgets.Display.syncExec(Runnable)
com.python.pydev.interactiveconsole.EvaluateActionSetter.onCreateActions(ListResourceBundle, PyEdit, IProgressMonitor)
org.python.pydev.editor.PyEditNotifier$1.run(IProgressMonitor)
org.python.pydev.editor.PyEditNotifier$3.run(IProgressMonitor)
org.eclipse.core.internal.jobs.Worker.run()
Worker-3 [WAITING] CPU time: 0:00
java.lang.Object.wait(long)
org.python.pydev.editor.PyEditTitle.getCurrentEditorReferences()
org.python.pydev.editor.PyEditTitle.initializeTitle(PyEdit, IEditorInput, IPath, String, String, String)
org.python.pydev.editor.PyEditTitle.access$4(PyEditTitle, PyEdit, IEditorInput, IPath, String, String, String)
org.python.pydev.editor.PyEditTitle$4.run(IProgressMonitor)
org.eclipse.core.internal.jobs.Worker.run()
Could I send accessory to your Email? or could you contact me by marslo.vida@gmail.com
Thanks very much!!
You can send it to my e-mail: fabiofz at gmail dot com
Also, did you check if you had something in your error log? From the stack it seems you have some active firewall that's blocking the communication from java.exe (where eclipse is running) to python.exe (which is a spawned shell used for code-completion purposes... see: http://pydev.org/faq.html#PyDevFAQ-WhenIdoacodecompletion%2CPyDevhangs%2CwhatcanIdo%3F for details)
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "(deprecated) Please use https://www.brainwy.com/tracker/PyDev/"
Hello fabioz, I found the real reason by accidental, the real reason is ANSICON (offical websit: http://adoxa.110mb.com/ansicon/\), I install this tools for BDD, and it make Command Line colourful.
If ANSICON was installed, and Eclipse would freezed, and un-install ANSICON, Eclipse works!!