Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.15k stars 301 forks source link

UnicodeDecodeError #2202

Open twsam03 opened 7 years ago

twsam03 commented 7 years ago

Short Summary

Every time set breakpoint and execute a python3 script, cause an exception crash

Steps to Reproduce

Expected results

Unhandled exception in thread started by <bound method dbgpSocket._getIncomingDataPacket of <dbgp.client.dbgpSocket object at 0x000002AD1BC45EB8>> Traceback (most recent call last): File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\support\dbgp\python3lib\dbgp\client.py", line 2196, in _getIncomingDataPacket newData = newData.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 54: invalid start byte

Actual results

Platform Information

Komodo Edit or IDE? IDE Komodo Version? 9.3.2 Operating System (and version)? WIN10

Additional Information

-- eg. Error logs, screenshots, workarounds --

mitchell-as commented 7 years ago

Hi, please go to Edit > Preferences > Languages > Python 3 > Debugger Logging, change the "Error Level" to "Debug", set a "Debugger log path" you can remember, reproduce the problem, and then post a link to the log or the log's contents in this ticket. Your error message alone is not telling me much unfortunately :(

twsam03 commented 7 years ago

Hi mitchell, thank you to help me. here is the log content

_getIncomingDataPacket starting...
_getIncomingDataPacket getting data...
    35['feature_get -n supports_async -i 1\x00']
    put data in queue ['feature_get -n supports_async -i 1']
_getIncomingDataPacket getting data...
    34['feature_get -n language_name -i 2\x00']
    put data in queue ['feature_get -n language_name -i 2']
_getIncomingDataPacket getting data...
    37['feature_get -n language_version -i 3\x00']
    put data in queue ['feature_get -n language_version -i 3']
_getIncomingDataPacket getting data...
    33['feature_get -n max_children -i 4\x00']
    put data in queue ['feature_get -n max_children -i 4']
_getIncomingDataPacket getting data...
    29['feature_get -n max_data -i 5\x00']
    put data in queue ['feature_get -n max_data -i 5']
_getIncomingDataPacket getting data...
    30['feature_get -n max_depth -i 6\x00']
    put data in queue ['feature_get -n max_depth -i 6']
_getIncomingDataPacket getting data...
    32['feature_get -n show_hidden -i 7\x00']
    put data in queue ['feature_get -n show_hidden -i 7']
_getIncomingDataPacket getting data...
    40['feature_get -n supports_postmortem -i 8\x00']
    put data in queue ['feature_get -n supports_postmortem -i 8']
_getIncomingDataPacket getting data...
    43['feature_set -n multiple_sessions -v 1 -i 9\x00']
    put data in queue ['feature_set -n multiple_sessions -v 1 -i 9']
_getIncomingDataPacket getting data...
    36['feature_set -n notify_ok -v 1 -i 10\x00']
    put data in queue ['feature_set -n notify_ok -v 1 -i 10']
_getIncomingDataPacket getting data...
    27['feature_get -n break -i 11\x00']
    put data in queue ['feature_get -n break -i 11']
_getIncomingDataPacket getting data...
    26['feature_get -n eval -i 12\x00']
    put data in queue ['feature_get -n eval -i 12']
_getIncomingDataPacket getting data...
    27['feature_get -n stdin -i 13\x00']
    put data in queue ['feature_get -n stdin -i 13']
_getIncomingDataPacket getting data...
    28['feature_get -n detach -i 14\x00']
    put data in queue ['feature_get -n detach -i 14']
_getIncomingDataPacket getting data...
    30['feature_get -n interact -i 15\x00']
    put data in queue ['feature_get -n interact -i 15']
_getIncomingDataPacket getting data...
    42['feature_get -n breakpoint_languages -i 16\x00']
    put data in queue ['feature_get -n breakpoint_languages -i 16']
_getIncomingDataPacket getting data...
    18['typemap_get -i 17\x00']
    put data in queue ['typemap_get -i 17']
