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

th3coop commented 7 years ago

I'm telling you this is a vanilla install.

Based on the errors in your logs that doesn't seem possible. You shouldn't be getting errors like this in a vanilla install. Did you try the steps I suggested?

The only changes I made were to the color scheme and to limit the code intel depth to help alleviate the problem/conserve memory.

It's worth a shot but codeintel is a Python process, not a JS process. Also, the version control tools automatically configure so those will be on even in a vanilla install so you can try disabling those like I mentioned above.

jhihn commented 7 years ago

:man_shrugging: I agree I shouldn't be getting errors like that on a vanilla install. I've had this issue on two machines - a mac mini and a new mackbook pro. I don't use much mode than chrome, git, (not explicitly configured), python (shell schripts), and of course komodo. All I do in komodo is edit local text files (js/python)

I'm in safe mode and will report back in a day or few.

If I had to guess there is some memory leak that is adding to an array on every keystroke or command. I think the appearance of the beach ball is just automatically kicking in at some threshold. It never feels faster than at the start, and I can usually predict when it will be beach-balling. Maybe it's something related to undo history?

th3coop commented 7 years ago

If I had to guess there is some memory leak that is adding to an array on every keystroke or command

That's a pretty random guess. The best way to proceed is not to make any assumptions and just eliminated everything we can but disabling things in komodo until we hopefully find the issue.

Having said that, I'm quite certain your issue is not related to this ticket. I'd like you to open a forum post or new ticket where we can try to diagnose your issue as we are currently adding a lot of noise to a ticket that will be closed soon. Whatever you end up creating please make sure you link back to your initial comment here so we know where this starts.

rgarverick commented 7 years ago

The frequent 'beach ball freeze' that was plaguing me on Mac Sierra quit happening after I installed Komodo IDE 10.2.3, build 89902, as recommended on this forum. I used the app heavily all day today with no freezes or other abnormal behavior. Yay!!

jhihn commented 7 years ago

@rgarverick FWIW, it's better than it used to be for sure - It's acceptable for about 2 days of constant use then goes to beachballs for me at the end of the 2nd day. I'd suggest reporting back in a few days. (keep it open)

th3coop commented 7 years ago

@jhihn, please open a new issue in the forums like I requested. This build resolves the issue for anyone that has tried the build so far. This is not productive at all. Lets get started on diagnosing your issue in a new thread.

IF someone does find that the build does not solve the original issue of constant, immediate crashing then please let us know. So far no one has reported back saying the issue remains.

Naatan commented 7 years ago

There was never an issue of constant immediate crashing, the hangs were always random over a longer period of time. I've updated the dev note with instructions on how to report hangs on the latest build.

th3coop commented 7 years ago

There was never an issue of constant immediate crashing

Ok, perhaps not immediate but it was constant and people weren't waiting two days for it to kick is. Even QA said 12 to 15 times a day Komodo would crash. From what I understand when @jhihn restarts the issue goes away for 2 days then returns. I'll let you take this if you like though @Naatan if you feel like digging into it here.

jhihn commented 7 years ago

I think part of the confusion was that I was directed here from another issue. https://community.komodoide.com/t/k10-2-gets--really--slow-after-a-while/3468/39

jhihn commented 7 years ago

@cgchoffman Per your request #2696

th3coop commented 7 years ago

Thanks @jhihn.

Naatan commented 7 years ago

This was resolved in 10.2.3

mrochford commented 7 years ago

Anyone seeing the spinning wheel again? In the last two weeks I have been getting them again. They go away after a 20-40 seconds.

jhihn commented 7 years ago

Define again. Way build are you on? If your build had changed, maybe. But if it didn't, then you're probably seeing the behavior I'm still seeing.

mrochford commented 7 years ago

Oh I am an idiot and didn't provide any information.

Komodo IDE, version 10.2.3, build 89902, platform macosx. Built on Tue Jul 11 12:32:32 2017. macOS Sierra 10.12.16

When moving between files I get the spinning wheel for about 20-30 seconds then things will resume.

jhihn commented 7 years ago

Yeah, that's the issue I'm living with. Even with as much codeintel disabled as can be, after about a week it gets to be unusable. You've got to close and reopen it.

rgarverick commented 7 years ago

Team:

Since July when I upgraded to Komodo IDE 10.2.3 (build 89902, platform macosx built Tue Jul 11 23:48:43 2017), I have been using it very heavily for editing, debugging, etc. day in and day out on a MacBook Sierra 10.12.6. I have not seen the dreaded beach ball freeze.

Before upgrading I had 10.2.1 and was plagued by it frequently.

On Mon, Sep 25, 2017 at 10:42 AM, jhihn notifications@github.com wrote:

Yeah, that's the issue I'm living with. Even with as much codeintel disabled as can be, after about a week it gets to be unusable. You've got to close and reopen it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Komodo/KomodoEdit/issues/2424#issuecomment-331903407, or mute the thread https://github.com/notifications/unsubscribe-auth/Abxm-MD2Flk5DYExgrSL0asDqUQ2dvYcks5sl7vPgaJpZM4Mr9Ur .

Naatan commented 7 years ago

Please do not reopen old bugs, if you are seeing hangs open a new bug.