PyCharm 1.1 Hanging at startup (OSX)

Every time I start PyCharm 1.1, it displays the UI and then begins updating the Python indexes (I believe that's what it's doing) and becomes unresponsive. It displays a progress panel for a few seconds, then that goes away and is replaced by a half-visable popup about "indexing project files" in the lower right corner of the UI. A force quit is then required. This is repeatable. PyCharm 1.0 still runs fine.

Any ideas?

I have attached the log files...



Attachment(s):
PyCharmLogs.zip
15 comments
Comment actions Permalink

I am having this same issue with 1.5.3 in Win7.

I love a lot of features and I'm considering buying it but having to wait 5 minutes before it's usable upon start-up is a deal breaker. And I'm using a quad core machine with 8gb of ram.

Why does it have to index the same directory so often?

Kevin

0
Comment actions Permalink

Hello Kevin,

First of all, please check the list of paths in Settings | Python Interpreters

and make sure that it doesn't contain any excessively broad directory specifications,

such as your entire home directory. Indexing a reasonable size project does

not take 5 minutes on a fast machine.

Second, PyCharm rebuilds indexes only if it wasn't closed properly, or if

it encountered an internal error, or if you upgrade to a new version. The

reason for rebuilding indexes is always written to the log file.

I am having this same issue with 1.5.3 in Win7.

I love a lot of features and I'm considering buying it but having to

wait 5 minutes before it's usable upon start-up is a deal breaker. And

I'm using a quad core machine with 8gb of ram.

Why does it have to index the same directory so often?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Comment actions Permalink

I had already edited that setting but I checked and made sure. I only have my python27 directories in there. I removed the python31 directories.

The indexing took about 4 minutes according to the logs (see below). I could see it checking the project directory in addition to the python27 directory. The project is very small actually. I had just upgraded but it didn't re-index until the second time I started pycharm after the upgrade. The log clearly shows that.

...

2011-07-15 01:20:38,416 [   8621]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 6221 ms

2011-07-15 01:20:39,801 [  10006]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 4749 ms

2011-07-15 01:20:39,801 [  10006]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 30968 files to update

2011-07-15 01:20:41,986 [  12191]   INFO - rains.python.sdk.PythonSdkType - Refreshing skeletons for C:/Python27/python.exe

2011-07-15 01:22:17,623 [ 107828]   INFO - python.sdk.PySkeletonRefresher - Skeleton for pyHook._cpyHook

2011-07-15 01:22:18,348 [ 108553]   INFO - python.sdk.PySkeletonRefresher - Skeleton for Lib.site-packages.scipy.lib.lapack.flapack

2011-07-15 01:22:18,784 [ 108989]   INFO - python.sdk.PySkeletonRefresher - Skeleton for bson._cbson

...

It then says that it finished but starts again a few seconds later. The initial indexing took about 4 minutes. I couldn't determine what it thought was a reason to re-index.

...

2011-07-15 01:24:00,274 [ 210479]   INFO - python.sdk.PySkeletonRefresher - Skeleton for Lib.site-packages.scipy.spatial.ckdtree

2011-07-15 01:24:00,570 [ 210775]   INFO - python.sdk.PySkeletonRefresher - Skeleton for Lib.site-packages.win32.win32transaction

2011-07-15 01:24:00,788 [ 210993]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 200986 ms

2011-07-15 01:24:00,789 [ 210994]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 200987 ms

2011-07-15 01:24:01,125 [ 211330]   INFO - python.sdk.PySkeletonRefresher - Skeleton for bluetooth._msbt

2011-07-15 01:24:01,660 [ 211865]   INFO - python.sdk.PySkeletonRefresher - Skeleton for Lib.site-packages.win32.win32cred

2011-07-15 01:24:01,920 [ 212125]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 1125 ms

2011-07-15 01:24:01,920 [ 212125]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 1 files to update

2011-07-15 01:24:01,939 [ 212144]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 19 ms

2011-07-15 01:24:01,944 [ 212149]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 24 ms

...

I haven't experienced it since but I will wait and evaluate it some more. There are some great features but I'm kind of a stickler on responsiveness and control. I don't really like that I can't stop the indexing. If my directory specifications were too broad I'd prefer to be able to notice that, stop it, reset my directory specifications, and have it re-index.

Thanks for the response.

Kevin



Attachment(s):
idea.log.zip
0
Comment actions Permalink

At this point I'll assume there is no answer for this.

0
Comment actions Permalink

I had a very similar problem. Brand new jetbrains install, first launch hung and I had to kill the app. After that the app would start up fine and then completely hang about 60% into 'Indexing'.. Never completed. I eventually deleted the ~/Library/Saved Application State/com.jetbrains.pycharm.savedState/ directory, and then launched the app again.. Indexing completed just fine after that.

Hope that helps.

Phill

0
Comment actions Permalink

... Spoke too soon. After my previous 'fix' I pointed PyCharm at the the python interpreter I actually wanted to use.. Indexing totally hung up at about 80% or so, had to kill it.. delete saved state (again), and relaunch. So far it looks to me like this version has serious problems. I'd love to see them fixed though. Certainly turning me into a paying customer depends on it.

Phill

0
Comment actions Permalink

Hello phill,

Please attach the contents of ~/Library/Logs/PyCharm10

I had a very similar problem. Brand new jetbrains install, first

launch hung and I had to kill the app. After that the app would start

