New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle freezes TextMate, leaving behind a never ending 50% ruby process until the computer locks #13

Closed
bivald opened this Issue Feb 7, 2011 · 3 comments

Comments

Projects
None yet
2 participants
@bivald

bivald commented Feb 7, 2011

Hi,

In short

Textmate hangs when looking up a function that doesn't exist in PHP and creates a run-away ruby process from hell using 50% CPU and 500 Mb ram each.

Long:

I'm having issues with the PHP bundle that took me a while to track down. Lately I've been noticing that my fan is constantly on (on a new MacBook Pro this is a bad sign) and battery usage was down the drain. When I looked into it I had these:

niklas 26324 47,4 10,7 4344728 899904 ?? R 25Jan11 2330:25.25 ruby -wKU /tmp/temp_textmate.zf90sT
niklas 5008 44,2 4,6 2972536 383580 ?? S Tor11am 639:03.32 ruby -wKU /tmp/temp_textmate.5Vl71x
niklas 10001 43,8 5,5 4003736 457196 ?? S 27Jan11 1727:28.40 ruby -wKU /tmp/temp_textmate.dHpBiN

I had three textmate ruby processes, each eating 47% CPU and 500MB memory and been running for weeks. When I looked into the temp files they are the source of the PHP bundle (ironically written in Ruby).

At the same time TextMate had been crashing for me when I tried to lookup a function name that doesn't exist. Apparently when it hangs the ruby process continues forever.

Recreate

I'm using TextMate 1.5.10, and I've changed the action key for "Documentation for Functionc all (tool tip)" to Alt+§.

  1. Create a new Document
  2. Change it to Php
  3. Write test()
  4. Put your cursor between test and () (testcursor)
  5. Press Alt+§
  6. Textmate hangs

Regards,
Niklas

@joshvarner

This comment has been minimized.

Show comment
Hide comment
@joshvarner

joshvarner Feb 7, 2011

Contributor

Function Tooltip: Fix hang caused when running command on a line beginning with an invalid function name (closed by 1a57fbc)

Contributor

joshvarner commented Feb 7, 2011

Function Tooltip: Fix hang caused when running command on a line beginning with an invalid function name (closed by 1a57fbc)

@joshvarner

This comment has been minimized.

Show comment
Hide comment
@joshvarner

joshvarner Feb 7, 2011

Contributor

Thank you for the report. I've pushed a fix for it. Try it again after updating and let me know if you have any problems.

Contributor

joshvarner commented Feb 7, 2011

Thank you for the report. I've pushed a fix for it. Try it again after updating and let me know if you have any problems.

@bivald

This comment has been minimized.

Show comment
Hide comment
@bivald

bivald Feb 8, 2011

Awesome! Works like a charm. Thank you for the quick fix and commit, for us PHPers the php bundle helps tremendously. Keep up the good work

bivald commented Feb 8, 2011

Awesome! Works like a charm. Thank you for the quick fix and commit, for us PHPers the php bundle helps tremendously. Keep up the good work

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment