Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ghost opened this issue Jun 22, 2013 · 2 comments
Closed

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

ghost opened this issue Jun 22, 2013 · 2 comments
Labels
bug Bug reports.

Comments

@ghost
Copy link

ghost 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.

@ghost ghost closed this as completed Jun 22, 2013
@ghost
Copy link
Author

ghost 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.

@ghost
Copy link
Author

ghost commented Jun 22, 2013

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports.
Projects
None yet
Development

No branches or pull requests

0 participants