Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

This plugin can result in xcode Infinite loop #3

Open
yushuyi opened this issue Oct 20, 2013 · 37 comments
Open

This plugin can result in xcode Infinite loop #3

yushuyi opened this issue Oct 20, 2013 · 37 comments

Comments

@yushuyi
Copy link

yushuyi commented Oct 20, 2013

after Infinite loop only Forced out

@nek023
Copy link
Owner

nek023 commented Oct 20, 2013

Thank you for your report, but I need further details to solve the problem.

@EliSchleifer
Copy link

I can reproduce this problem as well. I have never debugged a plugin. If you have some quick notes on how to achieve that I can try to dig in.

@nek023
Copy link
Owner

nek023 commented Oct 25, 2013

OK, debugging Xcode plug-in is very easy. Just run it :)

But before that, you have to open scheme settings,
http://gyazo.com/f3845bc5c9aa39e0863a93a36b751754

And confirm that Xcode.app is specified as an executable.
http://gyazo.com/0d42787a7cf7a94e4f2476ef08a27930

@ehlersd
Copy link

ehlersd commented Oct 29, 2013

I can report that it is happening on my Xcode5 project also. When the project is opened, it opens up, and then just sits there running at 100% CPU indefinitely.

@SpacyRicochet
Copy link
Contributor

This happens here as well. Seems like a RegEx search starts running on infinite. Could debug this when I have more time.

@pdiegmann
Copy link

Any Update on this issue? (As I'm experiencing it as well).
Thank you for this great idea :)

@osrl
Copy link

osrl commented Jan 11, 2014

I'm experiencing this issue too, Any update @questbeat ?

@nek023
Copy link
Owner

nek023 commented Jan 12, 2014

Sorry, not yet.
I haven't experienced this problem, so it's difficult for me to figure out.

@osrl
Copy link

osrl commented Jan 12, 2014

Any help we can provide? I needed to uninstall the plugin, and i want it back :)

@nek023
Copy link
Owner

nek023 commented Jan 12, 2014

Thank you.
Would you please tell me about your project environment that the problem occurs? (e.g. the number of localization)
And I also want a screenshot. (Xcode message, Log, or something...)

@osrl
Copy link

osrl commented Jan 14, 2014

There is no crash log, XCode freezes. can't click anything, cpu is running on %100, Not responding. Here is a screenshot:
screen shot 2014-01-14 at 21 05 29

And the localizations:
screen shot 2014-01-14 at 21 16 27

I know that's hard to tell what's wrong. Please tell me if you need any more information

@kdbdallas
Copy link

Same here.
It takes Xcode to its knees and basically makes it unusable (if you want to get anything done)

@vbGoz
Copy link

vbGoz commented Jan 16, 2014

I am experiencing the same issue.

@nek023
Copy link
Owner

nek023 commented Jan 16, 2014

OK, thanks for report.
But I have no time to work on this issue right now... (I have to write my thesis.)
So please remove this plug-in and wait for future updates.

@osrl
Copy link

osrl commented Jan 16, 2014

We already did remove :( good luck with your thesis

@orkenstein
Copy link

The same to me. Very annoying! Pls fix it

@Maik639
Copy link

Maik639 commented Feb 18, 2014

Found the problem.
Here is a quick and dirty fix: http://pastebin.com/71pdnJw9

@vbGoz
Copy link

vbGoz commented Feb 18, 2014

@Maik639 I tried your fix but it didn't fix the issue for me.

@Maik639
Copy link

Maik639 commented Feb 18, 2014

May you have an other framework and not google maps? or your project has to big .string files? You can debug that piece of code to finde the problem.

@avioli
Copy link

avioli commented Feb 19, 2014

I've experienced the same issue and what @Maik639 suggested to do did the trick for me. I'm using the Google Maps framework and that was probably hogging XCode.

@vbGoz
Copy link

vbGoz commented Feb 24, 2014

I debugged and figured out that it was HockeySDK for me. To be more specific hu.strings file of HockeySDK.

@Vasia89
Copy link

Vasia89 commented Mar 3, 2014

Hello.

This plugin is something incredible. It is so easy and so useful. Every one must have.

But, i could not open some xcode projects (even when this plugin is turned off). I am using XCode 5.
I will attach crash report so you can look where is a problem: https://www.dropbox.com/s/8fqstlkcr2jbe85/Xcode_2014-03-03-120235_MacBook-Pro-Volodymyr.hang

Regards,
Vasyl.

@joelekstrom
Copy link

Just wanted to say I have the same problem. Could be because of lib localizations. For example we have Helpshift in our project which adds a lot of localization files.

@Vasia89
Copy link

Vasia89 commented Mar 3, 2014

Yes, you are right @accatyyc. My project used localized third party libraries.

But, i think when i turn off plugin it would not work any more. But is seems that it still works. The only way is force close xcode and remove this plugin, and later put it plugin back. This is annoying :(

Anyway, thanks developers for the works, and this product.

@Maik639
Copy link

Maik639 commented Mar 3, 2014

You can have a look at my fix, i posted a few days ago. It should help you to get it working.

@nielscastle
Copy link

A naïve quick fix is available here #12 that skips all files located below folders ending in ".framework". It would be great if someone would try it out so we can provide some feedback to @questbeat

@joelekstrom
Copy link

@nielscastle That solves it for some probably, but it should also skip Pods-folder I guess, since that's the problem for me at least. That might not be good though, if some pod is supposed to supply localized strings, for example.

@nielscastle
Copy link

@accatyyc - roger that. I hadn't thought of developers working with the localisations from within the frameworks or libraries. I'll look in to why poking around the framework hangs the plug-in.

@nek023
Copy link
Owner

nek023 commented Mar 4, 2014

I will start working on this issue today.
Sorry for inconvenience and my lazy, everyone.

@nek023
Copy link
Owner

nek023 commented Mar 4, 2014

Are there any 3rd-party frameworks or libraries to reproduce this issue on my project?

@avioli
Copy link

avioli commented Mar 4, 2014

Google Maps SDK hangs it for me. https://developers.google.com/maps/documentation/ios/
I would suggest a preferences/options dialog for adding exclusion patterns for paths.
Or some kind of timeout mechanism. Since there might be a huge project that requires a lot of time to process.

@nek023
Copy link
Owner

nek023 commented Mar 4, 2014

Thanks.

@nek023
Copy link
Owner

nek023 commented Mar 4, 2014

OK, I want to know what happens to your projects by applying my first fix.
I pushed to fix branch in this repository, so ... can anyone try it?

@nielscastle
Copy link

Hangs in HockeyApp with master branch

Repos/112puls/Vendor/HockeySDK-iOS/HockeySDK.embeddedframework/HockeySDK.framework/Versions/A/Resources/HockeySDKResources.bundle/ru.lproj/HockeySDK.strings

The fix branch solves the problem for me.

@nek023
Copy link
Owner

nek023 commented Mar 4, 2014

Merged fix to master.
I'll continue working on other issues and UI-improvements.

@nek023
Copy link
Owner

nek023 commented Mar 4, 2014

Please note that infinite loop problem is not fixed yet. (I'm working)

@Vasia89
Copy link

Vasia89 commented Mar 4, 2014

Sorry, for late response. Current fix works fine for me.
Thank you @questbeat.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests