SkyLined / BugId

Detect, analyze and uniquely identify crashes in Windows applications
https://bugid.skylined.nl
Other
499 stars 90 forks source link

NameError("name 'u0NumberOfRepeats' is not defined") #108

Closed mineechor closed 1 year ago

mineechor commented 1 year ago
┌───[ A bug was detected ]─────────────────────────────────────────────────────────────────────────────────────────────
│ Id @ Location:    AVR:NULL 810.20c @ rundll32.exe!advapi32.dll!WctRemoveEntry
│ Description:      An Access Violation exception happened at 0x0 while attempting to read memory at 0x0 using a NULL pointer.
│ Security impact:  None
│ Version:          rundll32.exe 10.0.19041.746 (x64)
│                   advapi32.DLL 10.0.19041.1682 (x64)
┌───[ Fatal builtins.NameError Exception in thread 16868/0x41E4 (cThread#287C24A4970{main = __fRun, #16868, running}) ]
│ Undefined variable u0NumberOfRepeats.
│
│ Local variables:
│   bCountBugs = False
│   oBugId = <mBugId.cBugId.cBugId object at 0x00000287C2493670>#287C2493670
│   oBugReport = <mBugId.cBugReport.cBugReport.cBugReport object at 0x00000287C24FAF40>#287C24FAF40
│   sBugIdAndLocation = 'AVR:NULL 810.20c @ rundll32.exe!advapi32.dll!WctRemoveEntry'
│   sOutputFileNamesHeader = 'AVR:NULL 810.20c @ rundll32.exe!advapi32.dll!WctRemoveEntry'
│   sVersionInformation = 'advapi32.DLL 10.0.19041.1682 (x64)'
│
│ Stack for thread 16868/0x41E4 (cThread#287C24A4970{main = __fRun, #16868, running}):
│ ─┐ __fRun @ D:\A_Download\BugId.release.2022-01-05.09.41\modules\mBugId\cCdbWrapper\cCdbWrapper_cHelperThread.py/66
│  │ 65:      try:
│  │ 66:        oSelf.__fActivity(*oSelf.__axActivityArguments);
│  ├─┐ cCdbWrapper_fCdbStdInOutHelperThread @ D:\A_Download\BugId.release.2022-01-05.09.41\modules\mBugId\cCdbWrapper\cCdbWrapper_fCdbStdInOutHelperThread.py/54
│  ╷ │ 53:    oCdbWrapper.fbFireCallbacks("Log message", "Main loop #%d" % uMainLoopCounter);
│  ╷ │ 54:    (bEventIsFatal, bEventHasBeenHandled) = oCdbWrapper.ftbHandleLastCdbEvent(asbOutputWhileRunningApplication);
│  ╷ ├─┐ cCdbWrapper_ftbHandleLastCdbEvent @ D:\A_Download\BugId.release.2022-01-05.09.41\modules\mBugId\cCdbWrapper\cCdbWrapper_ftbHandleLastCdbEvent.py/220
│  ╷ ╷ │ 219:  ### Report bug and see if the collateral bug handler can ignore it #################################################
│  ╷ ╷ │ 220:  o0BugReport.fReport();
│  ╷ ╷ ├─┐ cBugReport?.fReport @ D:\A_Download\BugId.release.2022-01-05.09.41\modules\mBugId\cBugReport\cBugReport.py/329
│  ╷ ╷ ╷ │ 328:
│  ╷ ╷ ╷ │ 329:    assert oCdbWrapper.fbFireCallbacks("Bug report", oSelf), \
│  ╷ ╷ ╷ ├─┐ <lambda> @ D:\A_Download\BugId.release.2022-01-05.09.41\modules\mBugId\cBugId.py/193
│  ╷ ╷ ╷ ╷ │ 192:      sEventName,
│  ╷ ╷ ╷ ╷ │ 193:      lambda oCdbWrapper, *txArguments: fCallback(oBugId, *txArguments), # replace oCdbWrapper with oBugId
│  ╷ ╷ ╷ ╷ ├─┐ fBugReportCallback @ D:\A_Download\BugId.release.2022-01-05.09.41\BugId.py/407
│  ╷ ╷ ╷ ╷ ╷ │ 406:            # In JIT mode and when counting bugs we prefix the report with the date and time.
│  ╷ ╷ ╷ ╷ ╷ │ 407:            bPrefixWithBugIdStartDateTime = gbRunningAsJITDebugger or bCountBugs or u0NumberOfRepeats is not None,
│  ╷ ╷ ╷ ╷ ╷ │ ▲ NameError("name 'u0NumberOfRepeats' is not defined")
│  ╷ ╷ ╷ ╷ ╷ │ fBugReportCallback @ D:\A_Download\BugId.release.2022-01-05.09.41\BugId.py/484
│  ╷ ╷ ╷ ╷ ╷ │ 483:      finally:
│  ╷ ╷ ╷ ╷ ╷ │ 484:        oConsole.fUnlock();
│  ╒═════════╛
│  │ __fRun @ D:\A_Download\BugId.release.2022-01-05.09.41\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):
│ ═╛ ▲ Application terminated because exception was not handled.
SkyLined commented 1 year ago

Thank you for taking the time to report this issue and I apologize for any inconvenience this may have caused.

This issue should already be fixed in the most recent development version (you can get that using git clone https://github.com/SkyLined/BugId.git).

I am running some more test before I publish a new release version with this fix.

mineechor commented 1 year ago

Thanks.