Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Crash when the app is started from a long folder name

#119

If the folder from which dupeGuru is started is long (the limit seems to be 138 characters), it crashes on startup.

Reported by Virgil Dupras · November 18th, 2010 @ 12:27 PM

State: fixed
Milestone: none
Assigned to: Virgil Dupras Virgil Dupras

Activity

  1. Virgil Dupras
    Virgil Dupras
    • Assigned user set to Virgil Dupras

    November 19th, 2010 @ 11:48 AM

  2. Virgil Dupras
    Virgil Dupras
    • State changed from accepted to hold

    I have located the cause of the crash, and it seems to be Python's fault. You don't even need to run dupeGuru to cause such crash. All you need is to have a very big PYTHONPATH. Example:

    export PYTHONPATH=/Applications/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc/dupeGuru.app/Contents/Resources/dg_cocoa.plugin/Contents/Resources:/Applications/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc/dupeGuru.app/Contents/Resources/dg_cocoa.plugin/Contents/Resources/lib/python3.1:/Applications/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc/dupeGuru.app/Contents/Resources/dg_cocoa.plugin/Contents/Resources/lib/python3.1/lib-dynload:/Applications/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc/dupeGuru.app/Contents/Resources/dg_cocoa.plugin/Contents/Resources/lib/python3.1/site-packages.zip:/Applications/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc/dupeGuru.app/Contents/Resources/dg_cocoa.plugin/Contents/Resources/lib/python31.zip
    $ python
    Fatal Python error: Py_Initialize: can't initialize sys standard streams
    UnicodeEncodeError: 'utf-8' codec can't encode character '\udd4f' in position 5: surrogates not allowed
    Abort trap
    

    When I run python from the trunk, this crash doesn't happen. I think it's due to Victor Stinner's tremendous work to straighten out wchar messiness in Python 3.2. So I'll just wait for 3.2 to be out.

    November 19th, 2010 @ 12:04 PM

  3. Virgil Dupras
    Virgil Dupras
    • State changed from hold to fixed

    Now that dupeGuru uses pluginbuilder, it can be built with python 3.2, which fixes this bug.

    February 22nd, 2011 @ 03:33 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.