_getIncomingDataPacket getting data...
    28['feature_get -n urimap -i 18\x00']
    put data in queue ['feature_get -n urimap -i 18']
_getIncomingDataPacket getting data...
mitchell-as commented 7 years ago

Would you also please post the contents of Komodo's Help > Troubleshooting > View Log File? Sadly the debugger log is quite unhelpful, assuming that's the entire content of it that you posted.

twsam03 commented 7 years ago
[2016-12-03 00:49:59,167] [INFO] Startup: Welcome to Komodo IDE 9.3.2 build 88191 (platform win32-x86, running on Windows post2012Server version 6.3.9600)
[2016-12-03 00:49:59,168] [INFO] Startup: C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\komodo.exe built on Thu Dec 10 11:38:17 2015
[2016-12-03 00:49:59,795] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2016-12-03 00:49:59,845] [WARNING] root: ko.logging has been converted to a CommonJS module; use require("ko/logging") instead (since Komodo 9.0.0a1).
    @chrome://komodo/content/komodo.js:15:1

[2016-12-03 00:50:00,390] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
  File "", line 0, in 

[2016-12-03 00:50:00,513] [WARNING] keybindings: [Alt+W] was used for 'cmd_copyRegion', overriding to use 'cmd_copyRegion'
[2016-12-03 00:50:00,526] [WARNING] keybindings: [Ctrl+R] was used for 'cmd_toolsRunCommand', overriding to use 'cmd_startIncrementalSearchBackwards'
[2016-12-03 00:50:00,528] [WARNING] keybindings: [Ctrl+U] was used for 'cmd_transientMarkMoveBack', overriding to use 'cmd_repeatNextCommandBy'
[2016-12-03 00:50:00,528] [WARNING] keybindings: [Ctrl+L] was used for 'cmd_lineTranspose', overriding to use 'cmd_editCenterVertically'
[2016-12-03 00:50:00,529] [WARNING] keybindings: [Ctrl+X,(] was used for 'cmd_startMacroMode', overriding to use 'cmd_startMacroMode'
[2016-12-03 00:50:00,529] [WARNING] keybindings: [Ctrl+X,)] was used for 'cmd_stopMacroMode', overriding to use 'cmd_stopMacroMode'
[2016-12-03 00:50:00,529] [WARNING] keybindings: [Ctrl+T] was used for 'cmd_transpose', overriding to use 'cmd_expandAbbrev'
[2016-12-03 00:50:04,180] [ERROR] koPythonLinter: Error checking syntax: retval=1, stderr=Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\support\python\py3compile.py", line 174, in <module>
    sys.exit( main(sys.argv) )
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\support\python\py3compile.py", line 87, in main
    s = fin.read()
UnicodeDecodeError: 'cp950' codec can't decode byte 0xe5 in position 238: illegal multibyte sequence
None
[2016-12-03 00:50:04,180] [ERROR] koPythonLinter: ServerException
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koPythonLinter.py", line 750, in lint_with_text
    raise ServerException(nsError.NS_ERROR_UNEXPECTED, errmsg)
ServerException: 2147549183 (Error checking syntax: retval=1, stderr=Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\support\python\py3compile.py", line 174, in <module>
    sys.exit( main(sys.argv) )
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\support\python\py3compile.py", line 87, in main
    s = fin.read()
UnicodeDecodeError: 'cp950' codec can't decode byte 0xe5 in position 238: illegal multibyte sequence
)
[2016-12-03 00:50:04,184] [ERROR] koLintService: lint_with_text exception
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koLintService.py", line 172, in lint_with_text
    newLintResults = UnwrapObject(linter).lint_with_text(request, text)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koPythonLinter.py", line 750, in lint_with_text
    raise ServerException(nsError.NS_ERROR_UNEXPECTED, errmsg)
