#303 Error "couldn't draw the rotated text"

Release_1.3
open
nobody
None
macosx
6
2012-12-30
2012-11-07
No

Hi,
On MacOSX "Lion" 10.7.5, Taskcoach 1.3.20:
Regularly, after several minutes of use, Taskcoach quits with "unexpected error"
Sometimes also, when I " leave taskcoach ", an unexpected error occurs.
In every case, in taskcoach.log we read:

============= Wed Nov 7 11:36:10 2012
Traceback (most recent call last):
File "taskcoachlib/widgets/tooltip.pyo", line 216, in OnPaint
File "taskcoachlib/widgets/tooltip.pyo", line 236, in _drawSections
File "taskcoachlib/widgets/tooltip.pyo", line 248, in _drawSection
File "taskcoachlib/widgets/tooltip.pyo", line 266, in _drawTextLines
File "taskcoachlib/widgets/tooltip.pyo", line 270, in _drawTextLine
File "wx/_gdi.pyo", line 3397, in DrawText
wx._core.PyAssertionError: C++ assertion "status == noErr" failed at /BUILD/wxPython-src-2.8.12.0/src/mac/carbon/graphics.cpp(1887) in DrawText(): couldn't draw the rotated text
Traceback (most recent call last):
File "taskcoachlib/widgets/tooltip.pyo", line 216, in OnPaint
File "taskcoachlib/widgets/tooltip.pyo", line 236, in _drawSections
File "taskcoachlib/widgets/tooltip.pyo", line 248, in _drawSection
File "taskcoachlib/widgets/tooltip.pyo", line 266, in _drawTextLines
File "taskcoachlib/widgets/tooltip.pyo", line 270, in _drawTextLine
File "wx/_gdi.pyo", line 3397, in DrawText
wx._core.PyAssertionError: C++ assertion "status == noErr" failed at /BUILD/wxPython-src-2.8.12.0/src/mac/carbon/graphics.cpp(1887) in DrawText(): couldn't draw the rotated text
Traceback (most recent call last):
File "taskcoachlib/thirdparty/aui/auibook.pyo", line 1854, in OnPaint
File "taskcoachlib/thirdparty/aui/auibook.pyo", line 1548, in Render
File "taskcoachlib/thirdparty/aui/tabart.pyo", line 570, in DrawTab
File "wx/_gdi.pyo", line 3578, in DrawLabel
wx._core.PyAssertionError: C++ assertion "status == noErr" failed at /BUILD/wxPython-src-2.8.12.0/src/mac/carbon/graphics.cpp(1887) in DrawText(): couldn't draw the rotated text
Traceback (most recent call last):
File "taskcoachlib/thirdparty/aui/auibook.pyo", line 4663, in OnTabClicked
File "taskcoachlib/thirdparty/aui/auibook.pyo", line 4220, in SetSelectionToWindow
File "taskcoachlib/thirdparty/aui/auibook.pyo", line 4167, in SetSelection
File "taskcoachlib/thirdparty/aui/auibook.pyo", line 1695, in MakeTabVisible
File "taskcoachlib/thirdparty/aui/auibook.pyo", line 1593, in IsTabVisible
File "taskcoachlib/thirdparty/aui/auibook.pyo", line 1548, in Render
File "taskcoachlib/thirdparty/aui/tabart.pyo", line 570, in DrawTab
File "wx/_gdi.pyo", line 3578, in DrawLabel
wx._core.PyAssertionError: C++ assertion "status == noErr" failed at /BUILD/wxPython-src-2.8.12.0/src/mac/carbon/graphics.cpp(1887) in DrawText(): couldn't draw the rotated text
Traceback (most recent call last):
File "taskcoachlib/thirdparty/aui/auibook.pyo", line 2267, in OnMotion
File "taskcoachlib/thirdparty/aui/aui_utilities.pyo", line 442, in init
File "taskcoachlib/thirdparty/aui/aui_utilities.pyo", line 477, in CreateBitmap
File "taskcoachlib/thirdparty/aui/tabart.pyo", line 570, in DrawTab
File "wx/_gdi.pyo", line 3578, in DrawLabel
wx._core.PyAssertionError: C++ assertion "status == noErr" failed at /BUILD/wxPython-src-2.8.12.0/src/mac/carbon/graphics.cpp(1887) in DrawText(): couldn't draw the rotated text

