Menu

#1350 Message "See the logfile..." points to the wrong location on Windows 7

closed
nobody
None
windows
2026-01-20
2013-01-09
No

This ticket is not about the reason for the message.

Several times recently on Windows 7 I have seen a window appear with a title of "Errors occurred" containing and "OK" button and the text

See the logfile 'C:\Program Files (x86)\TaskCoach\TaskCoach.exe.log' for
details

The specified file doesn't exist. Either the file isn't being created, or it is being created in a different location. In either case the message is incorrect.

(I know it is standard, but the "OK" button really bugs me. It's not okay with me that errors occurred, and I don't want to agree that the file exists since it doesn't. At least the window has an "X" so I don't have to click "OK" when I don't feel okay. Couldn't you make it a "Sorry" button?)

1 Attachments

Discussion

  • Jérome Laheurte

    Unfortunately this message is not part of Task Coach per se, it's a py2exe mechanism... We have our own implementation for OS X but it's not as complete...

     
  • Florian George

    Florian George - 2013-06-13

    The location the window mentions is correct. But when using e.g. Windows 7 SP1 x64, Taskcoach runs with User access rights, which means it has no write access to the Directory "C:\Program Files (x86)\TaskCoach".

    There are possible solutions for this:

    1. Run TaskCoach With Admin Rights.

      1. Force taskcoach to run with Admin Rights by setting this in the Application Manifest file when compiling taskcoach. This will allow Taskcoach to write to the "C:\Program Files (x86)\TaskCoach" Directory, and will result in the taskCoach.exe.log being successfully created.
      2. Currently as a workaround, I manually set Taskcoach to run with Admin rights, and log files are now created properly.
    2. Write the log file to a location where an Application with User rights is allowed to write.

      1. In the User Data path "C:\Users[UserName]\AppData\Roaming\Task Coach", where already TaskCoach.ini and the templates directory are stored.
      2. In a Program Data path like "C:\ProgramData\TaskCoach".

    I would say option 2.1 makes the most sense as that directory is already being used by TaskCoach.

     
  • Jérome Laheurte

    Unfortunately this particular log is not written by Task Coach itself, it's a py2exe mechanism...

     
    • Florian George

      Florian George - 2013-06-13

      Would it be possible to circumvent that by running Taskcoach with the UserData dir as the working dir?
      Either chdir`ing to that directory during runtime, or just setting it to be the working dir in the Desktop/Start Menu shortcut.

       
  • Jérome Laheurte

    That warrants a try. I thought py2exe used the path to the executable but now I'm not so sure.

     
  • Jérome Laheurte

    Nah, it uses the executable path. But according to http://www.py2exe.org/index.cgi/StderrLog it just redirects stdout and stderr at the Python level so we won't loose anything if we enable our own handling on Windows (like we do on Mac and Linux). I'll try that.

     
  • Jérome Laheurte

    A fix was made and checked into the source code repository of Task Coach. The fix will be part of the next release. You will get another notification when that release is available with the request to install the new release and confirm that your issue has indeed been fixed.

    If you like, you can download a recent build from http://www.fraca7.net/TaskCoach-packages/latest_bugfixes.py to test the fix.

    Because a fix has been made for this bug report, the priority of this report has been lowered to 1 and its resolution has been set to 'Fixed'.
    Thanks, Task Coach development team

     
  • Florian George

    Florian George - 2013-06-16

    Downloaded TaskCoach-1.3.29.6220-win32.exe

    It is getting a (false positive) warning by Norton: http://www.symantec.com/security_response/writeup.jsp?docid=2010-051308-1854-99

    I can still use that build by ignoring the file, just wanted to let you know.

     
  • Jérome Laheurte

    Thanks. I guess any newly built binary gets a false positive with this system...

     
  • Florian George

    Florian George - 2013-06-18

    Ok, tested the new build 1.3.29.6220, on Exception a log file "taskcoachlog.txt" is saved under "My Documents".

     

    Last edit: Florian George 2013-06-18
  • Jérome Laheurte

    This bug should be fixed in the latest release of Task Coach. Can you please install the latest release of Task Coach and confirm that this bug has indeed been fixed?

    Thanks, Task Coach development team

     
  • B.J. Herbison

    B.J. Herbison - 2013-07-08

    Unfortunately I received another error message and I am able to verify the log file is created in the my home directory.

    (I will investigate the message in the log file and file another report on that issue if appropriate.)

     
  • B.J. Herbison

    B.J. Herbison - 2013-07-08

    Sorry, I can't test this. I can't crash TaskCoach because you've fixed
    all the bugs I've found (and more).

    Thanks for providing, and supporting, a useful tool.

                        Thanks,
                        B.J.
    

    --
    B.J. Herbison / bj@herbison.com / http://www.herbison.com/herbison/bj.html
    The Next Asylum / 203 Long Hill Road / Bolton, MA 01740-1421 / +1 978
    634-1061

    On 07/07/2013 11:47 AM, "Jérome Laheurte" wrote:

    This bug should be fixed in the latest release of Task Coach. Can you
    please install the latest release of Task Coach and confirm that this
    bug has indeed been fixed?

    Thanks, Task Coach development team


    [bugs:#1350] http://sourceforge.net/p/taskcoach/bugs/1350/ Message
    "See the logfile..." points to the wrong location on Windows 7

    Status: fixed-and-released
    Created: Wed Jan 09, 2013 01:47 PM UTC by B.J. Herbison
    Last Updated: Sun Jul 07, 2013 03:47 PM UTC
    Owner: nobody

    This ticket is not about the reason for the message.

    Several times recently on Windows 7 I have seen a window appear with a
    title of "Errors occurred" containing and "OK" button and the text

    See the logfile 'C:\Program Files (x86)\TaskCoach\TaskCoach.exe.log' for
    details
    

    The specified file doesn't exist. Either the file isn't being created,
    or it is being created in a different location. In either case the
    message is incorrect.

    (I know it is standard, but the "OK" button really bugs me. It's not
    okay with me that errors occurred, and I don't want to agree that the
    file exists since it doesn't. At least the window has an "X" so I don't
    have to click "OK" when I don't feel okay. Couldn't you make it a
    "Sorry" button?)


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/taskcoach/bugs/1350/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     
  • Jérome Laheurte

    Let's close this then :)

     
  • Jérome Laheurte

    • status: fixed-and-released --> closed
     

Log in to post a comment.