ServerException: 2147549183 (Error checking syntax: retval=1, stderr=Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\support\python\py3compile.py", line 174, in <module>
    sys.exit( main(sys.argv) )
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\support\python\py3compile.py", line 87, in main
    s = fin.read()
UnicodeDecodeError: 'cp950' codec can't decode byte 0xe5 in position 238: illegal multibyte sequence
)
[2016-12-03 00:50:04,894] [ERROR] console-logger: While trying to require("spellcheck/spellcheck"): (0) in chrome://komodo/content/jetpack.js:156
Traceback (most recent call last):
  File "chrome://komodo/content/jetpack.js", line 156, in 

[2016-12-03 00:50:04,897] [ERROR] console-logger: Module `spellcheck/spellcheck` is not found at resource://gre/modules/commonjs/spellcheck/spellcheck.js (0) in chrome://komodo/content/jetpack.js:157
Traceback (most recent call last):
  File "chrome://komodo/content/jetpack.js", line 157, in 

[2016-12-03 00:50:04,898] [ERROR] console-logger: require@chrome://komodo/content/jetpack.js:154:20
doUpdateUI/this.spellcheck_timeout<@viewbufferbase:1132:25
 (0) in chrome://komodo/content/jetpack.js:160
Traceback (most recent call last):
  File "chrome://komodo/content/jetpack.js", line 160, in 

[2016-12-03 00:50:05,400] [INFO] komodospellchecker: Spell checker loaded.
[2016-12-03 00:50:05,401] [INFO] komodospellchecker: Using dictionary en-US
[2016-12-03 00:50:05,476] [INFO] elastic_tabstops: Elastic tabstops loaded.
[2016-12-03 00:50:05,763] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in file:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%209/lib/mozilla/components/koamAddonManager.js:138
[2016-12-03 00:50:06,085] [ERROR] koFileStatusService: Exception checking uri: u'file:///D:/Stock/pystk/mops.py'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\Stock\pystk\twse1???€??貉瓷?銵刻???py' does not appear to be a proper local path [D:\Stock\pystk\twse1]
[2016-12-03 00:50:06,086] [ERROR] koFileStatusService: Exception detail: ValueError(u"'D:\\Stock\\pystk\\twse1?\ue87c??\x80?\uf423\uf176?\u8c89\u74f7?\uea53\uee6a\u92b5\u523b???py' does not appear to be a proper local path [D:\\Stock\\pystk\\twse1]",)
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\Stock\pystk\twse1???€??貉瓷?銵刻???py' does not appear to be a proper local path [D:\Stock\pystk\twse1]
[2016-12-03 00:50:09,411] [ERROR] koFileStatusService: Exception checking uri: u'file:///D:/Stock/pystk'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\Stock\pystk\twse1???€??貉瓷?銵刻???py' does not appear to be a proper local path [D:\Stock\pystk\twse1]
[2016-12-03 00:50:09,411] [ERROR] koFileStatusService: Exception detail: ValueError(u"'D:\\Stock\\pystk\\twse1?\ue87c??\x80?\uf423\uf176?\u8c89\u74f7?\uea53\uee6a\u92b5\u523b???py' does not appear to be a proper local path [D:\\Stock\\pystk\\twse1]",)
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\Stock\pystk\twse1???€??貉瓷?銵刻???py' does not appear to be a proper local path [D:\Stock\pystk\twse1]
[2016-12-03 00:50:12,690] [ERROR] koFileStatusService: Exception checking uri: u'file:///D:/stock/pystk/financialstatement.py'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\stock\pystk\twse1???€??貉瓷?銵刻???log' does not appear to be a proper local path [D:\stock\pystk\twse1]
[2016-12-03 00:50:12,690] [ERROR] koFileStatusService: Exception detail: ValueError(u"'D:\\stock\\pystk\\twse1?\ue87c??\x80?\uf423\uf176?\u8c89\u74f7?\uea53\uee6a\u92b5\u523b???log' does not appear to be a proper local path [D:\\stock\\pystk\\twse1]",)
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\stock\pystk\twse1???€??貉瓷?銵刻???log' does not appear to be a proper local path [D:\stock\pystk\twse1]
[2016-12-03 00:50:22,536] [ERROR] koFileStatusService: Exception checking uri: u'file:///D:/Stock/pystk/test.py'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\Stock\pystk\twse1???€??貉瓷?銵刻???py' does not appear to be a proper local path [D:\Stock\pystk\twse1]
[2016-12-03 00:50:22,536] [ERROR] koFileStatusService: Exception detail: ValueError(u"'D:\\Stock\\pystk\\twse1?\ue87c??\x80?\uf423\uf176?\u8c89\u74f7?\uea53\uee6a\u92b5\u523b???py' does not appear to be a proper local path [D:\\Stock\\pystk\\twse1]",)
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\Stock\pystk\twse1???€??貉瓷?銵刻???py' does not appear to be a proper local path [D:\Stock\pystk\twse1]
[2016-12-03 00:50:25,841] [ERROR] koFileStatusService: Exception checking uri: u'file:///D:/Stock/pystk/test.py'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\Stock\pystk\twse1???€??貉瓷?銵刻???py' does not appear to be a proper local path [D:\Stock\pystk\twse1]
[2016-12-03 00:50:25,841] [ERROR] koFileStatusService: Exception detail: ValueError(u"'D:\\Stock\\pystk\\twse1?\ue87c??\x80?\uf423\uf176?\u8c89\u74f7?\uea53\uee6a\u92b5\u523b???py' does not appear to be a proper local path [D:\\Stock\\pystk\\twse1]",)
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\Stock\pystk\twse1???€??貉瓷?銵刻???py' does not appear to be a proper local path [D:\Stock\pystk\twse1]
[2016-12-03 00:50:35,621] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/komodo.xul:0
[2016-12-03 00:50:35,621] [WARNING] console-logger: Key event not available on some keyboard layouts: key="v" modifiers="alt,control" (1) in chrome://komodo/content/komodo.xul:0
[2016-12-03 00:50:35,621] [WARNING] console-logger: Key event not available on some keyboard layouts: key="o" modifiers="alt,control" (1) in chrome://komodo/content/komodo.xul:0
[2016-12-03 00:50:36,157] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
  File "", line 0, in 

[2016-12-03 00:50:42,793] [ERROR] dbgp.server: the following breakpoints/spawnpoints could not be set on this session:
twse1取得所有公司財務報表資料.py, line 272 (session timed out while waiting for response)
[2016-12-03 00:50:47,799] [ERROR] debugSessionTab: 
-- EXCEPTION START --
[Exception... "Component returned failure code: 0xffffffff [koIDBGPSession.contextNames]"  nsresult: "0xffffffff (<unknown>)"  location: "JS frame :: chrome://komodo/content/debugger/debugSessionTab.js :: DebugSessionTabManager_initVarTabs :: line 133"  data: no]
+ toString (function) 3 lines
+ message (string) 'Component returned failure code: 0xffffffff [koIDBGPSession.contextNames]'
+ result (number) 4294967295
+ name (string) ''
+ filename (string) 'chrome://komodo/content/debugger/debugSessionTab.js'
+ lineNumber (number) 133
+ columnNumber (number) 0
+ inner (object) null
| + data (object) null
| + stack (string) 'DebugSessionTabManager_initVarTabs@chrome://komodo/content/debugger/debugSessionTab.js:133:32
DebugS'...561 chars
+ location (object) JS frame :: chrome://komodo/content/debugger/debugSessionTab.js :: DebugSessionTabManager_initVarTabs :: line 133
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://komodo/content/debugger/debugSessionTab.js'
| + name (string) 'DebugSessionTabManager_initVarTabs'
| + lineNumber (number) 133
| + columnNumber (number) 32
| + sourceLine (string) ''
| + caller (object) JS frame :: chrome://komodo/content/debugger/debugSessionTab.js :: DebugSessionTabManager.prototype.sessionStart :: line 291
| + formattedStack (string) 'DebugSessionTabManager_initVarTabs@chrome://komodo/content/debugger/debugSessionTab.js:133:32
DebugS'...561 chars
| + stack
    DebugSessionTabManager_initVarTabs@chrome://komodo/content/debugger/debugSessionTab.js:133:32
    DebugSessionTabManager.prototype.sessionStart@chrome://komodo/content/debugger/debugSessionTab.js:291:8
    DBG_Session.prototype.startDebugging@chrome://komodo/content/debugger/debugger.js:1663:12
    DBG_Manager.prototype.onDebugStart/onSessionCreated@chrome://komodo/content/debugger/debugger.js:562:12
    DBG_Manager.prototype.onDebugStart@chrome://komodo/content/debugger/debugger.js:581:12
    DBG_Manager.prototype.observe@chrome://komodo/content/debugger/debugger.js:847:20
