Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.15k stars 302 forks source link

Komodo IDE 10.2.1 on macOS 10.12.4 hanging #2424

Closed pemcg closed 7 years ago

pemcg commented 7 years ago

Short Summary

I'm running Komodo IDE 10.2.1 on MacOS 10.12.4. I haven't used Komodo for a while so I'm not sure if the issues are related to the 10.12.4 upgrade that I did this morning, but I've had 2 cases today of Komodo hanging (infinite beachball). I've also noticed generally that the UI is frustratingly slow scrolling up and down, it's not a smooth experience at all.

Both of the hangs have been with about 5-6 files open, relatively small files (<400 lines)

Note From Developer - Please Read

A nightly is now available with a fix for this hang, you can download it here:

http://downloads.activestate.com/Komodo/nightly/komodoide/latest-10.2.x/

If you are still experiencing this issue with the latest build please supply a backtrace of Komodo in this ticket (when it is hanging).

To get the backtrace take the following steps:

Steps to Reproduce

Random

Expected results

Actual results

Platform Information

Komodo IDE for Mac Komodo 10.2.1 *Operating System (and version) MacOS 10.12.4

Additional Information

Attached is the text of the "Report the problem to Apple" output when I did a force quit. komodo_hang.txt

Naatan commented 7 years ago

No hangs with the latest build?

vrurg commented 7 years ago

Mine behaves nicely but I'm not developing much these days. I would only complain about disappeared symbols in the Code tab, but that's unrelated issue.

calaverasgrande commented 7 years ago

I've been good for a couple days. The previous build seemed to be causing other apps like Chrome and Opera to freeze.

tuckdesign commented 7 years ago

I didn't have any hang since last update (89904). Only thing is that code intel is not working, and git is not working (although it is turned on). Tried resetting code intel db, but didn't help, and not working in safe-mode also.

vrurg commented 7 years ago

And when been ran for a long period it becomes slow. Wrong, it is SLO-OW.

Naatan commented 7 years ago

@calaverasgrande I'm gonna call correlation on that one, there is nothing in these new builds that would interact with completely separate processes.

@vrurg one problem at a time :)

Is git not working for anyone with the new build?

vrurg commented 7 years ago

@Naatan , I'm not reporting a problem. Could be a side-effect worth to know about.

git doesn't work, that's for sure.

Naatan commented 7 years ago

@vrurg Komodo is known to get slower over time, I restart it once a day myself. We're working on improving this for Komodo 11, sadly it's not a simple fix.

calaverasgrande commented 7 years ago

I haven't had any noticeable issues in the last week or so. Other than the lack of code intel in this build. :(

jolyonralph commented 7 years ago

Just wanted to add that this issue is affecting me too. About hourly, sometimes more frequently, Komodo just hangs. Komodo IDE 10.2.2, MacOS 10.12.5, MacPro 2013, dual monitors (but still fails even when only one monitor connected.)

I'd love to help trying to diagnose the problem, but this issue is really slowing my development time down so that right now I have no free time. Hopefully others will provide enough information to get this fixed.

tuckdesign commented 7 years ago

@jolyonralph Did you try build from this thread? I am using it and it works without hangs, but git and codeintel is not working in it...

jolyonralph commented 7 years ago

Need codeintel so that's not an option for me.

Naatan commented 7 years ago

We're working on a build that should work without caveats.

Naatan commented 7 years ago

Build updated. CodeIntel should work in this one.

calaverasgrande commented 7 years ago

Well I guess I'll have to wait until this trickles down to Komodo Edit. I'm timed out on IDE.

Naatan commented 7 years ago

@calaverasgrande please feel free to contact sales to have your trial extended.

tuckdesign commented 7 years ago

@Naatan nice. Took bit while to startup but codeintel is working. Git is working also.

dch commented 7 years ago

keen to try the new version, mine has been running smoothly for several days. thanks AS team :-)

th3coop commented 7 years ago

keen to try the new version, mine has been running smoothly for several days. thanks AS team :-)

@dch, are you talking about when we officially release a fixed Komodo? Or are you referring to the test builds? The latest is available now in the original post of this ticket.

Naatan commented 7 years ago

Pretty sure he means the previous build which resolved the hangs but also broke some features.

th3coop commented 7 years ago

The latest is available now in the original post of this ticket.

Well then that ^^

dch commented 7 years ago

On Thu, 29 Jun 2017, at 22:29, Carey Hoffman wrote:

keen to try the new version, mine has been running smoothly for several days. thanks AS team :-)

@dch, are you talking about when we officially release a fixed Komodo? Or are you referring to the test builds? The latest is available now in the original post of this ticket.

the latest test builds, Carey. It's been running fine.

tuckdesign commented 7 years ago

This is running fine except for speed (even when not working too long)... but better slower then hanging.

Naatan commented 7 years ago

Can you elaborate? What is slow? Is it slow from the moment you start it or does it get slower over time?

