Since I upgraded to Mac OS High Sierra (10.13.1) TaskCoach will return a Task Coach File Error, Error While Reading... PyAssertionError C++ assertion "GetHandleSize" error on each start. Additionally the icons in the dock look dithered. When finishing it says Errors have occurred. Please see /Users/jstaerk/Documents/taskcoach.txt
Steps I tried to fix this issue:
1) Upgraded from 1.4.2 to 1.4.3
2) Tried with a new file, a task running
3) Tried with a new file time nout counting
Nothing helped.
/Users/jstaerk/Documents/taskcoach.txt says
============= Mon Nov 13 19:42:41 2017
Traceback (most recent call last):
File "taskcoachlib/gui/iocontroller.pyo", line 125, in open
File "taskcoachlib/persistence/taskfile.pyo", line 661, in load
File "taskcoachlib/persistence/taskfile.pyo", line 406, in load
File "taskcoachlib/patterns/observer.pyo", line 170, in decorator
File "taskcoachlib/patterns/observer.pyo", line 156, in send
File "taskcoachlib/patterns/observer.pyo", line 315, in notifyObservers
File "taskcoachlib/patterns/observer.pyo", line 189, in call
File "taskcoachlib/gui/taskbaricon.pyo", line 86, in onTaskListChanged
File "taskcoachlib/gui/taskbaricon.pyo", line 151, in startOrStopTicking
File "taskcoachlib/gui/taskbaricon.pyo", line 166, in stopTicking
File "taskcoachlib/gui/taskbaricon.pyo", line 214, in setIcon
File "wx/_windows.pyo", line 2154, in SetIcon
PyAssertionError: C++ assertion "GetHandleSize( maskhandle ) == w * h" failed at /BUILD/wxPython-src-2.8.12.1/src/mac/carbon/bitmap.cpp(996) in CopyFromIcon()
Traceback (most recent call last):
File "taskcoachlib/gui/taskbaricon.pyo", line 80, in onIdle
File "taskcoachlib/gui/taskbaricon.pyo", line 214, in setIcon
File "wx/_windows.pyo", line 2154, in SetIcon
wx._core.PyAssertionError: C++ assertion "GetHandleSize( maskhandle ) == w * h" failed at /BUILD/wxPython-src-2.8.12.1/src/mac/carbon/bitmap.cpp(996) in CopyFromIcon()
Traceback (most recent call last):
File "taskcoachlib/gui/mainwindow.pyo", line 289, in onClose
File "taskcoachlib/application/application.pyo", line 373, in quitApplication
File "taskcoachlib/gui/iocontroller.pyo", line 295, in close
File "taskcoachlib/gui/iocontroller.pyo", line 476, in closeUnconditionally
File "taskcoachlib/persistence/taskfile.pyo", line 649, in close
File "taskcoachlib/persistence/taskfile.pyo", line 362, in close
File "taskcoachlib/patterns/observer.pyo", line 170, in decorator
File "taskcoachlib/patterns/observer.pyo", line 156, in send
File "taskcoachlib/patterns/observer.pyo", line 315, in notifyObservers
File "taskcoachlib/patterns/observer.pyo", line 189, in call
File "taskcoachlib/gui/taskbaricon.pyo", line 86, in onTaskListChanged
File "taskcoachlib/gui/taskbaricon.pyo", line 151, in startOrStopTicking
File "taskcoachlib/gui/taskbaricon.pyo", line 166, in stopTicking
File "taskcoachlib/gui/taskbaricon.pyo", line 214, in setIcon
File "wx/_windows.pyo", line 2154, in SetIcon
wx._core.PyAssertionError: C++ assertion "GetHandleSize( maskhandle ) == w * h" failed at /BUILD/wxPython-src-2.8.12.1/src/mac/carbon/bitmap.cpp(996) in CopyFromIcon()
Traceback (most recent call last):
File "taskcoachlib/gui/taskbaricon.pyo", line 80, in onIdle
File "taskcoachlib/gui/taskbaricon.pyo", line 214, in __setIcon
File "wx/_windows.pyo", line 2154, in SetIcon
wx._core.PyAssertionError: C++ assertion "GetHandleSize( maskhandle ) == w * h" failed at /BUILD/wxPython-src-2.8.12.1/src/mac/carbon/bitmap.cpp(996) in CopyFromIcon()
➜ Documents
+1
I'm experiencing the same issue.
I had the hope that maybe wxWidgets fixed that already and a new build would help but I'm PHP not python developer. My "make dmg" failed with something about python-32 not being found, so I hacked the makefile l. 31 but now it says "ImportError: No module named wxversion" despite pip install -U wxPython seems to have worked...?
Same issue I reported in https://sourceforge.net/p/taskcoach/support-requests/471/
I hope there'll be a fix to allow me to upgrade again to macOS High Sierra. I have had to roll back to 10.12.6 to keep using this app.
I'll take a look. My first guess is that the taskbar icon uses a format that is somewhat not supported any more. Luckily, I have a Macbook that I can upgrade to High Sierra.
Okay, there were some bad icons, but that wasn't it. I upgraded wxPython to 3.x on the Mac build machine and that seems to do the trick. Could someone try out the latest DMG from
http://jeromelaheurte.net/TaskCoach-packages/latest_bugfixes.py
and tell me about it ? It may introduce other problems though; we never thouroughly tested wxPython 3.x with Task Coach...
Hi,
The main error is gone but unfortunately there is a new issue, i.e. when I click view in the main menu the application quits without any further message.
But you're on to something :-)
kind regards
Jochen
Jérome, thanks for working on this.
The good news: I can open and close Task Coach without seeing any stack traces that complain about icons.
Unfortunately, there's a crash condition that is hard to pinpoint. The app will crash at some point I've seen this happen while it's sitting idly while I'm using another app, and also when I close the app. The crash report makes it look like it's happening when detaching a wxMenu.
Editing effort doesn't seem to bring up the effort dialog.
Here's a stack trace from my ~/Documents/taskcoachlog.txt which seems like a separate issue from the hard crash. (attached)
I started trying to run from source, but it can't find python-32 (installed using brew) on my HighSierra machine (using python2.7/darwin)
As I said, "other problems" :( I'll try to see what happens. @jim python-32 is specific to mac OS default Python install (it's the 32 bits build), brew doesn't install it. On the other hand since wxPython 3.x supports 64 bits builds replacing it with "python" should work. I'll probably switch to a 64 bits default soon.
Okay so I just spent five hours just making extra sure that there is NO. FUCKING. WAY. to remove an item from a menu in wxPython 3.x Cocoa without making the whole application crash. I reverted to wx 2.8 and I'll try to find a workaround for the tray icon issue. I really hate wx.
Hello Jérome,
What do you think of an exception handler as below for instance?
def setIcon(self):
icon = artprovider.getIcon(self.bitmap)
try:
self.SetIcon(icon, self._ _tooltipText)
except:
pass # or log an error
As a rough patch, is there a chance to get some thing more usable ?
HTH, Pascal.
Thanks for your work to fix this! I tried some other time trackers and I hate them all. I'll send some money your way.
Thanks for the support, and while donations are encouraging and helpful, the most substantial help possible would be somehow recruiting (or becoming) a qualified Python developer interested in volunteering time… cheers
Hello Jérmone and Aaron,
In February I had to update my Mac with HighSierra and run into the problem which is described here. I installed the update in Ticket 1652, (TaskCoach 1.4.3.7969). Unfortunately this didn´t help. When starting TaskCoach I get the a message (see down). The Tasks are shown, but when I try to open one task or sort a colum, the Mac (!) will be restarted at once. Currently, I cannot work with TaskCoach on the Mac. The temporary workaround is using a second (older) computer with Windows. But that´s not useful because normally I´m out on business. Could you tell me, whether you see a possibility to fix the problem? I have been working with TaskCoach for a lot of years and I handle my whole work as a freelancer with it. It´s a great tool, I knew, but how great it really is, I know since it doesn´t work longer. I looked for other tools and tried a lot. There is no one which is so helpful for my kind of working as TaskCoach is. The only chance I see is using Parallels with Linux or Windows in the future. But before, I hope you have better advice or news. Thanks a lot for your work on TaskCoach and also for your answer.
Kind regards
Sabine
I'm experiencing the same issue.
I attached the error message i receive:
I am on macOS High Sierra and am having these issues.
1. an error on opening the file
2. the notification upon no user activity won't go away after clicking any of the buttons
3. an error when exiting the application
4. icon in dock looks funny when the app is running
I saw another ticket mentioned wxPython so I used Homebrew to install it. Version is 3.0.2.0_1
Here is some logs from taskcoach.txt. Unfortunately, it looks like it only reports the icon issue:
Last edit: Adam A. Koch 2018-07-03
Just updated to 1.4.4 and issue still happens on macOS Mojave 10.14.1
After upgrading from Sierra to Mojave 10.14.3, I am seeing similar errors when I run TaskCoach 1.4.4. When I open a TaskCoach file, I see the following error messages in a dialog:
Traceback (most recent call last):
File "taskcoachlib/gui/iocontroller.pyo", line 125, in open
File "taskcoachlib/persistence/taskfile.pyo", line 661, in load
File "taskcoachlib/persistence/taskfile.pyo", line 406, in load
File "taskcoachlib/patterns/observer.pyo", line 170, in decorator
File "taskcoachlib/patterns/observer.pyo", line 156, in send
File "taskcoachlib/patterns/observer.pyo", line 315, in notifyObservers
File "taskcoachlib/patterns/observer.pyo", line 189, in call
File "taskcoachlib/gui/taskbaricon.pyo", line 86, in onTaskListChanged
File "taskcoachlib/gui/taskbaricon.pyo", line 150, in startOrStopTicking
File "taskcoachlib/gui/taskbaricon.pyo", line 157, in startTicking
File "taskcoachlib/gui/taskbaricon.pyo", line 214, in __setIcon
File "wx/_windows.pyo", line 2154, in SetIcon
PyAssertionError: C++ assertion "GetHandleSize( maskhandle ) == w * h" failed at /BUILD/wxPython-src-2.8.12.1/src/mac/carbon/bitmap.cpp(996) in CopyFromIcon()
Traceback (most recent call last):
Then it prompts me for a file to restore. I close this. Then tried to save the file, but it will not save. When I close TaskCoach, it writes the following stacktraces to taskcoachlog.txt:
============= Mon Feb 11 10:14:32 2019
Traceback (most recent call last):
File "taskcoachlib/gui/iocontroller.pyo", line 125, in open
File "taskcoachlib/persistence/taskfile.pyo", line 661, in load
File "taskcoachlib/persistence/taskfile.pyo", line 406, in load
File "taskcoachlib/patterns/observer.pyo", line 170, in decorator
File "taskcoachlib/patterns/observer.pyo", line 156, in send
File "taskcoachlib/patterns/observer.pyo", line 315, in notifyObservers
File "taskcoachlib/patterns/observer.pyo", line 189, in call
File "taskcoachlib/gui/taskbaricon.pyo", line 86, in onTaskListChanged
File "taskcoachlib/gui/taskbaricon.pyo", line 150, in startOrStopTicking
File "taskcoachlib/gui/taskbaricon.pyo", line 157, in startTicking
File "taskcoachlib/gui/taskbaricon.pyo", line 214, in setIcon
File "wx/_windows.pyo", line 2154, in SetIcon
PyAssertionError: C++ assertion "GetHandleSize( maskhandle ) == w * h" failed at /BUILD/wxPython-src-2.8.12.1/src/mac/carbon/bitmap.cpp(996) in CopyFromIcon()
Traceback (most recent call last):
File "taskcoachlib/gui/taskbaricon.pyo", line 80, in onIdle
File "taskcoachlib/gui/taskbaricon.pyo", line 214, in setIcon
File "wx/_windows.pyo", line 2154, in SetIcon
wx._core.PyAssertionError: C++ assertion "GetHandleSize( maskhandle ) == w * h" failed at /BUILD/wxPython-src-2.8.12.1/src/mac/carbon/bitmap.cpp(996) in CopyFromIcon()
Traceback (most recent call last):
File "taskcoachlib/gui/uicommand/base_uicommand.pyo", line 129, in onCommandActivate
File "taskcoachlib/gui/uicommand/uicommand.pyo", line 1764, in doCommand
File "taskcoachlib/command/base.pyo", line 69, in do
File "taskcoachlib/command/taskCommands.pyo", line 49, in do_command
File "taskcoachlib/command/taskCommands.pyo", line 38, in stopTracking
File "taskcoachlib/domain/task/task.pyo", line 606, in stopTracking
File "taskcoachlib/domain/effort/effort.pyo", line 122, in setStop
File "taskcoachlib/domain/task/task.pyo", line 588, in sendTrackingChangedMessage
File "taskcoachlib/thirdparty/pubsub/core/kwargs/publisher.pyo", line 27, in sendMessage
File "taskcoachlib/thirdparty/pubsub/core/kwargs/publishermixin.pyo", line 24, in publish
File "taskcoachlib/thirdparty/pubsub/core/topicobj.pyo", line 376, in _publish
File "taskcoachlib/thirdparty/pubsub/core/topicobj.pyo", line 397, in sendMessage
File "taskcoachlib/thirdparty/pubsub/core/kwargs/publishermixin.pyo", line 64, in _mix_callListener
File "taskcoachlib/thirdparty/pubsub/core/kwargs/listenerimpl.pyo", line 43, in call
File "taskcoachlib/gui/taskbaricon.pyo", line 100, in onTrackingChanged
File "taskcoachlib/gui/taskbaricon.pyo", line 166, in stopTicking
File "taskcoachlib/gui/taskbaricon.pyo", line 214, in setIcon
File "wx/_windows.pyo", line 2154, in SetIcon
wx._core.PyAssertionError: C++ assertion "GetHandleSize( maskhandle ) == w * h" failed at /BUILD/wxPython-src-2.8.12.1/src/mac/carbon/bitmap.cpp(996) in CopyFromIcon()
Traceback (most recent call last):
File "taskcoachlib/gui/taskbaricon.pyo", line 80, in onIdle
File "taskcoachlib/gui/taskbaricon.pyo", line 214, in setIcon
File "wx/_windows.pyo", line 2154, in SetIcon
wx._core.PyAssertionError: C++ assertion "GetHandleSize( maskhandle ) == w * h" failed at /BUILD/wxPython-src-2.8.12.1/src/mac/carbon/bitmap.cpp(996) in CopyFromIcon()
Traceback (most recent call last):
File "taskcoachlib/gui/mainwindow.pyo", line 289, in onClose
File "taskcoachlib/application/application.pyo", line 373, in quitApplication
File "taskcoachlib/gui/iocontroller.pyo", line 295, in close
File "taskcoachlib/gui/iocontroller.pyo", line 476, in closeUnconditionally
File "taskcoachlib/persistence/taskfile.pyo", line 649, in close
File "taskcoachlib/persistence/taskfile.pyo", line 362, in close
File "taskcoachlib/patterns/observer.pyo", line 170, in decorator
File "taskcoachlib/patterns/observer.pyo", line 156, in send
File "taskcoachlib/patterns/observer.pyo", line 315, in notifyObservers
File "taskcoachlib/patterns/observer.pyo", line 189, in call
File "taskcoachlib/gui/taskbaricon.pyo", line 86, in onTaskListChanged
File "taskcoachlib/gui/taskbaricon.pyo", line 151, in startOrStopTicking
File "taskcoachlib/gui/taskbaricon.pyo", line 166, in stopTicking
File "taskcoachlib/gui/taskbaricon.pyo", line 214, in setIcon
File "wx/_windows.pyo", line 2154, in SetIcon
wx._core.PyAssertionError: C++ assertion "GetHandleSize( maskhandle ) == w * h" failed at /BUILD/wxPython-src-2.8.12.1/src/mac/carbon/bitmap.cpp(996) in CopyFromIcon()
What's the status on this? I really need TaskCoach on my Mac (High Sierra), but it simply doesn't start. Starting it from Terminal just says "Killed: 9".
I’m a programmer who happens to like Task Coach. I started trying to update
it to the latest Python3 / wxWidgets, and there are many little
pleasantries that went below the maintained features of wxWidgets. It would
be a substantial rewrite unfortunately. For a while I was running it on a
raspberryPi and using VNC to control it, but its XML-based save-on-every
change approach was bogging down to frustrating levels. I’m back to
tracking my time in a text file! Och. I’m tempted to implement something
from scratch, but it would only vaguely resemble all the power of Task
Coach.
On Mon, Jan 11, 2021 at 2:11 PM Joost Egelie jegelie@users.sourceforge.net
wrote:
Related
Bugs: #1652
Well, I got it running on my Mac. I downloaded the Pendrive Windows version, and I'm running it flawlessly on Wine. I just happened to have Wine installed via MacPorts.
Bonus: TaskCoach has a nice working icon in the Status Menu bar (far right, where the date, battery indicator and such reside). Left-click will toggle minimise on TaskCoach, right-click will open a menu with some TaskCoach commands.