-- EXCEPTION END --
[2016-12-03 00:50:52,954] [WARNING] dbgp.xpcom: unable to set maxData - not supported
[2016-12-03 00:50:57,957] [WARNING] dbgp.xpcom: unable to set maxChildren - not supported
[2016-12-03 00:51:02,957] [ERROR] DBG_Manager: 
-- EXCEPTION START --
[Exception... "Component returned failure code: 0xffffffff [koIDBGPSession.updateStatus]"  nsresult: "0xffffffff (<unknown>)"  location: "JS frame :: chrome://komodo/content/debugger/debugger.js :: DBG_Session.prototype.startDebugging :: line 1719"  data: no]
+ toString (function) 3 lines
+ message (string) 'Component returned failure code: 0xffffffff [koIDBGPSession.updateStatus]'
+ result (number) 4294967295
+ name (string) ''
+ filename (string) 'chrome://komodo/content/debugger/debugger.js'
+ lineNumber (number) 1719
+ columnNumber (number) 0
+ inner (object) null
| + data (object) null
| + stack (string) 'DBG_Session.prototype.startDebugging@chrome://komodo/content/debugger/debugger.js:1719:8
DBG_Manager'...362 chars
+ location (object) JS frame :: chrome://komodo/content/debugger/debugger.js :: DBG_Session.prototype.startDebugging :: line 1719
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://komodo/content/debugger/debugger.js'
| + name (string) 'DBG_Session.prototype.startDebugging'
| + lineNumber (number) 1719
| + columnNumber (number) 8
| + sourceLine (string) ''
| + caller (object) JS frame :: chrome://komodo/content/debugger/debugger.js :: DBG_Manager.prototype.onDebugStart/onSessionCreated :: line 562
| + formattedStack (string) 'DBG_Session.prototype.startDebugging@chrome://komodo/content/debugger/debugger.js:1719:8
DBG_Manager'...362 chars
| + stack
    DBG_Session.prototype.startDebugging@chrome://komodo/content/debugger/debugger.js:1719:8
    DBG_Manager.prototype.onDebugStart/onSessionCreated@chrome://komodo/content/debugger/debugger.js:562:12
    DBG_Manager.prototype.onDebugStart@chrome://komodo/content/debugger/debugger.js:581:12
    DBG_Manager.prototype.observe@chrome://komodo/content/debugger/debugger.js:847:20
-- EXCEPTION END --
[2016-12-03 00:51:03,141] [ERROR] console-logger: The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. (0) in file:///c:/temp/tmp4monf8.html:0
Traceback (most recent call last):
  File "file:///c:/temp/tmp4monf8.html", line 0, in 