It's important we differentiate between correlation and causation. Your performance issue could very well be from a different cause altogether.

tuckdesign commented 7 years ago

It is slow from moment I start and slower with more open files. I tried with git turned off and it looks much better.

tuckdesign commented 7 years ago

To note, it is not unbearably slow, just slower then it was in official build.

Naatan commented 7 years ago

Thanks @tuckdesign, I'll dig in.

Naatan commented 7 years ago

@tuckdesign could you explain in what ways Komodo feels slower?

tuckdesign commented 7 years ago

Codeintel is slow, scrolling through open file is slow. But all that is quite fine if I turn off git. Note: I am editing files that are under git.

NeilFraser commented 7 years ago

Here's a quick video: https://youtu.be/m75ZU0mX5_g

In this sequence I make an edit (my moving 'break' onto the same line), then simply hold down the right-arrow button. Notice that it freezes for half a second just before the cursor reaches 'value'. This is very repeatable and makes editing a somewhat annoying. But the lack of crashing is awesome.

My JavaScript file is 3000 lines long (shame on me), and reducing the file size to 40 lines does reduce the freeze duration, but not proportionately -- there's still a noticeable freeze even at 40 lines. All source control integration is turned off for this demo.

Naatan commented 7 years ago

Thanks guys!

Build updated. Please let me know if this one still feels slower than normal.

NeilFraser commented 7 years ago

Much better! You've made refactoring code fun again.

Naatan commented 7 years ago

Good to hear! :) So performance wise it's on par with the 10.2.2 build that hangs after a while?

NeilFraser commented 7 years ago

Build 89898 looks perfect in terms of performance and stability. Ship it!

Naatan commented 7 years ago

Thanks @NeilFraser :) We'll start running it through internal QA.

tuckdesign commented 7 years ago

Can confirm that this build is working nicely!

jhihn commented 7 years ago

It's not for me.

screen shot 2017-07-07 at 3 07 37 pm

Once killed, it came back and is doing it again.

Naatan commented 7 years ago

@jhihn please confirm your build number from the About screen?

Naatan commented 7 years ago

Dev note updated with link to nightly

jhihn commented 7 years ago

Komodo IDE, version 10.2.2, build 89898, platform macosx. Built on Tue Jul 4 09:18:33 2017. Will try the new one.

jhihn commented 7 years ago

So I don't know if this is related or not, but with the new build, I did a "save as", Tab bar +, "New File", paste, and now my system application bar is just "Komodo" despite me being in komodo. Going full screen fixed it. for whatever reason. (File, Edit etc were missing)

jhihn commented 7 years ago

FWIW, that rouge JS exec that was sucking down a 100% of a CPU is no longer happening. 👍

th3coop commented 7 years ago

So I don't know if this is related or not, but with the new build, I did a "save as", Tab bar +, "New File", paste, and now my system application bar is just "Komodo" despite me being in komodo. Going full screen fixed it. for whatever reason. (File, Edit etc were missing)

@jhihn, If you can reproduce it please report a new bug. Thanks for letting us know you're no longer seeing the issue reported in this ticket.

rgarverick commented 7 years ago

I routinely have the same problem with the menu bar having only 'Komodo' in it, but all you have to do is click outside Komodo then back in, and the menu bar restores.

My Komodo IDE froze with the beach ball half a dozen times today, has done this since I transitioned from Ubuntu to MacBook Sierra couple of weeks ago. I am going to install the latest nightly and run it all day tomorrow. Will report back my results.

rgarverick commented 7 years ago

Forgot to mention, other than the beach ball freeze, I have had no performance issues at all. Komodo IDE performs much better for me (speed-wise) on Mac Sierra than it did on my Ubuntu machine, which had a faster processor.

jhihn commented 7 years ago

So Komodo lasted until just now, and hat rouge js is back. Also I started beach balling shortly before. screen shot 2017-07-18 at 4 27 36 pm

Komodo IDE, version 10.2.3, build 89902, platform macosx. Built on Tue Jul 11 23:48:43 2017.

th3coop commented 7 years ago

@jhihn, could try restarting with various parts of Komodo disabled? Help > Troubleshooting. Also, try disabling whatever SCC tool you use. Since almost everyone has found that this issue is resolved I suspect you're issue is unrelated to the fix here. Also, please attach your logs next time that js process appears and you kill it.

jhihn commented 7 years ago

I'm so lazy I have't killed it yet.

I'm not really using anything but Komodo itself.

pystderr.log.zip

th3coop commented 7 years ago

Hmm, I'd try restarting without tools and addons. Make sure you're not running any outdated addons, ctrl+shift+O > Packages > Manage Packages > List Outdated.

jhihn commented 7 years ago

There are no outdated packages.

I'm telling you this is a vanilla install. The only changes I made were to the color scheme and to limit the code intel depth to help alleviate the problem/conserve memory.