Skip to content

BugId fails with error: "ord() expected string of length 1, but int found" #132

@maxcoderrrr

Description

@maxcoderrrr

Hi,
I was running the latest release of BugId and encountered the following error:

→ Command line: C:\test\foo.exe C:\test\foo.bar
+ Main process 3248/0xCB0 (foo.exe, x64, IL:3): Attached ("C:\test\foo.exe" C:\test\foo.bar).
► Main process 3248/0xCB0 (foo.exe, x64, IL:3): stderr> data received
┌───[ Fatal builtins.TypeError Exception in thread 4724/0x1274 (cThread#1914FEC2310{main = __fRun, #4724, running}) ]────────────────────────────────────
│ ord() expected string of length 1, but int found
│
│ Local variables:
│   .0 = <bytes_iterator object at 0x000001914FE82920>#1914FE82920
│   bInputIsUnicode = False
│   sChar = 243
│
│ This thread was created in thread 3048/0xBE8 (MainThread) with the following stack:
│ ─┐ <module> @ C:\BugId3\BugId.py:1286
│  │ 1285:    try:
│  │ 1286:      fMain();
│  ├─┐ fMain @ C:\BugId3\BugId.py:1202
│  ╷ │ 1201:        guDetectedBugsCount = 0;
│  ╷ │ 1202:        oBugId.fStart();
│  ╷ ├─┐ cBugId?.fStart @ C:\BugId3\modules\mBugId\cBugId.py:115
│  ╷ ╷ │ 114:    oBugId.__bStarted = True;
│  ╷ ╷ │ 115:    oBugId.__oCdbWrapper.fStart();
│  ╷ ╷ ├─┐ cCdbWrapper?.fStart @ C:\BugId3\modules\mBugId\cCdbWrapper\cCdbWrapper.py:400
│  ╷ ╷ ╷ │ 399:    if oCdbWrapper.s0ApplicationBinaryPath:
│  ╷ ╷ ╷ │ 400:      oMainConsoleProcess = oCdbWrapper.foStartApplicationProcess(
│  ╷ ╷ ╷ ├─┐ cCdbWrapper_foStartApplicationProcess @ C:\BugId3\modules\mBugId\cCdbWrapper\cCdbWrapper_foStartApplicationProcess.py:74
│  ╷ ╷ ╷ ╷ │ 73:    );
│  ╷ ╷ ╷ ╷ │ 74:    oHelperThread.fStart();
│  ╷ ╷ ╷ ╷ ├─┐ cCdbWrapper_cHelperThread?.fStart @ C:\BugId3\modules\mBugId\cCdbWrapper\cCdbWrapper_cHelperThread.py:41
│  ╷ ╷ ╷ ╷ ╷ │ 40:    try:
│  ╷ ╷ ╷ ╷ ╷ │ 41:      oSelf.__oThread = cThread(oSelf.__fRun);
│  ╷ ╷ ╷ ╷ ╷ ├─┐ __init__ @ C:\BugId3\modules\mMultiThreading\cThread.py:44
│  ╷ ╷ ╷ ╷ ╷ ╷ │ 43:    oSelf.__fMain = fMain;
│  ╷ ╷ ╷ ╷ ╷ ╷ │ 44:    oSelf.__o0CreateCallStack = c0CallStack.foForThisFunctionsCaller() if c0CallStack else None;
│
│ This thread was started in thread 3048/0xBE8 (MainThread) with the following stack:
│ ─┐ <module> @ C:\BugId3\BugId.py:1286
│  │ 1285:    try:
│  │ 1286:      fMain();
│  ├─┐ fMain @ C:\BugId3\BugId.py:1202
│  ╷ │ 1201:        guDetectedBugsCount = 0;
│  ╷ │ 1202:        oBugId.fStart();
│  ╷ ├─┐ cBugId?.fStart @ C:\BugId3\modules\mBugId\cBugId.py:115
│  ╷ ╷ │ 114:    oBugId.__bStarted = True;
│  ╷ ╷ │ 115:    oBugId.__oCdbWrapper.fStart();
│  ╷ ╷ ├─┐ cCdbWrapper?.fStart @ C:\BugId3\modules\mBugId\cCdbWrapper\cCdbWrapper.py:400
│  ╷ ╷ ╷ │ 399:    if oCdbWrapper.s0ApplicationBinaryPath:
│  ╷ ╷ ╷ │ 400:      oMainConsoleProcess = oCdbWrapper.foStartApplicationProcess(
│  ╷ ╷ ╷ ├─┐ cCdbWrapper_foStartApplicationProcess @ C:\BugId3\modules\mBugId\cCdbWrapper\cCdbWrapper_foStartApplicationProcess.py:74
│  ╷ ╷ ╷ ╷ │ 73:    );
│  ╷ ╷ ╷ ╷ │ 74:    oHelperThread.fStart();
│  ╷ ╷ ╷ ╷ ├─┐ cCdbWrapper_cHelperThread?.fStart @ C:\BugId3\modules\mBugId\cCdbWrapper\cCdbWrapper_cHelperThread.py:53
│  ╷ ╷ ╷ ╷ ╷ │ 52:    oSelf.__oStartedLock.fAcquire();
│  ╷ ╷ ╷ ╷ ╷ │ 53:    oSelf.__oThread.fStart();
│  ╷ ╷ ╷ ╷ ╷ ├─┐ fStart @ C:\BugId3\modules\mMultiThreading\cThread.py:115
│  ╷ ╷ ╷ ╷ ╷ ╷ │ 114:  def fStart(oSelf, bVital = None):
│  ╷ ╷ ╷ ╷ ╷ ╷ │ 115:    o0CurrentCallStack = c0CallStack.foForThisFunctionsCaller() if c0CallStack else None;
│
│ Stack for thread 4724/0x1274 (cThread#1914FEC2310{main = __fRun, #4724, running}):
│ ─┐ __fRun @ C:\BugId3\modules\mBugId\cCdbWrapper\cCdbWrapper_cHelperThread.py:74
│  │ 73:        cException, oException, oTraceBack = sys.exc_info();
│  │ 74:        if not oSelf.__oCdbWrapper.fbFireCallbacks("Internal exception", oSelf.__oThread, oException, oTraceBack):
│  ├─┐ <lambda> @ C:\BugId3\modules\mBugId\cBugId.py:200
│  ╷ │ 199:      sEventName,
│  ╷ │ 200:      lambda oCdbWrapper, *txArguments: fCallback(oBugId, *txArguments), # replace oCdbWrapper with oBugId
│  ╷ ├─┐ fInternalExceptionCallback @ C:\BugId3\BugId.py:200
│  ╷ ╷ │ 199:      gbAnInternalErrorOccured = True;
│  ╷ ╷ │ 200:      fSaveInternalExceptionReportAndTerminate(oException, oTraceBack);
│  ╷ ╷ ├─┐ fSaveInternalExceptionReportAndTerminate @ C:\BugId3\BugId.py:203
│  ╷ ╷ ╷ │ 202:    def fSaveInternalExceptionReportAndTerminate(oException, oTraceBack):
│  ╷ ╷ ╷ │ 203:      fOutputExceptionInformation(oException, oTraceBack);
│  ╷ ╷ ╷ ├─┐ fOutputExceptionInformation @ C:\BugId3\fOutputExceptionInformation.py:18
│  ╷ ╷ ╷ ╷ │ 17:  if m0DebugOutput:
│  ╷ ╷ ╷ ╷ │ 18:    m0DebugOutput.fConsoleOutputExceptionDetails(oException, o0Traceback = oTraceback);
│  ╷ ╷ ╷ ╷ ├─┐ fConsoleOutputExceptionDetails @ C:\BugId3\modules\mDebugOutput\fConsoleOutputExceptionDetails.py:13
│  ╷ ╷ ╷ ╷ ╷ │ 12:
│  ╷ ╷ ╷ ╷ ╷ │ 13:  aasConsoleOutputLines = faasCreateConsoleOutputForException(oException, oTraceback, oStack);
│  ╷ ╷ ╷ ╷ ╷ ├─┐ faasCreateConsoleOutputForException @ C:\BugId3\modules\mDebugOutput\faasCreateConsoleOutputForException.py:4
│  ╷ ╷ ╷ ╷ ╷ ╷ │ 3:def faasCreateConsoleOutputForException(oException, oTraceback, oStack):
│  ╷ ╷ ╷ ╷ ╷ ╷ │ 4:  dxExceptionDetails = fdxExceptionDetails(oException, oTraceback);
│  ╷ ╷ ╷ ╷ ╷ ╷ ├─┐ fdxExceptionDetails @ C:\BugId3\modules\mDebugOutput\fdxExceptionDetails\fdxExceptionDetails.py:56
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 55:  elif isinstance(oException, UnicodeDecodeError):
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 56:    return fdxExceptionDetailsForUnicodeDecodeError(oException);
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ├─┐ fdxExceptionDetailsForUnicodeDecodeError @ C:\BugId3\modules\mDebugOutput\fdxExceptionDetails\fdxExceptionDetailsForUnicodeDecodeError.py:18
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 17:      guExceptionInformationColor, "  (Hex: ",
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 18:      guExceptionInformationHighlightColor, " ".join([
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ├─┐ <listcomp> @ C:\BugId3\modules\mDebugOutput\fdxExceptionDetails\fdxExceptionDetailsForUnicodeDecodeError.py:19
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 18:      guExceptionInformationHighlightColor, " ".join([
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 19:        ("%04X" if bInputIsUnicode else "%02X") % ord(sChar)
│  ╒═════════════════╛ ▲ TypeError('ord() expected string of length 1, but int found')
│  │ __fRun @ C:\BugId3\modules\mBugId\cCdbWrapper\cCdbWrapper_cHelperThread.py:88
│  │ 87:              "Could not terminate cdb";
│  │ 88:        oSelf.__oCdbWrapper.bCdbIsRunning = False;
│ ═╛ ▲ Application terminated because exception was not handled.

BugId terminates before a bug report can be created, but I'm using the same test environment and versions as in my other bug reports that I filed.

Any help to fix this issue would be great.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions