#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

  • 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 ?

     
  • Sorry ... one month ... time goes by so fast ...

    This build 1.3.20.5741 allowed me to find a description with a bad text but in a "Category" description. In it, the word "Décret" in french was copy-paste from a website and the "éc" has been transformed in a "chinese" text (see attachement)... i hope it is the only one but anyway, your "trace" works perfectly:
    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 273, in _drawTextLine
    RuntimeError: Could not draw text u'chef d\u2019\xe9tablissement conform\xe9ment au D\u9997ret n\uff70 2010-1065 du 8 septembre 2010.'

    However, after correcting this description, another error appears in taskcoachlog.txt but everything seems to work correctly ..

    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(1879) in DrawText(): couldn't measure the rotated text

    Many thanks for your help
    Laurent

     
  • Sorry ... one month ... time goes by so fast ...

    This build 1.3.20.5741 allowed me to find a description with a bad text but in a "Category" description. In it, the word "Décret" in french was copy-paste from a website and the "éc" has been transformed in a "chinese" text (see attachement)... i hope it is the only one but anyway, your "trace" works perfectly:
    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 273, in _drawTextLine
    RuntimeError: Could not draw text u'chef d\u2019\xe9tablissement conform\xe9ment au D\u9997ret n\uff70 2010-1065 du 8 septembre 2010.'

    However, after correcting this description, another error appears in taskcoachlog.txt but everything seems to work correctly ..

    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(1879) in DrawText(): couldn't measure the rotated text

    Many thanks for your help
    Laurent

     
  • Sorry ... one month ... time goes by so fast ...

    This build 1.3.20.5741 allowed me to find a description with a bad text but in a "Category" description. In it, the word "Décret" in french was copy-paste from a website and the "éc" has been transformed in a "chinese" text (see attachement)... i hope it is the only one but anyway, your "trace" works perfectly:
    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 273, in _drawTextLine
    RuntimeError: Could not draw text u'chef d\u2019\xe9tablissement conform\xe9ment au D\u9997ret n\uff70 2010-1065 du 8 septembre 2010.'

    However, after correcting this description, another error appears in taskcoachlog.txt but everything seems to work correctly ..

    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(1879) in DrawText(): couldn't measure the rotated text

    Many thanks for your help
    Laurent

     
  • Sorry ...i posted 2 times ... i'd tried to attach my screenshot but it did not work ...

     
    Attachments
  • Looks like the same problem in a tab name. Did you rename a viewer ?

     
  • Hi Jérome,

    No, most often only default settings but that time, i remember i was trying different language (french, english UK, english US) with both task and category viewer open ...

    The good news is that i worked many hours yesterday and today with taskcoach without any error in taskcoachlog.txt.

    Thanks a lot.
    Laurent