[ wxwindows-Bugs-1535155 ] wxSTC cut/copy data format error

SourceForge.net noreply at sourceforge.net
Sat Aug 5 12:55:16 PDT 2006


Bugs item #1535155, was opened at 2006-08-05 12:55
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1535155&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build -- Mac
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Kevin Altis (kasplat)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxSTC cut/copy data format error

Initial Comment:
wxStyledTextCtrl, some of this might be wxPython-specific

This bug appears to be Mac-specific. Tested with Python 2.4.3 
universal and wxPython 2.6.3.3 (unicode) PyShell application. Simply 
type any text in at the prompt, then select the text and Copy or Cut the 
text and you'll get a traceback similar to the one below. 

Traceback (most recent call last):
  File "//Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/wx-2.6-mac-unicode/wx/py/frame.py", line 
367, in OnCopy
    win.Copy()
  File "//Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/wx-2.6-mac-unicode/wx/py/shell.py", line 
1217, in Copy
    self._clip(data)
  File "//Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/wx-2.6-mac-unicode/wx/py/shell.py", line 
1240, in _clip
    wx.TheClipboard.SetData(data)
  File "//Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/wx-2.6-mac-unicode/wx/_misc.py", line 
5729, in SetData
    return _misc_.Clipboard_SetData(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in /
BUILD/wxPython-src-2.6.3.3/src/mac/carbon/dataobj.cpp(103): name 
of predefined format cannot be retrieved

 
The following traceback that occurs when you try to Paste may simply 
be due to the above exception and the clipboard not getting closed 
properly but I'll provide it anyway...

Traceback (most recent call last):
  File "//Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/wx-2.6-mac-unicode/wx/py/frame.py", line 
375, in OnPaste
    win.Paste()
  File "//Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/wx-2.6-mac-unicode/wx/py/shell.py", line 
1246, in Paste
    if self.CanPaste() and wx.TheClipboard.Open():
  File "//Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/wx-2.6-mac-unicode/wx/_misc.py", line 
5689, in Open
    return _misc_.Clipboard_Open(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in /
BUILD/wxPython-src-2.6.3.3/src/mac/carbon/clipbrd.cpp(203): 
clipboard already open


I get the same kind of assertion on Cut/Copy within the PythonCard 
codeEditor tool, but don't see an exception on Paste, thus my 
reasoning on the clipboard simply not being closed with a finally in the 
try/except for a clipboard operation.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1535155&group_id=9863




More information about the wx-dev mailing list