up fine and then completely hang about 60% into 'Indexing'.. Never

completed. I eventually deleted the ~/Library/Saved Application

State/com.jetbrains.pycharm.savedState/ directory, and then launched

the app again.. Indexing completed just fine after that.

Hope that helps.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Comment actions Permalink

Here you go...



Attachment(s):
PyCharm10.zip
0
Comment actions Permalink

Hello phill,

Unfortunately the log doesn't really show where the problem is. One thing

I can suggest you to try is:

- open PyCharm without opening a project

- go to Settings | Python Interpreters

- select the interpreter that you want to use and press "Reload"

- wait for the skeleton building to complete

- open the project

Here you go...

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Comment actions Permalink

Hi Dmitry,

For the past month or so I've experienced a similar issue. I assume it started with 1.5.3 release in July as this is about when I began to notice it. I've come to expect the reindex when I install a new version but now most (but not all) restarts require a reindex. The reindex is just annoying on reboots as I usually leave pycharm running all of the time.

My python version and interpreter paths have not changed. I'm developing for app engine and have been on python v2.5 since pycharm came out. I'm running OS X 1.5.

This morning I started pycharm 3 times. The first time the index occurred but the other two it didn't. I didn't do any work in between reboots. The log shows yesterday's shutdown completed successfully. It shows today's first start ran into exceptions. The other two restarts today had no exceptions. Here are the exceptions listed during the first restart.

2011-08-28 12:39:58,594 [  15570]   INFO - stubs.SerializationManagerImpl - PersistentStringEnumerator storage corrupted /Users/scottumsted/Library/Caches/PyCharm10/index/rep.names

2011-08-28 12:39:59,986 [  16962]   INFO - ij.psi.stubs.StubUpdatingIndex - NameStorage for stubs serialization has been corrupted

2011-08-28 12:39:59,990 [  16966]   INFO - j.util.indexing.FileBasedIndex - Rebuild requested for index Stubs

The log also shows numerous other exceptions over the past couple days.

Thanks,

Scott

0
Comment actions Permalink

Hello scott,

Could you please attach the complete logs?

For the past month or so I've experienced a similar issue. I assume it

started with 1.5.3 release in July as this is about when I began to

notice it. I've come to expect the reindex when I install a new

version but now most (but not all) restarts require a reindex. The

reindex is just annoying on reboots as I usually leave pycharm running

all of the time.

My python version and interpreter paths have not changed. I'm

developing for app engine and have been on python v2.5 since pycharm

came out. I'm running OS X 1.5.

This morning I started pycharm 3 times. The first time the index

occurred but the other two it didn't. I didn't do any work in between

reboots. The log shows yesterday's shutdown completed successfully. It

shows today's first start ran into exceptions. The other two restarts

today had no exceptions. Here are the exceptions listed during the

first restart.

2011-08-28 12:39:58,594    INFO -

stubs.SerializationManagerImpl - PersistentStringEnumerator storage

corrupted /Users/scottumsted/Library/Caches/PyCharm10/index/rep.names

2011-08-28 12:39:59,986    INFO -

ij.psi.stubs.StubUpdatingIndex - NameStorage for stubs serialization

has been corrupted 2011-08-28 12:39:59,990    INFO -

j.util.indexing.FileBasedIndex - Rebuild requested for index Stubs

The log also shows numerous other exceptions over the past couple

days.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Comment actions Permalink

Here's the log.

Thanks,

Scott



Attachment(s):
idea.log.zip
0
Comment actions Permalink

Hello scott,

Please try to delete the ~/Library/Caches/PyCharm10 directory completely

and restart PyCharm.

Here's the log.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Comment actions Permalink

Thanks!

The cache is deleted. I received a nice little info box that told me the skeletons were being regenerated.

screen-capture.png



Attachment(s):
screen-capture.png
0
Comment actions Permalink

Just to piggyback on something said earlier, I have also noticed PyCharm [v2.5] hangup while undating indices. My perception is that this is due to PyCharm not properly having a configured Python interpreter. In my case, that situation occurs when I install PyCharm from my usb drive to a public library computer. Even though I install Python v3.2.3 before installing PyCharm v2.5, sometimes, PyCharm still doesn't automatically find Python. The fix is to do the following _before_ trying to open any projects:

1) If any projects are currently open, close them from File -> Close projects in current window.

2) File -> Settings

3) Under Template Project Settings, click Project Interpreter

4) if the problem I see is occurring, the Project Interpreter box in the upper right corner will say None.

5) Under that box, click on Configure Interpreters

6) In the upper right corner, click the little box with a plus sign inside it. That should display a popup window which should list your installed Python interpreter.

7) Click on that Python interpreter and wait until things settle down in the bottom half of the screen.

8) In my case, after things settle down, I see a message at the bottom indicating I need to install distribute, so I click that msg to install the distribute package.

9) After that, I see a msg indicating I need to install pip, so I click that msg to install the pip package.

10) After things settle down, I can then click Apply, wait until things settle down,then Ok.

11) That will take me back to the initial PyCharm screen. But, I then have to wait until the updating indices msg in the botton status line goes away, which should now not be a long hangup time. Wait until the indices update before trying to open any projects.

Now, all that said, hopefully JetBrain can figure out why this bug occurs and code in a fix in some future release. Because none of this should be necessary. When PyCharm is installed, it should automatically find and configure an existing Python interpreter.

0

Please sign in to leave a comment.