Extensions, gdb_create_backtrace fail if Inkscape in a directory with russian characters (e.g. Портативки)
Steps to reproduce:
- Download and extract an archived version of Inkscape or install inkscape to a custom installation, with some russian in the filepath. (an example might be
Портативки) - Navigate to the Inkscape install folder, then the bin folder
- Run gdb_create_backtrace.bat
- Alternative, run Inkscape.exe
- Draw a rectangle, keep it selected
- Extensions > Color > Desaturate
What happened?
- Both fail
GDB error:
Thanks for creating a debug backtrace!
After Inkscape starts, try to force the crash.
The backtrace will be recorded automatically.
Gathering sytem info...
'inkscape.com' is not recognized as an internal or external command,
operable program or batch file.
Launching Inkscape, please wait...
'gdb.exe' is not recognized as an internal or external command,
operable program or batch file.
Backtrace written to "C:\Users\User\inkscape_backtrace.txt"
Please attach this file when reporting the issue at https://inkscape.org/report
(remove personal information you do not want to share, e.g. your user name)
Press any key to continue . . .
C:\Users\User>cd C:\Users\User\Downloads\inkscape-1.1.1_2021-09-20_3bf5ae0d25-x64\Портативный\bin\
C:\Users\User\Downloads\inkscape-1.1.1_2021-09-20_3bf5ae0d25-x64\Портативный\bin> gdb_create_backtrace.bat
Thanks for creating a debug backtrace!
After Inkscape starts, try to force the crash.
The backtrace will be recorded automatically.
Gathering sytem info...
Launching Inkscape, please wait...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = 'c:\mingw64/bin/python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = 'c:\\mingw64/bin/python'
sys.base_prefix = 'D:\\a\\_temp\\msys\\msys64\\mingw64'
sys.base_exec_prefix = 'D:\\a\\_temp\\msys\\msys64\\mingw64'
sys.platlibdir = 'lib'
sys.executable = 'c:\\mingw64/bin/python'
sys.prefix = 'D:\\a\\_temp\\msys\\msys64\\mingw64'
sys.exec_prefix = 'D:\\a\\_temp\\msys\\msys64\\mingw64'
sys.path = [
'D:\\a\\_temp\\msys\\msys64\\mingw64\\lib\\python39.zip',
'D:\\a\\_temp\\msys\\msys64\\mingw64\\lib\\python3.9',
'D:\\a\\_temp\\msys\\msys64\\mingw64\\lib\\lib-dynload',
'',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00000b8c (most recent call first):
<no Python frame>
Backtrace written to "C:\Users\User\inkscape_backtrace.txt"
Please attach this file when reporting the issue at https://inkscape.org/report
(remove personal information you do not want to share, e.g. your user name)
Press any key to continue . . .
Extension error:
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = 'C:\Users\User\AppData\Roaming\inkscape\extensions;C:\Users\User\Downloads\inkscape-1.1.1_2021-09-20_3bf5ae0d25-x64\\u041f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0439\share\inkscape\extensions;C:\Users\User\Downloads\inkscape-1.1.1_2021-09-20_3bf5ae0d25-x64\\u041f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0439\share\inkscape\extensions\inkex\deprecated-simple'
program name = 'C:\Users\User\Downloads\inkscape-1.1.1_2021-09-20_3bf5ae0d25-x64\\u041f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0439\bin\pythonw.exe'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = 'C:\\Users\\User\\Downloads\\inkscape-1.1.1_2021-09-20_3bf5ae0d25-x64\\\u041f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0439\\bin\\pythonw.exe'
sys.base_prefix = 'D:\\a\\_temp\\msys\\msys64\\mingw64'
sys.base_exec_prefix = 'D:\\a\\_temp\\msys\\msys64\\mingw64'
sys.platlibdir = 'lib'
sys.executable = 'C:\\Users\\User\\Downloads\\inkscape-1.1.1_2021-09-20_3bf5ae0d25-x64\\\u041f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0439\\bin\\pythonw.exe'
sys.prefix = 'D:\\a\\_temp\\msys\\msys64\\mingw64'
sys.exec_prefix = 'D:\\a\\_temp\\msys\\msys64\\mingw64'
sys.path = [
'C:\\Users\\User\\AppData\\Roaming\\inkscape\\extensions',
'C:\\Users\\User\\Downloads\\inkscape-1.1.1_2021-09-20_3bf5ae0d25-x64\\\u041f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0439\\share\\inkscape\\extensions',
'C:\\Users\\User\\Downloads\\inkscape-1.1.1_2021-09-20_3bf5ae0d25-x64\\\u041f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0439\\share\\inkscape\\extensions\\inkex\\deprecated-simple',
'D:\\a\\_temp\\msys\\msys64\\mingw64\\lib\\python39.zip',
'D:\\a\\_temp\\msys\\msys64\\mingw64\\lib\\python3.9',
'D:\\a\\_temp\\msys\\msys64\\mingw64\\lib\\lib-dynload',
'',
]
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00001420 (most recent call first):
<no Python frame>
What should have happened?
- both work
Version info
- Inkscape 0.92.5 Release 7z just crashes running an extension (no gdb at this point)
- Various versions in my E:\ drive (except for Inkscape 0.92.5) from 1.1, to 1.2-dev all fail to start for some reason.
- Inkscape 1.1.1 Release 7z
Tests done on Windows 10
Edited by Nathan Lee