[2016-12-03 00:51:35,512] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/tail/tail.xul:0
[2016-12-03 00:51:35,513] [WARNING] console-logger: Key event not available on some keyboard layouts: key="v" modifiers="alt,control" (1) in chrome://komodo/content/tail/tail.xul:0
[2016-12-03 00:51:35,513] [WARNING] console-logger: Key event not available on some keyboard layouts: key="o" modifiers="alt,control" (1) in chrome://komodo/content/tail/tail.xul:0
[2016-12-03 00:52:00,438] [ERROR] koFileStatusService: Exception checking uri: u'file:///D:/Stock/pystk/test.py'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\Stock\pystk\twse1???€??貉瓷?銵刻???py' does not appear to be a proper local path [D:\Stock\pystk\twse1]
[2016-12-03 00:52:00,438] [ERROR] koFileStatusService: Exception detail: ValueError(u"'D:\\Stock\\pystk\\twse1?\ue87c??\x80?\uf423\uf176?\u8c89\u74f7?\uea53\uee6a\u92b5\u523b???py' does not appear to be a proper local path [D:\\Stock\\pystk\\twse1]",)
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\Stock\pystk\twse1???€??貉瓷?銵刻???py' does not appear to be a proper local path [D:\Stock\pystk\twse1]
[2016-12-03 00:52:08,573] [ERROR] koFileStatusService: Exception checking uri: u'file:///D:/Stock/pystk/test.py'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\Stock\pystk\twse1???€??貉瓷?銵刻???py' does not appear to be a proper local path [D:\Stock\pystk\twse1]
[2016-12-03 00:52:08,575] [ERROR] koFileStatusService: Exception detail: ValueError(u"'D:\\Stock\\pystk\\twse1?\ue87c??\x80?\uf423\uf176?\u8c89\u74f7?\uea53\uee6a\u92b5\u523b???py' does not appear to be a proper local path [D:\\Stock\\pystk\\twse1]",)
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koFileStatusService.py", line 594, in _process
    reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\fileStatusUtils.py", line 582, in updateFileStatus
    if not self.updateSCCInfo(dircache, dir_nsUri, reason):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\git@ActiveState.com\components\koGit.py", line 561, in updateSCCInfo
    uri = uriparse.localPathToURI(filepath)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\uriparse.py", line 59, in localPathToURI
    % (localPath,koFileEx.path))
ValueError: 'D:\Stock\pystk\twse1???€??貉瓷?銵刻???py' does not appear to be a proper local path [D:\Stock\pystk\twse1]
mitchell-as commented 7 years ago

Okay, thanks. As a workaround for now, please use only ASCII characters in your filenames. (e.g. twse1.py)

mitchell-as commented 7 years ago

Note to self: PyDBGP/dbgp/serverBase.py:195 probably needs to encode cmdline in UTF-8 or whatever PyDBGP/dbgp/client.py:2200's .decode() encoding is on Windows.

twsam03 commented 7 years ago

This error does not happen before until 2 day ago. I tried to uninstall and re-install komodo IDE and python 3.5.2, but no help. I just tried to run a simple ascii python program with only print('OK'), got same error.

mitchell-as commented 7 years ago

But what is the filename of your Python program?

twsam03 commented 7 years ago

test.py

mitchell-as commented 7 years ago

Does the error still happen when you use the same ascii file after Help > Troubleshooting > Restart in Safe Mode?

twsam03 commented 7 years ago

In normal mode and safe mode:

I restart komodo IDE without any file opened at initial. load test.py(ascii file) then run it, it's OK. load test1.py(utf-8 file) then run it, it's OK. load testNonAscii.py(non-ascii filename) then run it. got error. close testNonAscii.py(non-ascii filename) run test1.py or test2.py both got error.

mitchell-as commented 7 years ago

Okay, thanks for the clarification. The workaround of using ascii filenames still applies, provided you didn't get the error in the current Komodo session.

athing3777 commented 7 years ago

I have many NonAscii-named files/directories in my project path, and look forward to fix this bug...