hang

Python for loop slows and evenutally hangs

回眸只為那壹抹淺笑 提交于 2019-12-23 10:56:37
问题 I'm totally new to Python (as of half an hour ago) and trying to write a simple script to enumerate users on an SMTP server. The users file is a simple list (one per line) of usernames. The script runs fine but with each iteration of the loop it slows until, around loop 14, it seems to hang completely. No error - I have to ^c. Can anyone shed some light on the problem please? TIA, Tom #!/usr/bin/python import socket import sys if len(sys.argv) != 2: print "Usage: vrfy.py <username file>" sys

Call to swift method from JavaScript hangs xcode and application

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 09:18:03
问题 I am writing an iOS App (using xcode 7.3 and swift 2.2) using JavascriptCode framework. Calling javascript methods from swift works perfect, but when I call the swift method from javascript, xcode simply shows a "loading" type of symbol and nothing happens. I need to "force quit" xcode to get out of this state. I have followed https://www.raywenderlich.com/124075/javascriptcore-tutorial and http://nshipster.com/javascriptcore/ and I am trying pretty simple calls. Has anyone faced this kind of

What can cause the simple invocation of asyncio.new_event_loop() to hang?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 07:56:16
问题 I am using the following function to force a coroutine to run synchronously: import asyncio import inspect import types from asyncio import BaseEventLoop from concurrent import futures def await_sync(coro: types.CoroutineType, timeout_s: int=None): """ :param coro: a coroutine or lambda loop: coroutine(loop) :param timeout_s: :return: """ loop = asyncio.new_event_loop() # type: BaseEventLoop if not is_awaitable(coro): coro = coro(loop) if timeout_s is None: fut = asyncio.ensure_future(coro,

Python: File download using ftplib hangs forever after file is successfully downloaded

萝らか妹 提交于 2019-12-23 05:13:53
问题 I have been trying to troubleshoot an issue where in when we are downloading a file from ftp/ftps. File gets downloaded successfully but no operation is performed post file download completion. No error has occurred which could give more information about the issue. I tried searching for this on stackoverflow and found this link which talks about similar problem statement and looks like I am facing similar issue, though I am not sure. Need little more help in resolving the issue. I tried

Any app build with visual studio 2013/2015 hang

╄→гoц情女王★ 提交于 2019-12-23 04:36:40
问题 I have some strange problem with visual :-/ I can't build simple console application (with with windows problem it's the same). Console window don't apper, visual studio hang :-/ I don't have these problem last time I making console app (month ago I think). I have the same problem in vs 2015 and 2013 on windows 7. Somebody have the same problem ? Mayby it's some windows updated, or some visual update. I don't have this problem with. When I run built application manual (no from visual)

Entity Framework SaveChanges “hangs” the program

拥有回忆 提交于 2019-12-22 05:22:18
问题 My code is pretty simple: Context.AddObject("EntitiesSetName", newObjectName); Context.SaveChanges(); It worked fine, but just one time – the first one. That time, I interrupted my program by Shift+F5 after the SaveChanges() was traced. It was a debug process, so I manually removed a newly created record from a DB and ran a program again in the debug mode. But it does not work anymore – it “hangs” when SaveChanges() is being called. Another strange thing that I see: If I write before

Entity Framework SaveChanges “hangs” the program

五迷三道 提交于 2019-12-22 05:21:10
问题 My code is pretty simple: Context.AddObject("EntitiesSetName", newObjectName); Context.SaveChanges(); It worked fine, but just one time – the first one. That time, I interrupted my program by Shift+F5 after the SaveChanges() was traced. It was a debug process, so I manually removed a newly created record from a DB and ran a program again in the debug mode. But it does not work anymore – it “hangs” when SaveChanges() is being called. Another strange thing that I see: If I write before

Why does me use HttpClients.createDefault() as HttpClient singleton instance execute third request always hang

佐手、 提交于 2019-12-21 22:13:57
问题 All , I create : public static final HttpClient DEFAULT_HTTPCLIENT = HttpClients .createDefault(); for(int i=0 ; i<5; i++){ DEFAULT_HTTPCLIENT.execute(requests[i]); } But when loop is to i =2 , that means just execute first two request , till third request , the client will hang and seems dead loop . I refer some materials , I got may be caused by Http Thread Pool configuration limited . But I know what is standard solutions for this issue ? Since I want to send any request any times, but I

WinDbg takes extremely long time to loading symbols; is searching every directory in large network UNC symbol store

泄露秘密 提交于 2019-12-21 11:56:09
问题 I've spent several days trying to speed up loading of symbols when debugging crash dumps using WinDbg, and I'm unable to get past a particular problem. The issue is that when symbols for a module in the dump doesn't exist in any accessible symbol store or symbol server location (e.g. it's a third-party modules without available symbols), WinDbg will spend literally hours looking for them. I've set up my symbol path correctly to properly set the search order and the cache directories: .sympath

Python: ftplib hangs at end of transfer

怎甘沉沦 提交于 2019-12-21 02:38:42
问题 I been searching on this for a couple of days and havent found an answer yet. I have trying to download video files from an FTP, my script checks the server, compares the nlist() to a list of already downloaded files parsed from a text file and then creates a new list of files to get and iterates over it downloading each file, disconnecting from the server and reconnecting for the next file (I thought server timeout might be an issue so I quit() the connection after each file download). This