Komodo IDE hangs when using Autodesk MotionBuilder

Komodo IDE 8.5
Windows 7 SP1 64x
Autodesk MotionBuilder 2014

When I have a window of Autodesk MotionBuilder and Komodo IDE 8.5 open, Komodo just hangs. Once I minimize MotionBuilder, Komodo works great.

I saw a previous post from another user with the same problem 4 years ago at:
https://community.activestate.com/forum/motionbuilder-crashes-komodo-ide

Eric responded with a possible solution to reset user prefs by moving the contents of c:\Users\AppData\Local\ActiveState\Komodo to another location. I tried that, but that doesn’t resolve the issue.

Any other ideas?

Thanks,
Paul

Could you try starting Komodo from the command line using the -v option?

> path\to\ko.exe -v 2> komodo.log hmmm, looks like that doesn't catch all the output. You may need to copy out of the terminal window that opens up when that command runs. Reproduce the issue a few times then attached the resulting logs please.
  • Carey

Ran the line you posted, and here is was came out of the terminal window the 1st 3 times I ran Komodo while MotionBuilder open (and not minimized). Komodo was super slow to load due to the problem I posted about.

1st time:
[2014-07-29 15:11:28,980] [DEBUG] places_js: waiting for document complete
[2014-07-29 15:11:35,276] [WARNING] root: ko.findresults was already loaded, re-
creating it.

2nd time:
[2014-07-29 15:23:42,177] [DEBUG] places_js: waiting for document complete
[2014-07-29 15:23:46,829] [WARNING] root: ko.findresults was already loaded, re-
creating it.

3rd time:
[2014-07-29 15:29:50,288] [DEBUG] places_js: waiting for document complete
[2014-07-29 15:29:53,303] [WARNING] root: ko.findresults was already loaded, re-
creating it.

Here is the terminal output when MotionBuilder minimized. Komodo started right up very quickly with no issues:
[2014-07-29 15:38:04,716] [DEBUG] places_js: waiting for document complete
[2014-07-29 15:38:04,747] [WARNING] root: ko.findresults was already loaded, re-
creating it.

This is the output of the komodo.log file which output the exact same info everytime:
komodo: debug: Komodo information:
komodo: debug: Version: Komodo IDE 8.5.3 (Build 83298) win32-x86
komodo: debug: OS type: Windows 7
komodo: debug: Komodo startup options:
komodo: debug: nFiles: 0

Cheers,
Paul

That didn’t tell us much. I have some time now. I’m going to try and mimic this on a local VM.

  • Carey

Thanks. I tried this at home as well. Same version of Komodo, Motionbuilder, and Windows, but different box and different video card. Same issue unfortunately.

Weird. Ran path\to\ko.exe -v 2> komodo.log again, and got this this time:

+ filename (string) 'chrome://perldevkit/content/info.js'
+ lineNumber (number) 170
+ columnNumber (number) 0
+ location (object) JS frame :: chrome://perldevkit/content/info.js :: <TOP_LEVE
L> :: line 170
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://perldevkit/content/info.js'
| + name (object) null
| + lineNumber (number) 170
| + sourceLine (object) null
| + caller (object) JS frame :: chrome://perldevkit/content/info.js :: <TOP_LEVE
L> :: line 63
| + inner (object) null
| + data (object) null
| + initialize (function) 3 lines
-- EXCEPTION END --
ERROR:xpcom:Unhandled exception calling 'int8 * WhichAll(in wstring, out uint32,
 out retval Array[]);'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom
\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\components\k
oSysUtils.py", line 95, in WhichAll
    path = self._userEnvSvc.get("PATH").split(os.pathsep)
AttributeError: 'NoneType' object has no attribute 'split'
[2014-07-31 11:06:42,617] [WARNING] root: DEPRECATED: log, use ko.logging.getLog
ger('')
    [anonymous]@chrome://tcldevkit/content/info.js:169

