Something goes wrong opening files

Komodo IDE, version 12.0.1, build 91869, platform linux-x86_64. Built on Mon Feb 10 19:37:24 2020.

I open a file with the IDE, the new tab is half-broken. Some features work, some not.
Other files from different folders seem to work fine.
I think this exception should give a hint what’s wrong:

[2022-05-03 14:25:06,745] [ERROR] console-logger: Error: Error calling method on NPObject! (2) in file:///home/adi/Komodo-IDE-12/lib/mozilla/components/scimoz_wrapper.js:1950
Traceback (most recent call last):
  File "file:///home/adi/Komodo-IDE-12/lib/mozilla/components/scimoz_wrapper.js", line 1950, in 

ERROR:xpcom:Unhandled exception calling 'int8 * addView(in nsISomething);'
Traceback (most recent call last):
  File "/home/adi/Komodo-IDE-12/lib/mozilla/python/xpcom/server/policy.py", line 303, in _CallMethod_
    return 0, func(*params)
  File "/home/adi/Komodo-IDE-12/lib/mozilla/python/xpcom/components.py", line 268, in wrapperFn
    return fn(*args, **kwargs)
  File "/home/adi/Komodo-IDE-12/lib/mozilla/components/koDocument.py", line 1748, in addView
    self.docSettingsMgr.register(xpself, scintilla)
  File "<XPCOMObject method 'register'>", line 3, in register
Exception: 2147549183 (NS_ERROR_UNEXPECTED)
[2022-05-03 14:25:13,133] [ERROR] view.editor: 
-- EXCEPTION START --
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koIDocument.addView]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: vieweditor :: set_koDoc :: line 264"  data: no]
+ toString (function) 3 lines
+ message (string) 'Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koIDocument.addView]'
+ result (number) 2147500037
+ name (string) 'NS_ERROR_FAILURE'
+ filename (string) 'vieweditor'
+ lineNumber (number) 264
+ columnNumber (number) 0
+ inner (object) null
| + data (object) null
| + stack (string) 'set_koDoc@vieweditor:264:16
initWithDocument@vieweditor:412:12
createViewFromDocument@viewlistbase:1'...338 chars
+ location (object) JS frame :: vieweditor :: set_koDoc :: line 264
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'vieweditor'
| + name (string) 'set_koDoc'
| + lineNumber (number) 264
| + columnNumber (number) 16
| + sourceLine (string) ''
| + caller (object) JS frame :: vieweditor :: initWithDocument :: line 412
| + formattedStack (string) 'set_koDoc@vieweditor:264:16
initWithDocument@vieweditor:412:12
createViewFromDocument@viewlistbase:1'...338 chars
| + stack
    set_koDoc@vieweditor:264:16
    initWithDocument@vieweditor:412:12
    createViewFromDocument@viewlistbase:100:16
    viewManager.prototype._newViewFromURI@chrome://komodo/content/views.js:326:19
    viewManager.prototype._doFileOpen@chrome://komodo/content/views.js:457:11
    viewManager.prototype.doFileOpenAsync/<@chrome://komodo/content/views.js:482:19
-- EXCEPTION END --
[2022-05-03 14:25:16,149] [ERROR] console-logger: TypeError: n is undefined (2) in chrome://komodo/content/contrib/commonjs/underscore.js:5
Traceback (most recent call last):
  File "chrome://komodo/content/contrib/commonjs/underscore.js", line 5, in

Other than telling me that for some reason Komodo can’t create a koDoc for your file, that log entry isn’t telling me why.

Can you add more details? What features break? What files? What’s the relation between the files that break? Did you try reproducing the issue in safe mode? What were the results? When did this issue start occurring? What might have changed on your system?