Opened 13 years ago
Closed 3 years ago
#1305 defect closed fixed (fixed)
strange behaviours when writing large amount of data on stdout
Reported by: | manlio | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | core | Keywords: | win32 documentation |
Cc: | Jean-Paul Calderone, spiv, justinj, jknight, manlio | Branch: | |
Author: | Rotund |
Description
Attachments (3)
Change History (32)
Changed 13 years ago by
Attachment: | bigwrite-twisted.py added |
---|
comment:2 Changed 13 years ago by
Interesting; this doesn't reproduce on linux, so it appears to be Windows specific. I'm not sure what this part of your script is about, by the way: d = { 1: [['DATA', ['XXX', 'YYY'], [data]]], 2: [['DATA', ['ZZZ', 'WWW'], [data]]] } The 'd' variable isn't ever referenced. Anyway, I'm assigning to justinj, because he's the lucky guy that's been fixing our win32 issues lately :) justinj, if you don't want to deal with this, assign back to me and I'll try hassling someone else. Thanks for the report, and especially for the script to reproduce!
comment:3 Changed 13 years ago by
At 12.29 02/11/2005 +0000, you wrote: >Andrew Bennetts <andrew-twistedbugs@puzzling.org> added the comment: > >Interesting; this doesn't reproduce on linux, so it appears to be Windows >specific. > >I'm not sure what this part of your script is about, by the way: > d = { > 1: [['DATA', ['XXX', 'YYY'], [data]]], > 2: [['DATA', ['ZZZ', 'WWW'], [data]]] > } >The 'd' variable isn't ever referenced. It is my fault! I found this bug playing with IMAP4Client.fetch, so I was trying to reproduce that data structure. Just forget about it. >Anyway, I'm assigning to justinj, because he's the lucky guy that's been fixing >our win32 issues lately :) Ok, thanks. I hope this bug is not specific to my PC. Anyway, I'm using Windows XP >justinj, if you don't want to deal with this, assign back to me and I'll try >hassling someone else. > >Thanks for the report, and especially for the script to reproduce! Thanks to you! Regards Manlio Perillo
comment:4 Changed 13 years ago by
Manlio, for cases 1 and 2 listed in your attached file do you still see the problem when running with the latest code in svn trunk? Case 3 seems like we just need to handle interrupts more cleanly, but I haven't looked into it.
comment:5 Changed 13 years ago by
I have now installed Twisted from trunk, but I still have the problems. Did someone try to reproduce the issue on a Windows system?
comment:6 Changed 13 years ago by
Yes, I ran the script following the guidelines in the comments and couldn't reproduce problem 1 and 2.
comment:7 Changed 13 years ago by
Ok. I have started a new thread on comp.lang.python: http://groups.google.com/group/comp.lang.python/browse_frm/thread/84e6749132529a40/daa24777bfaf3463#daa24777bfaf3463 with the minimal code causing the problem: IOError: [Errno 12] Not enough space Let's wait for someone who can reproduce the bug...
comment:8 Changed 13 years ago by
Closing since it is clear the bug is not related to twisted and no one else can reproduce it.
comment:9 Changed 13 years ago by
Well, it seems that this is a problem caused by a bug on Windows XP without Service Pack. Now I have installed SP2 and the bug is gone...
comment:10 Changed 13 years ago by
It seems as though this is still a problem on WinXP without SP2. Perhaps we do not have the manpower to devote to fixing this right now, but that does not make the bug invalid. It is good to have things like this reported, and good to use the tracker to, er, track them; perhaps someone will even notice the issue and fix it for us.
comment:11 Changed 13 years ago by
The exception (issue #3) is certainly worrying and quite possibly a bug, but I don't think we really need to be tracking the misbehavior of "print" in python only on Windows XP < SP2. If you're that worried about it, probably forwarding it to the python bug tracker would be a better idea.
comment:12 Changed 13 years ago by
As I can think the exception exceptions.IOError: [Errno 12] Not enough space is a Windows bug, Python can do nothing about it. The problem is that it causes Python to crash, when (and only when?) using Twisted.
comment:13 Changed 13 years ago by
Owner: | justinj deleted |
---|
comment:14 Changed 12 years ago by
I am getting the 'unsubscriptable object' error on Linux (debian, python-twisted-core 2.4.0-2). The error happens while debugging, when I Stop debugging. A bit more info about the error context (maybe something of this will give somebody some idea...):
- I have twisted app (low level) which uses default reactor and connects to it one client telnet (reactor.connectTCP with some ReconnectingClientFActory subclass object as param) and one server telnet (reactor.listenTCP with simple ServerFactory subclass object as param) and also uses adbapi
- the client telnet has some connection problems (connects but is soon dropped) so it repeats his attempts every few seconds
- at some moment I click STOP in debugger, then I got the error with the following backtrace:
(....) reactor.run() File "/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py", line 218, in run self.mainLoop() File "/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py", line 226, in mainLoop self.runUntilCurrent() --- <exception caught here> --- File "/usr/lib/python2.4/site-packages/twisted/internet/base.py", line 555, in runUntilCurrent call.func(*call.args, **call.kw) File "/usr/lib/python2.4/site-packages/twisted/internet/base.py", line 411, in _continueSystemEvent for callList in sysEvtTriggers[1], sysEvtTriggers[2]: exceptions.TypeError: unsubscriptable object
The context (reconnectingclientfactory repeatable trying) can be important, I have never seen this error before I started getting those connection problems. It can be that state of something is somehow broken at such stage...
comment:15 Changed 11 years ago by
I don't think the previous comment has anything to do with this ticket. It seems to be an issue with calling reactor.stop
more than once.
comment:16 Changed 9 years ago by
Keywords: | documentation review added |
---|---|
Milestone: | → Twisted-10.0 |
Updated INSTALL to document SP2 or higher is required.
comment:17 Changed 9 years ago by
Owner: | set to TimAllen |
---|
comment:18 Changed 9 years ago by
Author: | → Rotund |
---|---|
Keywords: | review removed |
Owner: | changed from TimAllen to rotund |
I like this documentation patch, but when you say which platforms are supported, you should mention the version numbers for Debian, Ubuntu and Fedora, as you do for OS X and Windows. In fact, it's probably more important, since Linux tends to change more rapidly than other OSs.
comment:19 Changed 9 years ago by
For the purposes of record keeping, if we do choose to go this route, let's close this ticket as wontfix and open a new one (or find an existing one?) about documenting Twisted's platform requirements. Thanks.
comment:20 Changed 9 years ago by
Milestone: | Twisted-10.0 |
---|
This didn't make the 10.0 release. I also don't think it should block the 10.1 release.
comment:21 Changed 8 years ago by
Similar-looking Python bug report, http://bugs.python.org/issue11395
comment:22 Changed 8 years ago by
Owner: | changed from rotund to Rotund |
---|---|
Status: | new → assigned |
Changed 8 years ago by
Attachment: | INSTALL-1305-2.patch added |
---|
Updated with Linux release versions and for new file
comment:23 Changed 8 years ago by
Keywords: | review added |
---|
Updated the patch. Up to date with trunk and added the linux versions.
comment:24 Changed 8 years ago by
Also updated ReleaseProcess in wiki and pointed the update to look for currently supported versions and have instruction pending this ticket.
comment:25 Changed 8 years ago by
Owner: | Rotund deleted |
---|---|
Status: | assigned → new |
comment:26 Changed 8 years ago by
Keywords: | review removed |
---|---|
Owner: | set to Jean-Paul Calderone |
Looks good
comment:27 Changed 8 years ago by
From the progress on the Python issue, it looks like this may not be limited to XP < SP2.
Also, in my earlier comment, I asked for a separate ticket for the doc change. Maybe that was wrong, but don't just ignore it, explain why you disagree.
comment:28 Changed 7 years ago by
Owner: | Jean-Paul Calderone deleted |
---|
I have almost no motivation to do any work on this ticket.
comment:29 Changed 3 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
This is a Windows problem which has been fixed in upstream Python.