History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-18390
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Eugene Pasynkov
Reporter: mattias waldau
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

100% CPU when walking through 'Find Results'

Created: 06 Aug 06 00:42   Updated: 09 Sep 06 13:31
Component/s: None
Fix Version/s: 2.0.1
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive FindUsageLockupLogs.zip (158 kb)

Issue Links:
Duplicate
 
This issue is duplicated by:
RSRP-24210 Find Usages Locks Up Blocker Closed

Build: 219
Fixed in build: 256
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=18390


 Description  « Hide
I do Alt-F7 do find all references and start going through them either by clicking or Alt-Ctrl-Down. After a few references, the CPU becomes 100% and devenv has to be killed.

I have seen this bug in several versions since 213, incl 219. I do not think I got it in 218.

It doesn't always happen, it is not repeatable.

I now got it on 219 on VS2003.

Another question: You guys at Intellij always say that you use R# yourself. Do you use VS2003 or VS2005?



 All   Comments   Work Log   Change History      Sort Order:
Eugene Pasynkov - 08 Aug 06 21:35
Re: #18390- 100% CPU when walking through 'Find Results'
Next time, please attach the debugger to the hung VS and post the stack traces of all threads with managed frame

P.S. We do use VS2005


David Sausville - 08 Aug 06 21:35
Re: #18390- 100% CPU when walking through 'Find Results'
I have to agree with Mattias on this one. I can repeat this any time I wish, in fact I have to avoid Find Usages entirely. I can not and will not move our company forward to the 2.0 release until this is resolved.

Again, I'm offering my services in trying to help isolate and correct this issue. Please let me know if there is something I can do.

Dave Sausville


mattias waldau - 08 Aug 06 21:35
Re: #18390- 100% CPU when walking through 'Find Results'
I got the same problem with 224 (on my second Ctrl-Alt-Down).

Now I know how to fix it: I start a second devenv.exe, attaches the debugger to the first process. After 1 s, the deadlock is solved and I detach.

I use VS2003.


Jan Stenberg - 08 Aug 06 21:35
Re: #18390- 100% CPU when walking through 'Find Results'
I'm running Build 246 on VS 2003. I select 'FindUsages' on an interface, I group by 'Types and Type Members' in the 'Find Results' pane and select a plus sign next to a class. This will make VS 2003 take 100% CPU. Debugging will make VS 2003 run again and the problem disappear.

> jetbrains.resharper.util.dll!JetBrains.ReSharper.Util.Concurrency.NativeManualResetEvent.WaitOne(int timeout = <has no runtime value>) Line 73 C#
jetbrains.resharper.util.dll!JetBrains.ReSharper.Util.Concurrency.ReentrantWriterPreferenceReadWriteLock.ReaderLock.Acquire() Line 133 C#
jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.UIApplicationShell.AcquireReadLock() Line 649 C#
jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.ReadLockCookie.Init() Line 39 C#
jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.ReadLockCookie.Create() Line 50 + 0xd bytes C#
jetbrains.resharper.actionmanagement.dll!JetBrains.ReSharper.ActionManagement.UpdatableAction.Update(JetBrains.ReSharper.ActionManagement.IDataContext context = {JetBrains.ReSharper.ActionManagement.DataContextImpl}) Line 66 C#
jetbrains.resharper.actionmanagement.dll!JetBrains.ReSharper.ActionManagement.ToolBarButtonWithAction.Update(JetBrains.ReSharper.ActionManagement.IDataContext dataContext = <undefined value>) Line 56 + 0xc bytes C#
jetbrains.resharper.actionmanagement.dll!JetBrains.ReSharper.ActionManagement.ToolBarWithAction.Update(JetBrains.ReSharper.ActionManagement.IDataContext dataContext = {JetBrains.ReSharper.ActionManagement.DataContextImpl}) Line 86 C#
jetbrains.resharper.actionmanagement.dll!JetBrains.ReSharper.ActionManagement.ActionManagerBase.UpdateToolbars(JetBrains.ReSharper.ActionManagement.IDataContext dataContext = {JetBrains.ReSharper.ActionManagement.DataContextImpl}) Line 196 + 0x7a bytes C#
jetbrains.vsaddin.dll!JetBrains.VSAddin.ActionManagement.VSActionManager.UpdateVisible() Line 450 C#
jetbrains.resharper.actionmanagement.dll!JetBrains.ReSharper.ActionManagement.ActionManagerBase.OnTimer() Line 168 C#
jetbrains.resharper.shell.dll!JetBrains.ReSharper.Util.Alarm.OnTimer(System.Object sender = <undefined value>, System.EventArgs e = <undefined value>) Line 202 + 0xd bytes C#
[<Non-user Code>]


David Sausville - 08 Aug 06 21:35
Re: #18390- 100% CPU when walking through 'Find Results'
Here are the log files from three different lockups as a result of using the FindUsage dialog. Log files A-C are from build 245. Log files D-E is from build 247. The log files do not change once the lockup has occurred, i.e. the do not grow in size.

In all cases, I am pretty sure that the node which was clicked on corresponded to a file which was not open. And when VisStudio is locked up, the file still doesn't show as open.

In the case of log file D, I was trying to open the file Lava.DataSources.Options.MarketData.OptionsMarketDataDataLayerPlugin. There are no references to that file at the end of the log file.

When I am successfully able to click on a node, an +OnAfterFirstDocumentLock corresponding to the file being opened appears immediately after the logged info for FindUsage.


David Sausville - 08 Aug 06 21:35
Re: #18390- 100% CPU when walking through 'Find Results'
Mattias - Are you on a multiprocessor box?

Dmitry - I still haven't had a chance to do WinDbg for you guys. I'm trying to get my on project out the door right now.