{"action":"opened","issue":{"url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/796","labels_url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/796/labels{/name}","comments_url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/796/comments","events_url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/796/events","html_url":"https://github.com/Komodo/KomodoEdit/issues/796","id":115085116,"number":796,"title":"Math domain error and a logic problem in CodeIntel","user":{"login":"Defman21","id":7100645,"avatar_url":"https://avatars.githubusercontent.com/u/7100645?v=3","gravatar_id":"","url":"https://api.github.com/users/Defman21","html_url":"https://github.com/Defman21","followers_url":"https://api.github.com/users/Defman21/followers","following_url":"https://api.github.com/users/Defman21/following{/other_user}","gists_url":"https://api.github.com/users/Defman21/gists{/gist_id}","starred_url":"https://api.github.com/users/Defman21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Defman21/subscriptions","organizations_url":"https://api.github.com/users/Defman21/orgs","repos_url":"https://api.github.com/users/Defman21/repos","events_url":"https://api.github.com/users/Defman21/events{/privacy}","received_events_url":"https://api.github.com/users/Defman21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-04T15:57:21Z","updated_at":"2015-11-04T15:57:21Z","closed_at":null,"body":"Happens for me with a clean profile when picking PHP file type.\r\nThe log:\r\n```\r\n[2015-11-04 17:37:37,122] [INFO] Startup: Welcome to Komodo IDE 9.3.0 build 88117 (platform linux-x86_64, running on Linux 4.2.0-17-generic version #21-Ubuntu SMP Fri Oct 23 19:56:16 UTC 2015)\r\n[2015-11-04 17:37:37,122] [INFO] Startup: /usr/bin/python built on Thu Oct 29 11:07:23 2015\r\n[2015-11-04 17:37:37,133] [WARNING] koEnviron: skipping environment string: '\"'><;|&(:'\r\n[2015-11-04 17:37:37,468] [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\r\n[2015-11-04 17:37:37,558] [WARNING] root: ko.logging has been converted to a CommonJS module; use require(\"ko/logging\") instead (since Komodo 9.0.0a1).\r\n    @chrome://komodo/content/komodo.js:15:1\r\n\r\n[2015-11-04 17:37:38,434] [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:///home/defman/Komodo-IDE-9/lib/mozilla/components/koamAddonManager.js:138\r\n[2015-11-04 17:37:38,488] [WARNING] keybindings: [Ctrl+0] was used for 'cmd_goToQuickBookmark_0', overriding to use 'cmd_fontZoomReset'\r\n[2015-11-04 17:37:38,810] [WARNING] koSkin: Detected GTK theme via libgtk: Iris\r\n[2015-11-04 17:37:41,261] [ERROR] console-logger: While trying to require(\"spellcheck/spellcheck\"): (0) in chrome://komodo/content/jetpack.js:156\r\nTraceback (most recent call last):\r\n  File \"chrome://komodo/content/jetpack.js\", line 156, in \r\n\r\n[2015-11-04 17:37:41,262] [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\r\nTraceback (most recent call last):\r\n  File \"chrome://komodo/content/jetpack.js\", line 157, in \r\n\r\n[2015-11-04 17:37:41,263] [ERROR] console-logger: require@chrome://komodo/content/jetpack.js:154:20\r\ndoUpdateUI/this.spellcheck_timeout<@viewbufferbase:1150:25\r\n (0) in chrome://komodo/content/jetpack.js:160\r\nTraceback (most recent call last):\r\n  File \"chrome://komodo/content/jetpack.js\", line 160, in \r\n\r\n[2015-11-04 17:37:41,577] [INFO] elastic_tabstops: Elastic tabstops loaded.\r\n[2015-11-04 17:37:41,657] [INFO] komodospellchecker: Spell checker loaded.\r\n[2015-11-04 17:37:41,658] [INFO] komodospellchecker: Using dictionary en-US\r\n[2015-11-04 17:37:45,313] [WARNING] views: Inconsistent view count in view_closed event\r\n[2015-11-04 17:37:45,398] [WARNING] views: Inconsistent view count in view_opened event\r\n[2015-11-04 17:38:12,184] [WARNING] console-logger: Key event not available on some keyboard layouts: key=\"v\" modifiers=\"control,alt\" (1) in chrome://komodo/content/komodo.xul:0\r\n[2015-11-04 17:38:13,851] [ERROR] codeintel.oop.driver: style_at_pos binary search sentinel hit: there is likely a logic problem here!\r\nTraceback (most recent call last):\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 564, in run\r\n    handler.handleRequest(request, self)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 622, in handleRequest\r\n    meth(request, driver)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 907, in do_get_scopes\r\n    scopes = self._do_get_scopes_aux(buf, pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 912, in _do_get_scopes_aux\r\n    scoperef = buf.scoperef_from_pos(pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/udl.py\", line 303, in scoperef_from_pos\r\n    lang = self.lang_from_pos(pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/udl.py\", line 217, in lang_from_pos\r\n    style = self.accessor.style_at_pos(pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/accessor.py\", line 165, in style_at_pos\r\n    return self._token_at_pos(pos)[\"style\"]\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/accessor.py\", line 161, in _token_at_pos\r\n    raise CodeIntelError(\"style_at_pos binary search sentinel hit: \"\r\nCodeIntelError: style_at_pos binary search sentinel hit: there is likely a logic problem here!\r\n[2015-11-04 17:38:13,854] [ERROR] koCodeIntel: style_at_pos binary search sentinel hit: there is likely a logic problem here!\r\nTraceback (most recent call last):\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 564, in run\r\n    handler.handleRequest(request, self)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 622, in handleRequest\r\n    meth(request, driver)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 907, in do_get_scopes\r\n    scopes = self._do_get_scopes_aux(buf, pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 912, in _do_get_scopes_aux\r\n    scoperef = buf.scoperef_from_pos(pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/udl.py\", line 303, in scoperef_from_pos\r\n    lang = self.lang_from_pos(pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/udl.py\", line 217, in lang_from_pos\r\n    style = self.accessor.style_at_pos(pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/accessor.py\", line 165, in style_at_pos\r\n    return self._token_at_pos(pos)[\"style\"]\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/accessor.py\", line 161, in _token_at_pos\r\n    raise CodeIntelError(\"style_at_pos binary search sentinel hit: \"\r\nCodeIntelError: style_at_pos binary search sentinel hit: there is likely a logic problem here!\r\n\r\n[2015-11-04 17:38:15,812] [ERROR] codeintel.oop.driver: math domain error\r\nTraceback (most recent call last):\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 564, in run\r\n    handler.handleRequest(request, self)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 622, in handleRequest\r\n    meth(request, driver)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 907, in do_get_scopes\r\n    scopes = self._do_get_scopes_aux(buf, pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 912, in _do_get_scopes_aux\r\n    scoperef = buf.scoperef_from_pos(pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/udl.py\", line 303, in scoperef_from_pos\r\n    lang = self.lang_from_pos(pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/udl.py\", line 217, in lang_from_pos\r\n    style = self.accessor.style_at_pos(pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/accessor.py\", line 165, in style_at_pos\r\n    return self._token_at_pos(pos)[\"style\"]\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/accessor.py\", line 145, in _token_at_pos\r\n    for iter_count in range(int(math.ceil(math.log(upper, 2)) + 1)):\r\nValueError: math domain error\r\n[2015-11-04 17:38:15,818] [ERROR] koCodeIntel: math domain error\r\nTraceback (most recent call last):\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 564, in run\r\n    handler.handleRequest(request, self)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 622, in handleRequest\r\n    meth(request, driver)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 907, in do_get_scopes\r\n    scopes = self._do_get_scopes_aux(buf, pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/oop/driver.py\", line 912, in _do_get_scopes_aux\r\n    scoperef = buf.scoperef_from_pos(pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/udl.py\", line 303, in scoperef_from_pos\r\n    lang = self.lang_from_pos(pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/udl.py\", line 217, in lang_from_pos\r\n    style = self.accessor.style_at_pos(pos)\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/accessor.py\", line 165, in style_at_pos\r\n    return self._token_at_pos(pos)[\"style\"]\r\n  File \"/home/defman/Komodo-IDE-9/lib/mozilla/python/komodo/codeintel2/accessor.py\", line 145, in _token_at_pos\r\n    for iter_count in range(int(math.ceil(math.log(upper, 2)) + 1)):\r\nValueError: math domain error\r\n\r\n[2015-11-04 17:38:22,909] [WARNING] codeintel.php: _handleTraitResolution:: not in a class|trait definition\r\n[2015-11-04 17:38:22,910] [WARNING] codeintel.php: _handleTraitResolution:: not in a class|trait definition\r\n[2015-11-04 17:38:22,911] [WARNING] codeintel.php: _handleTraitResolution:: not in a class|trait definition\r\n[2015-11-04 17:38:23,475] [WARNING] codeintel.php: _handleTraitResolution:: not in a class|trait definition\r\n[2015-11-04 17:38:23,522] [WARNING] codeintel.php: _handleTraitResolution:: not in a class|trait definition\r\n[2015-11-04 17:38:36,525] [WARNING] notify: Notification panel has already been removed, callback is likely called twice\r\n[2015-11-04 17:38:39,113] [WARNING] console-logger: Key event not available on some keyboard layouts: key=\"v\" modifiers=\"control,alt\" (1) in chrome://komodo/content/tail/tail.xul:0\r\n```"}}