Bug #1091

MH will crash without log if put in very strange location (on windows 7)

Added by Joel Palmius about 2 years ago.

Status:NewStart date:01/09/2017
Priority:NormalDue date:
Assignee:Joel Palmius% Done:


Category:Code correctness
Target version:MakeHuman 1.1.2


Steps to reproduce:

  • Go to wikipedia
  • Search for "arabic"
  • Copy some arabic characters
  • Create a new folder
  • Paste the arabic characters as its name
  • Copy/clone MH to this folder
  • Try to start it

MH will crash very early in the process, before having redirected stdout and stderr. This is because there is a chdir() which fails (line 359 in makehuman.py)

There is a catch-22 here. We can't import getpath since we haven't extended sys.path yet. And we would need getpath to manage strange names in locations we would need to extend sys.path.

Note that this is only for very strange locations. On an english windows, with a folder named åäöûüñ (entered manually on the keyboard), this does not crash.

I think it's unlikely that there is an immediately apparent fix for this. Also, it is probably rare to have arabic character pasted in an english windows 7. Without having tested it (for apparent reasons), I don't think the problem arises if using arabic characters in an arabic windows 7.

Anyway, we're not alone in having problems in this scenario. GVIM crashes if right-clicking a file and selecting "edit with vim" inside such a folder, and there is no way to cd into the folder using cmd.exe as it doesn't accept the folder name as valid.

arabic.png (265 KB) Joel Palmius, 01/09/2017 10:37 AM


Also available in: Atom