Crash when the app is started from a long folder name
Reported by Virgil Dupras | November 18th, 2010 @ 12:27 PM
If the folder from which dupeGuru is started is long (the limit seems to be 138 characters), it crashes on startup.
Comments and changes to this ticket
-
Virgil Dupras November 19th, 2010 @ 11:48 AM
- Assigned user set to Virgil Dupras
-
Virgil Dupras November 19th, 2010 @ 12:04 PM
- 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.
-
Virgil Dupras February 22nd, 2011 @ 03:33 PM
- State changed from hold to fixed
Now that dupeGuru uses pluginbuilder, it can be built with python 3.2, which fixes this bug.
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป