Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Ticket #41 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

v0.23 IDE crushes when cutting selection, while doing serach

Reported by: Anonymous Assigned to: sagitario
Priority: major Component: Language Service
Version: 0.3.23 Keywords:
Cc: dmitry.olsh@gmail.com

Description

The problem manifests itself when I do the following:
1. I continiously serach string in the document, the I patch it by hand (not closing search window, here and later).
2. I encounter a big chunk of code to replace, so I select it and try ctrl+x.
3. Boom!
Not sure if anything of below is of use:

Problem Event Name: APPCRASH
Application Name: devenv.exe
Application Version: 10.0.30319.1
Application Timestamp: 4ba1fab3
Fault Module Name: visuald.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Code: c0000005
Exception Offset: 00108f31
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 1049

Change History

04/17/11 11:01:32 changed by dolsh

  • cc set to dmitry.olsh@gmail.com.

(follow-up: ↓ 3 ) 04/17/11 17:43:58 changed by sagitario

  • status changed from new to assigned.

Is this using the "Search/Replace Token dialog" or the standard search? What do you mean by big chunk? Several lines, hundreds, thousands?

I'm not able to reproduce this, but maybe there have been fixes since the latest release. You might want to try VisualD-v0.3.24rc3.exe from the download folder.

If the crash still happens, a crash dump would be helpfull. The way to create it is described in this forum topic http://www.dsource.org/forums/viewtopic.php?t=5420

(in reply to: ↑ 2 ) 04/19/11 13:48:37 changed by Anonymous

Replying to sagitario:

Is this using the "Search/Replace Token dialog" or the standard search? What do you mean by big chunk? Several lines, hundreds, thousands?

Actually it has nothing to do with Search/Replace, it appears to happen at certain times when I cut any multiline section of code.

I'm not able to reproduce this, but maybe there have been fixes since the latest release. You might want to try VisualD-v0.3.24rc3.exe from the download folder.

I'll give it a try.

04/29/11 14:19:23 changed by sagitario

Is the crash gone with rc3/rc4?

04/29/11 17:06:01 changed by Anonymous

It's not, well at least it happens rarely. It's very strange and unstable thing.
It seems to be related to the fact that file is opened in another editor. Sorry, I'll make a dump if get stable crush again.

04/29/11 17:34:13 changed by Anonymous

Damn, I think I got it! Sorry for the extra noise, the dump is here:
http://dl.dropbox.com/u/7100999/devenv_110429_211620.dmp

The recipe to crush: open this file (it's patched regex.d):
http://dl.dropbox.com/u/7100999/regex.d
select a couple of lines right in first comments and delete them by presssing delete.

I'm using rc3 at the moment and visual studio 2010. I doesn't happens with some files, but with this and some others from phobos.

(follow-up: ↓ 8 ) 04/29/11 19:04:53 changed by sagitario

Thanks for the dump. Unfortunately it does not give a lot of information. It just crashes in VisualD, but the rest of the callstack is referencing memory not provided by the dump.

Please try rc4, it contains a refactoring of the browse info, that relied on std.json so far and seemed a bit dangerous with all it's unions (and unnecessary complicated and slow). This info is also used during idle times, so if it is corrupt, it might have caused troubles anytime.

(in reply to: ↑ 7 ) 04/29/11 19:28:09 changed by Anonymous

Replying to sagitario:

Thanks for the dump. Unfortunately it does not give a lot of information. It just crashes in VisualD, but the rest of the callstack is referencing memory not provided by the dump.

Is there anything else I can do to help matters? I kind of like this plugin :)

Please try rc4, it contains a refactoring of the browse info, that relied on std.json so far and seemed a bit dangerous with all it's unions (and unnecessary complicated and slow). This info is also used during idle times, so if it is corrupt, it might have caused troubles anytime.

I tried rc4, same effect. I also tried removing all json files from *\Roaming\VisualD and rebuilding browse info, still no visible change in behaviour.

04/30/11 06:53:26 changed by sagitario

I finally reproduced the crash (should have tried on another system earlier), and once visible in the debugger it was an easy fix. I don't know why this crash didn't happen all the time...

I've uploaded a new rc: http://www.dsource.org/projects/visuald/browser/downloads/VisualD-v0.3.24rc5.exe

04/30/11 20:07:17 changed by dolsh

I just tried it, all green :) Thanks for the fast fix!

05/08/11 09:03:29 changed by sagitario

  • status changed from assigned to closed.
  • resolution set to fixed.

released in v0.3.24