[wx-dev] #9759: DirSelector and FileSelector Fatal IO error when called with long PromptStr

Wx_widgets developer mailing list, post #22,325
Author:
Date:
Subject:
 wxTrac
 2008-07-19 10:09:39
 [wx-dev] #9759: DirSelector and FileSelector Fatal IO error when called with long PromptStr
Ticket URL: <http://trac.wxwidgets.org/ticket/9759>

#9759: DirSelector and FileSelector Fatal IO error when called with long PromptStr
------------------------+---------------------------------------------------
Reporter: mgogoulos | Owner:
Type: defect | Status: new
Priority: high | Milestone:
Component: wxPython | Version: 2.8.7.1
Keywords: | Blockedby:
Patch: 0 | Blocking:
------------------------+---------------------------------------------------
This happens when either DirSelector or FileSelector gets called with very
long first arguments (prompt string).
It leads to resource consumption and memory problems.

My estimation is there isn't a reason for the string to be that long and
should be filtered

import wx
myApp = wx.App()
wx.DirSelector('X'*40077700, '<>')
python: Fatal IO error 104 (Connection reset by peer) on X server :0.0.

tested on ubuntu hardy with the following versions:

python-wxgtk2.8 2.8.7.1-0ubuntu3
python-wxversion 2.8.7.1-0ubuntu3
python2.5 2.5.2-2ubuntu4

Bug was not tested on other platforms or versions of wx which may as well
be affected.

Best regards,
Markos Gogoulos


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9759>
_______________________________________________
wx-dev mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wx-dev
Author:
Date:
Subject:
 wxTrac
 2008-07-19 12:12:44
 [wx-dev] Re: #9759: DirSelector and FileSelector Fatal IO error when called with long PromptStr
Ticket URL: <http://trac.wxwidgets.org/ticket/9759#comment:1>

#9759: DirSelector and FileSelector Fatal IO error when called with long PromptStr
-------------------------+--------------------------------------------------
Reporter: mgogoulos | Owner:
Type: defect | Status: new
Priority: low | Milestone:
Component: wxPython | Version: 2.8.7.1
Resolution: | Keywords:
Blockedby: | Patch: 0
Blocking: |
-------------------------+--------------------------------------------------
Changes (by wojdyr):

* priority: high => low


Comment:

Replying to [ticket:9759 mgogoulos ]:
> This happens when either DirSelector or FileSelector gets called with
very long first arguments (prompt string).
> It leads to resource consumption and memory problems.
>
> My estimation is there isn't a reason for the string to be that long and
should be filtered

I also don't see any reason to have call FileSelector with 40MB long
string, and it's not surprising that it causes "resource consumption and
memory problems".
But why do you think it's a high priority bug in wx, and not in your
application?


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9759#comment:1>
_______________________________________________
wx-dev mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wx-dev
Author:
Date:
Subject:
 wxTrac
 2008-07-19 13:47:25
 [wx-dev] Re: #9759: DirSelector and FileSelector Fatal IO error when called with long PromptStr
Ticket URL: <http://trac.wxwidgets.org/ticket/9759#comment:2>

#9759: DirSelector and FileSelector Fatal IO error when called with long PromptStr
-------------------------+--------------------------------------------------
Reporter: mgogoulos | Owner:
Type: defect | Status: new
Priority: low | Milestone:
Component: wxPython | Version: 2.8.7.1
Resolution: | Keywords:
Blockedby: | Patch: 0
Blocking: |
-------------------------+--------------------------------------------------

Comment(by mgogoulos ):

About putting this as high priority: mea culpa!


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9759#comment:2>
_______________________________________________
wx-dev mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wx-dev
Author:
Date:
Subject:
 wxTrac
 2008-07-19 15:18:33
 [wx-dev] Re: #9759: DirSelector and FileSelector Fatal IO error when called with long PromptStr
Ticket URL: <http://trac.wxwidgets.org/ticket/9759#comment:3>

#9759: DirSelector and FileSelector Fatal IO error when called with long PromptStr
-------------------------+--------------------------------------------------
Reporter: mgogoulos | Owner:
Type: defect | Status: closed
Priority: low | Milestone:
Component: wxPython | Version: 2.8.7.1
Resolution: invalid | Keywords:
Blockedby: | Patch: 0
Blocking: |
-------------------------+--------------------------------------------------
Changes (by mgogoulos ):

* status: new => closed
* resolution: => invalid


Comment:

No bug here, the issue is that python creates a huge string and it is
expectable it will use these resources. Initially I was confused and
believed it had to do with wx!


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9759#comment:3>
_______________________________________________
wx-dev mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wx-dev