Thanks
Laurent

Discussion

1 2 > >> (Page 1 of 2)
  • Aaron Wolf
    Aaron Wolf
    2012-11-07

    • status: unread --> open
    • priority: 1 --> 6
     
  • Unfortunately, deleting the .ini file did not solve the problem.
    I worked several hours with Taskcoach this afternoon having deleted the .ini file but it closed alone at least 4-5 times ...
    I did not find which action causes the problem (only create tasks, edit descriptions, modify categories) ... sorry ...

     
  • Frank Niessink
    Frank Niessink
    2012-11-09

    Hi Laurent,

    I'm using Mac OS X 10.7.5 on a MacBook Pro myself and I haven't seen this before, What hardware are you using? Is there anything unusual about your system (fonts, displays, etc.)?

    Thanks, Frank

     
  • Hi Franck,

    It's a MacBook Air bought new last year, default hardware, Mac OS X Lion 10.7.5 (11G63) ... resolution 1440x900, no particular configuration.
    Taskcoach installed last year with .dmg downloaded on taskcoach.org and regularly updated ...
    I am attentive when it quits alone to try to reproduce but unsuccessfully so far.
    It happens less often since i've checked the box "auto save after every change" in "Preferences".
    Nothing new in taskcoachlog.txt so far ...

    Thanks, Laurent

     
  • Frank Niessink
    Frank Niessink
    2012-11-16

    Could you attach a screenshot of the main window? Feel free to blur any confidential text, I'm only interested in the layout of the main window that you are using.

    Thanks, Frank

     
  • Hi Franck

    -a screenshot of the main windows (language is french, i didn't indicate it yet ...)
    - in last taskcoachlog file:

    ============= Wed Nov 14 18:32:18 2012
    Traceback (most recent call last):
    File "taskcoachlib/widgets/tooltip.pyo", line 216, in OnPaint
    File "taskcoachlib/widgets/tooltip.pyo", line 236, in _drawSections
    File "taskcoachlib/widgets/tooltip.pyo", line 248, in _drawSection
    File "taskcoachlib/widgets/tooltip.pyo", line 266, in _drawTextLines
    File "taskcoachlib/widgets/tooltip.pyo", line 270, in _drawTextLine
    File "wx/_gdi.pyo", line 3397, in DrawText
    wx._core.PyAssertionError: C++ assertion "status == noErr" failed at /BUILD/wxPython-src-2.8.12.0/src/mac/carbon/graphics.cpp(1887) in DrawText(): couldn't draw the rotated text

    This is repeated 11 times ...

    Thanks
    Laurent

     
    Attachments
  • Do you have any "strange" text in task descriptions (from the looks of the error I'd say something like right-to-left language like Hebrew or Arab) ?

     
  • Hi Jérome

    I type my tasks in French but sometimes I copy-paste pieces of documents in task description (and in all other tabs).
    I reviewed the descriptions of my 225 tasks one by one and i did not find what could go wrong ... no strange text at first sight...

    Should I try to delete tasks one by one and save the file to find a possible corrupted task ?
    Another idea: using an export (html or csv) could be a better way to find something in descriptions ? ... and why not in efforts descriptions ?

    Thanks
    Laurent

     
  • The problem seems to come from the hover tooltip, so it could be a note or effort description indeed. I committed a trace that should give us a bit more information on what happens; could you install the latest build from http://www.fraca7.net/TaskCoach-packages/latest.py (Bug Fixes section) and join the log once it happens again ?

     
1 2 > >> (Page 1 of 2)