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
frequently hangs #910
Comments
Does this happen while running/debugging scripts? What happens when it hangs. Do you get an error report? Do you have to kill it from the Task Manager? One thing to try when this happens. Go to the Task Manager and in the Details tab find a process named "Python". Right-click it and select "End task". Does PyScripter recover after that? Any other info about what might cause this and help trace and resolve the issue would be helpful. |
Sorry I was not more clear. What happens in each of these instances is that Pyscripter is waiting for something. The pointer is replaced by a small spinning thing. I've tried waiting for awhile (e.g. 1/2 hour), but to no avail. I kill it just by clicking on the 'x' in the upper right corner. |
Which version of PyScripter are you using? Also could you please try when this happens: Go to the Task Manager and in the Details tab find a process named "Python". Right-click it and select "End task". Does PyScripter recover after that? |
The most common circumstance, is when I return to pyscripter in the morning and it will not respond. It also hangs this way sometimes when I have been debugging/editing. So upon returning to my desktop this morning I returned to pyscripter to find it would not respond and had a the spinning circle. When I ended this task in task manager, pyscripter remained open and is still hung (though now the screen is opaque and it says "not responding at the top". I then ended the second python.exe task, with no change in pyscripter. hope that helps. |
oh and I'm running pyscripter 3.4.2.0 x64 |
Thank you for the information. However, it is kind of hard to figure what where to search for the problem. If I understood what you said, this does not appear to be related to running or debugging scripts. You also stated that you are using the remote engine and I guess you are reinitializing before each run (which is the default). So if you can provide any more clues about the possible cause do come forward. For instance,
|
not pandas (I use it but not a lot) and definitely not geopandas One thing - I have fallen into frequently using the interpreter window while debugging, where I enter statements into the interpreter window for evaluation, when pyscripter is stopped at a break point in the code. And then I'll resume the debugging session. hope some of that helps |
I have also notice this issue. |
I wonder whether it relates to this: https://stackoverflow.com/questions/20142166/explain-errors-from-getkeystate-getcursorpos/20142404?sgp=2#20142404 .
I will try to add a workaround in the next version. |
Added potential fix in version control. |
Thanks. I hadn't noticed this in previous versions |
Still a serious issue in 3.5.1. No clear trigger. Just now I started typing "de" to create a new class method (at the top of an existing class), and it's locked up. Left it a little to see if it comes back, but ultimately had to force-stop it. It was open for hours before the hang, off-and-on editing. Win 7 Pro, Python 3.6.7 x64 - Using virtual environment (which might be important?) |
I am also experiencing this on 3.5.1. |
I have introduced some changes that may resolve the "random" crashes of PyScripter. Could you please try the executable in this zip file. Just replace your PyScripter.exe with the one inside the zip file and report back whether the errors still occur. |
The above update has been reported to resolve this issue. Here are updated links to the 32 bit and 64 bit executables (3.5.2 preview) Could you please test with regard to this issue. A lot of features have been added, so please report any other issues that you may find. This will help make the next release more robust. Here is the main changes: History: v 3.5.2
|
thanks!. I swapped it in.
On Wednesday, January 2, 2019, 8:17:00 PM EST, pyscripter <notifications@github.com> wrote:
The above update has been reported to resolve this issue.
Here are updated links to the 32 bit and 64 bit executables (3.5.2 preview)
- x64 (64bits)
- x86 (32bits)
Could you please test with regard to this issue.
A lot of features have been added, so please report any other issues that you may find. This will help make the next release more robust. Here is the main changes:
History: v 3.5.2
- New Features
- Much faster Remote Engine using asynchronous Windows named pipes if pywin32 is available.
- IDE option to force the use of sockets for connection to the Python server now defaults to False
- Enhancements to the SSH Engine - now compatible with PuTTY
- Execute system commands in the interpreter with !. Supports parameter substitution.
- Clickable status panels with Python version and engine type
- Text drag & drop between PyScripter and other applications (#554)
- Triple-click selects line and Quadraple-click selects all
- Double-click drag selects whole words - triple-click drag selects whole lines
- Consistent syntax color themes accross supported languages (#855)
- Issues addressed
- #904, #922, #927, 928, #929, #936
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@UnderJollyRoger This is a rather different issue from the one discussed in this thread. The problem in your case is that the script you are running somehow breaks the communication with PyScripter.
|
Thanks for the quick response.
|
@jodyhey Any feedback? |
I have also experienced this hanging issue, and have been testing both of the updated executable files daily since you have posted them. I did not see the issue until today again for the first time, in the 64 bit version. I have not been working with the 32 bit a lot, though. |
@jodyhey Could you please turn the new IDE option Tools, Options, IDE Options, File Explorer, Background Processing to False and report whether it makes things better? |
I haven't had problems since I set the explorer background processing as suggested (couple of days) - using 3.5.1 32 bit |
I got the same problem. At first, I used 3.5 x64 version then uninstall and reinstall 3.6.0.0 x64 version instead. I didn't add much libraries, just clicking and coding but the IDE was frequently hung many times. Then I have to close the program by using Task Manager. My OS system is Window 7 Ultimate SP 1. |
Which version of python? Are you be any chance using files with non-ascii file paths? |
My python version is 3.7.0 . I didn't use files with non-ascii but you have the point, I usually switch "keyboard tool" to use my Vietnamese characters. May it caused that problem because I was careless and typed Vietnamese character in a chance? |
Same issue. I'm also doing everything possible wrong:
When the hang occurs language bar's language indicator will disappear, like when you start a program and no language is specified. Killing python does nothing. In low available memory situations the remote debugger will also disconnect and may or may not reconnect if you keep kicking it. It may cause a hang, but that's probably unrelated to the overall issue. That can be recovered by killing any python processes, though you're really better off just restarting the IDE in general after closing whatever (dozen) things are eating that ram. |
I too had this problem. When running some scripts using the run button, the script would hang. The same script would run using the internal engine. In the uk we use a console page of 850, active code page of 1252. In a short interactive session the session hangs in a similar way. `*** Remote Interpreter Reinitialized ***
The session just hangs after the £. I now move on the an example script encoded in 1252. #!coding:1252 This worked fine. I then reasoned that it could be that the python interpreter was actually putting out a message but Hope this helps. |
@dDoid |
@dDoid The error you have reported has been fixed. The fix will be available in the next version. So PyScripter will no longer hang in the cases you mention. Please note that the default encoding in python 2.x is ascii. The coding comment affects only the encoding of the source code and not the python encoding used to convert sting literals to unicode. So the correct way to print £ is the second statement.
|
Thank you for your efforts. I was aware of the use of the coding statement. I encoded the file in 1252 as I know this is what pyscripter expects. I agree that in an ideal world print u"£" would be the preferred option. |
I am closing this since this is based on a few versions old PyScripter. Please open a new issue if you have similar problems with PyScripter 3.6.2 or later. |
I am having a similar issue with PyScripter 3.6.4.0 x64 running on Windows 10 x64. The window spontaneously hangs for about 5-20 seconds about every 10 minutes or so. I have not noticed it hanging while I am running code, but it does hang while typing code. It seems to hang most often when changing from another window back to PyScripter. I've also left Resource Monitor up, and when PyScripter hangs it doesn't seem to increase the CPU usage at all. It have never terminally hung, and will clear itself if given enough time. Thank you for all of your work on this. |
Came here to say me too! 3.6.4.0 x86 on WIndows 10. Python 2.7.16 It seems related to the script being on a network drive. I have to copy the .py local and it helps. It sometimes sits right away and does nothing. Not really hanging just not doing anything. Other times it will do the first print then just sit. Today now it started just not showing the prints but actually running in the background. I eventually ended it and then found out it had worked but was just sitting. Also today when it does run it will do one print, then sit, then all of sudden all the prints come at one and the script is done. I have to use the old Python for ArcMap so I am stuck. thanks |
I'm using "Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:43:28) [MSC v.1934 32 bit (Intel)] on win32." and Pyscripter 4.2.5.0 x86 (which I appreciate!). Unfortunately it gets stuck frequently, but only during debugging and when I try to write something , in the interpreter (when execution stops at some breakpoint). |
pyscripter hangs pretty frequently - just hangs and will not respond. It does this one to three times a day (I develop or review code for about 4 hours a day)
Running x64 version, with python 3.6.5 anaconda distribution. remote engine
using a lot of numpy, scipy and matplotlib.
The text was updated successfully, but these errors were encountered: