{"record":{"id":"d67b42361d667873","repo":"sqlmapproject/sqlmap","slug":"unable-to-create-gui-window-s","errorCode":null,"errorMessage":"unable to create GUI window ('%s')","messagePattern":"unable to create GUI window \\('(.+?)'\\)","errorType":"exception","errorClass":"SqlmapSystemException","httpStatus":null,"severity":"error","filePath":"lib/utils/gui.py","lineNumber":424,"sourceCode":"        self.controlsByDest = {}          # dest -> [(pane name, interactive widget)]\n        self.searchMatches = []\n\n        self.process = None\n        self.processQueue = None\n        self.processConfigFile = None\n        self.consoleWindow = None\n        self.consoleText = None\n        self.consoleStatus = None\n        self._runSerial = 0\n        self._refreshJob = None\n        self._searchJob = None\n        self._headerJob = None\n        self._suspendRefresh = False\n\n        try:\n            self.window = tk.Tk()\n        except Exception as ex:\n            raise SqlmapSystemException(\"unable to create GUI window ('%s')\" % getSafeExString(ex))\n\n        self.tooltip = _TooltipManager(self, self.window, tk, PALETTE)\n        self._initializeVariables()\n        self._initFonts()\n        self._initStyle()\n        self._buildLayout()\n        self.window.protocol(\"WM_DELETE_WINDOW\", self._closeApplication)\n\n    def _initializeVariables(self):\n        for dest in self.optionOrder:\n            option = self.optionByDest[dest]\n            isBool = not _optTakesValue(option)\n            otype = \"bool\" if isBool else _optValueType(option)\n            default = defaults.get(dest)\n            if isBool:\n                var = self.tk.BooleanVar(value=bool(default))\n            else:\n                var = self.tk.StringVar(value=\"\" if default in (None, False) else default)","sourceCodeStart":406,"sourceCodeEnd":442,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/utils/gui.py#L406-L442","documentation":"Error \"unable to create GUI window ('%s')\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/utils/gui.py:424 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}