fabiopelosin / Ikeda

11 stars 1 forks source link

high CPU and memory usage on closing scode while black popup is opened #5

Closed yas375 closed 12 years ago

yas375 commented 12 years ago

It seems that something leaks when xcode closed while log popup in CocoaPodsApp is on screen.

Steps to reproduce:

  1. open CocoaPodsApp, open some workspace in xcode (project which uses cocoapods of course).
  2. press 'install' button in CocoaPodsApp. Dark popup with log will be opened.
  3. Wait when it's done. In my case it fails (#4) and I don's exactly is it required condition or not. Don't close popup.
  4. close xcode

    Result:

CocoaPodsApp begins use more and more memory and CPU. I leave it for a while and CocoapodsApp used 662 Mb of memory and 100% of CPU:

screen

Expected:

Normal work of CPU and usual memory usage.


After closing that popup CocoaPodsApp uses ~100Mb of memory.

jwilling commented 12 years ago

Are you sure closing Xcode has anything to do with the memory problem? Can you try updating to the latest version and seeing if it still has the same memory usage?

yas375 commented 12 years ago

@jwilling I have the latest version of xcode. Did you try to reproduce this bug on your machine?

jwilling commented 12 years ago

@yas375 I meant the latest version of Ikeda. I pushed a commit that caches the download window a short while ago. Try downloading the latest commit, and see if you still experience the problem.

Actually, come to think of it, you can't close Xcode without it asking you to quit the currently-running application first. Are you force-quitting Xcode, or what?

yas375 commented 12 years ago

Ohh, sorry, I figured that you've told about the latest version of xcode) I will check it a little later today or tomorrow.

fabiopelosin commented 12 years ago

I think that @yas375 is using the binary from the downloads section, which is outdated. Anyway, as far I'm concerned, we don't need the last version of Xcode.

jwilling commented 12 years ago

@irrationalfab Yeah, that's not what I meant. ;) And now come to think of it, when you mention he's using the binary it all makes sense. He's not building from the source – he's talking about opening his own project and then closing it. D'oh.

yas375 commented 12 years ago

yep) I used just compiled binary of Ikeda)

yas375 commented 12 years ago

I'm trying to recheck this issue, but couldn't build project( I got an error that MacRuby/MacRuby.h couldn't be found.

I did next steps for installation:

  1. clone repo
  2. run git submodule update --init --recursive, but it wasn't needed because there are no submodules
  3. run pod install --no-doc
  4. open CocoaPodsApp.xcworkspace
  5. Trying to build

Did I missed something?

Could using of RVM be a problem?

jwilling commented 12 years ago

You need to install MacRuby before it will install properly.

fabiopelosin commented 12 years ago

Even if you have installed it, there might be also an issue with recents versions of Xcode and the MacRuby installer. If I recall correctly it is fixed in the by a search path of the project. @yas375 let me know if that is not the case.

alloy commented 12 years ago

@irrationalfab Probably best to vendor the latest nightly build and add the vendor dir to the FRAMEWORK_SEARCH_PATHS flag (which you mean).

alloy commented 12 years ago

Actually, let me do that in a minute. Need to wait for a deploy to finish anyways :)

alloy commented 12 years ago

That’s probably not a good idea after all, the framework is a bit too big to add to the repo imo.

yas375 commented 12 years ago

Ok, I've installed macruby 0.12. Than I've created an archive of CocoaPodsApp. Open it in finder, open packages content, found app and run it!

After that I have opened in xcode my iOS project (workspace) with cocoapods. And in CocoaPodsApp I've press 'install' and got next error:

usage: dirname path
/Users/yas/Library/Developer/Xcode/Archives/2012-09-27/CocoaPodsApp 27.09.12, 9.46.xcarchive/Products/Applications/CocoaPodsApp.app/Contents/MacOS/pod: line 29: /Users/yas/ruby: No such file or directory
/Users/yas/Library/Developer/Xcode/Archives/2012-09-27/CocoaPodsApp 27.09.12, 9.46.xcarchive/Products/Applications/CocoaPodsApp.app/Contents/MacOS/pod: line 29: exec: /Users/yas/ruby: cannot execute: No such file or directory

What I've missed? )

fabiopelosin commented 12 years ago

Apparently for some reason my bash wrapper is failing. Maybe it is due to the spaces in the path. Can you try to copy the executable in the desktop and run in from there?

yas375 commented 12 years ago

Success! I've recheck this issue and it's gone! =)