Resharper 1.5, 2.0 Problems

I'm having the same problems with both the latest 1.5 release and the latest 2.0 beta release in VS.NET 2003. When accessing the Resharper options or performing any action which results in something being "drawn" in the IDE (for example, ctrlN to display the navigate to type dialog, or ctrlspace to bring up intellisense), I get lots of pop-ups with "Invalid Operation Exception - object is in use elsewhere". This seems to only happen on very large solutions (> 50 projects). Also, when I have a C# file open, the bar to the right of the scroll-bar that usually displays tick-marks for errors/warnings in the file does not render correctly. It contains garbage when I first open a file. If I drag another window over it to force a redraw, it sometimes corrects itself, but only temporarily.

I have tried uninstalling and reinstalling Resharper (both versions), resetting all my shortcuts, deleting everything I can find on my computer that contains "Resharper" or "Jetbrains", deleting solution option files (.suo's), yet the problems persist. Any suggestions?

8 comments
Comment actions Permalink

Hello Matt,

I guess the problem is related to insufficient amount of memory available
for ReSharper to
paint its UI properly. Have you submitted the exceptions you're talking about?
You
may post a strack trace here, and we'll check if this hypothesis is true.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I'm having the same problems with both the latest 1.5 release and the
latest 2.0 beta release in VS.NET 2003. When accessing the Resharper
options or performing any action which results in something being
"drawn" in the IDE (for example, ctrl+N to display the navigate to
type dialog, or ctrl+space to bring up intellisense), I get lots of
pop-ups with "Invalid Operation Exception - object is in use
elsewhere". This seems to only happen on very large solutions (> 50
projects). Also, when I have a C# file open, the bar to the right of
the scroll-bar that usually displays tick-marks for errors/warnings in
the file does not render correctly. It contains garbage when I first
open a file. If I drag another window over it to force a redraw, it
sometimes corrects itself, but only temporarily.

I have tried uninstalling and reinstalling Resharper (both versions),
resetting all my shortcuts, deleting everything I can find on my
computer that contains "Resharper" or "Jetbrains", deleting solution
option files (.suo's), yet the problems persist. Any suggestions?



0
Comment actions Permalink

Sorry it took me so long to get back to this thread, I've been out of town and then on vacation.

Unfortunately I don't get a print-out of the stack trace, I just get a message box with a red 'X' and the text "Invalid Operation Exception - object is in use elsewhere." I do not think it's a memory issue. VS.NET is only using 1.2 gigs of RAM, and there's still over 700 megs of physical memory free.

Strangely, this error does not occur if I connect to my workstation remotely via Remote Desktop and use Visual Studio that way.

I'm also unable to reproduce the problem on any other project except this massive one with 60 projects. When I have that project open, even opening the Resharper options menu causes constant "Invalid Operation Exception" pop-ups. With Resharper uninstalled, I don't get any errors from VS.NET and am able to use everything normally.

0
Comment actions Permalink

I wasn't able to get an exception via the options menu, but ctrl+N (after failing with the same "Invalid Operation Exception" message box) finally gave me a window that included a stack trace of the exception:

System.InvalidOperationException: The object is currently in use elsewhere.
at System.Drawing.Image.get_Width()
at JetBrains.UI.Components.RichTextListBox.RichTextItemPainter.CalculateOffset(Object item)
at JetBrains.UI.Components.RichTextListBox.RichTextItemPainter.GetSize(Object item, Graphics g)
at ReSharper.ListForm.ShowList(IListItemDescriptor[] list, Boolean dontShow) in C:\TEMP\tmp7FBA.tmp\Release1.0\src\ReSharper\actionsUI\ListForm.cs:line 570

0
Comment actions Permalink

Hello Matt,

the symptoms you're describing point that the problem occurs
somewhere in a painting code and the exception gets intercepted
by the Visual Studio error handler.

If it doesn't trouble you too much, could you please run the VS with
ReSharper disabled on the project you're observeing the problem on, then
attach the debugger, set break on any managed exception and then
enable ReSharper and repeat the actions causing the exception. This way
you'll hopefully break into the debugger and be able to see the stack
trace.

Thank you in advance.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Sorry it took me so long to get back to this thread, I've been out of
town and then on vacation.

Unfortunately I don't get a print-out of the stack trace, I just get a
message box with a red 'X' and the text "Invalid Operation Exception -
object is in use elsewhere." I do not think it's a memory issue.
VS.NET is only using 1.2 gigs of RAM, and there's still over 700 megs
of physical memory free.

Strangely, this error does not occur if I connect to my workstation
remotely via Remote Desktop and use Visual Studio that way.

I'm also unable to reproduce the problem on any other project except
this massive one with 60 projects. When I have that project open,
even opening the Resharper options menu causes constant "Invalid
Operation Exception" pop-ups. With Resharper uninstalled, I don't get
any errors from VS.NET and am able to use everything normally.



0
Comment actions Permalink

Hello Matt,

thanks for this information. I've submitted this exception to our tracker.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I wasn't able to get an exception via the options menu, but ctrl+N
(after failing with the same "Invalid Operation Exception" message
box) finally gave me a window that included a stack trace of the
exception:

System.InvalidOperationException: The object is currently in use
elsewhere.
at System.Drawing.Image.get_Width()
at
JetBrains.UI.Components.RichTextListBox.RichTextItemPainter.CalculateO
ffset(Object item)
at
JetBrains.UI.Components.RichTextListBox.RichTextItemPainter.GetSize(Ob
ject item, Graphics g)
at ReSharper.ListForm.ShowList(IListItemDescriptor[] list, Boolean
dontShow) in
C:\TEMP\tmp7FBA.tmp\Release1.0\src\ReSharper\actionsUI\ListForm.cs:lin
e 570



0
Comment actions Permalink

I have exactly that problem. It occures since I've installed Resharper 1.5. I've uninstalled it now, but the problem persists.

Did you ever find a solution?

Regards
Claudio

0
Comment actions Permalink

Hello Claudio,

could you please specify in more detail how the problem reveals itself for
you? Thanks.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I have exactly that problem. It occures since I've installed Resharper
1.5. I've uninstalled it now, but the problem persists.

Did you ever find a solution?

Regards
Claudio



0
Comment actions Permalink

Visual studio works fine and also the win forms designer works fine and then suddenly, the error messages (the same message as described above) are starting to popup, every time I use intellisense, or want to do something in the designer, etc.. After killing Visual Studio and restarting it again, it works fine for some time and then suddenly the problem appears again. I think always connected with changing into the win forms designer.
I've uninstalled Resharper now and the problem persists. So I'm not sure that Resharper really is the problem. First I had installed version 2 and then went back to 1.5 for other reasons. It appeared with both versions installed.
But it may really well be that it hoes nothing to do with Resharper.

Regards
Claudio

0

Please sign in to leave a comment.