Crash when the app is started from a long folder name #119

Closed
hsoft opened this Issue Jun 22, 2013 · 2 comments

Projects

None yet

1 participant

@hsoft
Owner
hsoft commented Jun 22, 2013

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

@hsoft hsoft closed this Jun 22, 2013
@hsoft
Owner
hsoft commented Jun 22, 2013

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.

@hsoft
Owner
hsoft commented Jun 22, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment