QssStylesheetEditor icon indicating copy to clipboard operation
QssStylesheetEditor copied to clipboard

v1.7 Hard crash on Windows when saving

Open Warchamp7 opened this issue 2 years ago • 4 comments

Running the exe and saving, the program just hard crashes on save with no information

Running the batch file provides a bit more information


------------------------
starting...
config file "F:\Program Files\QssStylesheetEditor\scripts\i18n\list.toml" load successed!
config file "F:\Program Files\QssStylesheetEditor\scripts\config\config.toml" load successed!
  Preimporting 'PyQt5.Qsci'   ...   successfully in 0.0045s.
  Preimporting 'res'       ...   successfully in 0.0005s.
  Preimporting 'res.img_rc'   ...   successfully in 0.001s.
  Preimporting 'ui'        ...   successfully in 0.024s.
  Preimporting 'qss_template'   ...   successfully in 0.001s.
coding: ascii
Editor syntax highlighting language: Python
coding: GB2312
Editor syntax highlighting language: QSS
Traceback (most recent call last):
  File "..\src\ui\mainwin.py", line 396, in save
  File "C:\Users\lei\.virtualenvs\QssStylesheetEditor-5KuBu0kK\Lib\site-packages\CodeEditor\editor.py", line 366, in save
  File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\cp1252.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 493-497: character maps to <undefined>
Press any key to continue . . .```

Warchamp7 avatar Jul 28 '21 02:07 Warchamp7

let me see, could i have the file you edited?

hustlei avatar Jul 31 '21 09:07 hustlei

let me see, could i have the file you edited?

It was the default file. I opened the program and tried to save

Warchamp7 avatar Jul 31 '21 17:07 Warchamp7

which windows version the program is running on?

hustlei avatar Aug 01 '21 12:08 hustlei

which windows version the program is running on?

I'm on Windows 10

Warchamp7 avatar Aug 01 '21 18:08 Warchamp7