[2014-07-31 11:06:42,631] [ERROR] root:
-- EXCEPTION START --
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [k
oISysUtils.WhichAll]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS
frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL> :: line 149"  data: n
o]
+ QueryInterface (function) 3 lines
+ message (string) 'Component returned failure code: 0x80004005 (NS_ERROR_FAILUR
E) [koISysUtils.WhichAll]'
+ result (number) 2147500037
+ name (string) 'NS_ERROR_FAILURE'
+ filename (string) 'chrome://tcldevkit/content/info.js'
+ lineNumber (number) 149
+ columnNumber (number) 0
+ location (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 149
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://tcldevkit/content/info.js'
| + name (object) null
| + lineNumber (number) 149
| + sourceLine (object) null
| + caller (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 66
| + inner (object) null
| + data (object) null
| + initialize (function) 3 lines
-- EXCEPTION END --
ERROR:xpcom:Unhandled exception calling 'int8 * WhichAll(in wstring, out uint32,
 out retval Array[]);'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom
\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\components\k
oSysUtils.py", line 95, in WhichAll
    path = self._userEnvSvc.get("PATH").split(os.pathsep)
AttributeError: 'NoneType' object has no attribute 'split'
[2014-07-31 11:06:43,730] [ERROR] root:
-- EXCEPTION START --
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [k
oISysUtils.WhichAll]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS
frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL> :: line 149"  data: n
o]
+ QueryInterface (function) 3 lines
+ message (string) 'Component returned failure code: 0x80004005 (NS_ERROR_FAILUR
E) [koISysUtils.WhichAll]'
+ result (number) 2147500037
+ name (string) 'NS_ERROR_FAILURE'
+ filename (string) 'chrome://tcldevkit/content/info.js'
+ lineNumber (number) 149
+ columnNumber (number) 0
+ location (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 149
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://tcldevkit/content/info.js'
| + name (object) null
| + lineNumber (number) 149
| + sourceLine (object) null
| + caller (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 66
| + inner (object) null
| + data (object) null
| + initialize (function) 3 lines
-- EXCEPTION END --
ERROR:xpcom:Unhandled exception calling 'int8 * WhichAll(in wstring, out uint32,
 out retval Array[]);'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom
\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\components\k
oSysUtils.py", line 95, in WhichAll
    path = self._userEnvSvc.get("PATH").split(os.pathsep)
AttributeError: 'NoneType' object has no attribute 'split'
[2014-07-31 11:06:45,424] [ERROR] root:
-- EXCEPTION START --
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [k
oISysUtils.WhichAll]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS
frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL> :: line 149"  data: n
o]
+ QueryInterface (function) 3 lines
+ message (string) 'Component returned failure code: 0x80004005 (NS_ERROR_FAILUR
E) [koISysUtils.WhichAll]'
+ result (number) 2147500037
+ name (string) 'NS_ERROR_FAILURE'
+ filename (string) 'chrome://tcldevkit/content/info.js'
+ lineNumber (number) 149
+ columnNumber (number) 0
+ location (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 149
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://tcldevkit/content/info.js'
| + name (object) null
| + lineNumber (number) 149
| + sourceLine (object) null
| + caller (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 66
| + inner (object) null
| + data (object) null
| + initialize (function) 3 lines
-- EXCEPTION END --
ERROR:xpcom:Unhandled exception calling 'int8 * WhichAll(in wstring, out uint32,
 out retval Array[]);'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom
\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\components\k
oSysUtils.py", line 95, in WhichAll
    path = self._userEnvSvc.get("PATH").split(os.pathsep)
AttributeError: 'NoneType' object has no attribute 'split'
[2014-07-31 11:06:46,816] [ERROR] root:
-- EXCEPTION START --
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [k
oISysUtils.WhichAll]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS
frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL> :: line 149"  data: n
o]
+ QueryInterface (function) 3 lines
+ message (string) 'Component returned failure code: 0x80004005 (NS_ERROR_FAILUR
E) [koISysUtils.WhichAll]'
+ result (number) 2147500037
+ name (string) 'NS_ERROR_FAILURE'
+ filename (string) 'chrome://tcldevkit/content/info.js'
+ lineNumber (number) 149
+ columnNumber (number) 0
+ location (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 149
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://tcldevkit/content/info.js'
| + name (object) null
| + lineNumber (number) 149
| + sourceLine (object) null
| + caller (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 66
| + inner (object) null
| + data (object) null
| + initialize (function) 3 lines
-- EXCEPTION END --
ERROR:xpcom:Unhandled exception calling 'int8 * WhichAll(in wstring, out uint32,
 out retval Array[]);'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom
\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\components\k
oSysUtils.py", line 95, in WhichAll
    path = self._userEnvSvc.get("PATH").split(os.pathsep)
AttributeError: 'NoneType' object has no attribute 'split'
[2014-07-31 11:06:49,058] [ERROR] root:
-- EXCEPTION START --
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [k
oISysUtils.WhichAll]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS
frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL> :: line 149"  data: n
o]
+ QueryInterface (function) 3 lines
+ message (string) 'Component returned failure code: 0x80004005 (NS_ERROR_FAILUR
E) [koISysUtils.WhichAll]'
+ result (number) 2147500037
+ name (string) 'NS_ERROR_FAILURE'
+ filename (string) 'chrome://tcldevkit/content/info.js'
+ lineNumber (number) 149
+ columnNumber (number) 0
+ location (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 149
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://tcldevkit/content/info.js'
| + name (object) null
| + lineNumber (number) 149
| + sourceLine (object) null
| + caller (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 66
| + inner (object) null
| + data (object) null
| + initialize (function) 3 lines
-- EXCEPTION END --
ERROR:xpcom:Unhandled exception calling 'int8 * WhichAll(in wstring, out uint32,
 out retval Array[]);'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom
\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\components\k
oSysUtils.py", line 95, in WhichAll
    path = self._userEnvSvc.get("PATH").split(os.pathsep)
AttributeError: 'NoneType' object has no attribute 'split'
[2014-07-31 11:06:51,780] [ERROR] root:
-- EXCEPTION START --
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [k
oISysUtils.WhichAll]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS
frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL> :: line 149"  data: n
o]
+ QueryInterface (function) 3 lines
+ message (string) 'Component returned failure code: 0x80004005 (NS_ERROR_FAILUR
E) [koISysUtils.WhichAll]'
+ result (number) 2147500037
+ name (string) 'NS_ERROR_FAILURE'
+ filename (string) 'chrome://tcldevkit/content/info.js'
+ lineNumber (number) 149
+ columnNumber (number) 0
+ location (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 149
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://tcldevkit/content/info.js'
| + name (object) null
| + lineNumber (number) 149
| + sourceLine (object) null
| + caller (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 66
| + inner (object) null
| + data (object) null
| + initialize (function) 3 lines
-- EXCEPTION END --
ERROR:xpcom:Unhandled exception calling 'int8 * WhichAll(in wstring, out uint32,
 out retval Array[]);'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom
\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\components\k
oSysUtils.py", line 95, in WhichAll
    path = self._userEnvSvc.get("PATH").split(os.pathsep)
AttributeError: 'NoneType' object has no attribute 'split'
[2014-07-31 11:06:53,888] [ERROR] root:
-- EXCEPTION START --
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [k
oISysUtils.WhichAll]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS
frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL> :: line 149"  data: n
o]
+ QueryInterface (function) 3 lines
+ message (string) 'Component returned failure code: 0x80004005 (NS_ERROR_FAILUR
E) [koISysUtils.WhichAll]'
+ result (number) 2147500037
+ name (string) 'NS_ERROR_FAILURE'
+ filename (string) 'chrome://tcldevkit/content/info.js'
+ lineNumber (number) 149
+ columnNumber (number) 0
+ location (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 149
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://tcldevkit/content/info.js'
| + name (object) null
| + lineNumber (number) 149
| + sourceLine (object) null
| + caller (object) JS frame :: chrome://tcldevkit/content/info.js :: <TOP_LEVEL
> :: line 66
| + inner (object) null
| + data (object) null
| + initialize (function) 3 lines
-- EXCEPTION END --
[2014-07-31 11:06:54,637] [DEBUG] places_js: waiting for document complete
[2014-07-31 11:06:54,766] [WARNING] root: ko.findresults was already loaded, re-
creating it.

Can you insert this log into “Code” bb-code? (Ctrl+K or button “</>”)

I’m not completely clear what that means. I tried the </> button, but got --> indent preformatted text by 4 spaces in the previewer.

I edited said post, and just shooting in the dark, I tried < code> bla bla bla </ code>, but still got weird formatting issues. I ended up doing < pre> bla bla bla < /pre>, and that seems to have kept original formatting and text intact (I think).

Just select your log (text in post) and press Ctrl+K.

Got it. Applied. Thanks.

Could you try the latest Komodo nightly if you’re not already?

I installed MotionBuilder but I didn’t hit the issue (un)fortunately.

Could you try disabling hardware acceleration in Komodo? Put the following in a macro:

ko.open.URI('about:config', 'browser');

Run the macro and it will open the config options that come with Mozilla. Set the following config settings:

layers.accelerate-all  false
layers.accelerate-non  true 
layers.acceleration.disabled  true 
gfx.direct2d.disabled  true
gfx.content.azure.enable  false
gfx.direct2d.force-enabled  false

See if that has any effect.

  • Carey

Downloaded nightly --> Komodo IDE, version 8.5.4, build 86686, platform win32-x86. Built on Thu Jul 17 01:07:54 2014.

Problem is fixed without using the macros.

So I guess the problem was already fixed in one of the builds after mine although I think I was running the latest stable release? (I did the check for updates button a couple of days ago 99% certain).

Anyways, thank you for your help!

I’m not aware of a fix for this. I think we just got lucky here.

If you’re running the release build (ie. Komodo 8.5.3) then you’re only alerted to new full release builds. We do not auto-update users to nightly builds. Now that you’re on a nightly though, you will be alerted when new nightly builds are created.

Very glad we got you sorted so easily :smiley:

  • Carey

Actually, it started again. So bizarre. I went ahead and ran the macros. I don’t get the first 2 options (layers.accelerate-all, layers.accelerate-non) as options to enable/disable. I was able to set the others to what you suggested. Still no cigar. Not sure why I had a good couple of hours usage till it started again.

I just restarted my PC, and reset Komodo to default settings by removing the old …AppData\Local\ActiveState directory.

After opening MotionBuilder and Komodo, it just hangs. I can’t even drag the komodo window around on my desktop. It will do it, but takes maybe 10 seconds. Sometimes it freezes all other apps while resolving whatever it’s resolving, then it will pop over to where its supposed to be.

Did you trying to use another MotionBuilder? (whatever it is).

Both my regular 8.5.3 Komodo and nightly 8.5.4 work, as of this second, with MotionBuilder 2015, while both my Komodos do not work with MotionBuilder 2014.

We aren’t cleared to use MotionBuilder 2015 at the moment. Checking to see if I can get by coding in 2015. Not sure if there will be compatability issues though.

Ahh yes, I was using 2015 as well. I’m interested to know, have you contacted Autodesk yet? Also, do you use Firefox for browsing? I wonder if Autodesk isn’t playing nicely with Mozilla based programs.

  • Carey

I do use Firefox from time to time, but mostly Chrome, but yeah, that did occur to me. I’ve opened up Firefox a few times with MotionBuilder 2014 open, and no issues at all.

I’ll ping Autodesk probably early next week as I’ve got a deadline today. So far, using Komodo to code for MotionBuilder 2015 seems to present no compatability problems when said code is ran in MotionBuilder 2014, so I have a workaround.

Thanks for your help so far.

It’s been a year, and I finally found a work-around to this issue. It was a close call, because I was about to switch IDEs even though I like Komodo.

Work-Around:
Anyways, in Task Manager, if I “Set Affinity…” for both MotionBuilder and Komodo IDE to work off different CPUs, that clears up the problem with Komodo freezing or acting super sluggish when I have a scene loaded in MotionBuilder. I wrote detailed steps in the AutoDesk MotionBuilder forum -> http://forums.autodesk.com/t5/python/using-motionbuilder-results-in-komodo-ide-hanging/m-p/5696436#M2838.

I hope either AutoDesk or ActiveState can tweak a setting (hopefully that’s all it would take) somewhere to prevent this from happening in a release at some point.

Cheers,
Paul

1 Like