Bug 318791 (MONO75870) - MonoDevelop crashes on auto-completion
Summary: MonoDevelop crashes on auto-completion
Status: RESOLVED FIXED
Alias: MONO75870
Product: MonoDevelop
Classification: Mono
Component: texteditor (show other bugs)
Version: unspecified
Hardware: Other Debian Woody
: P3 - Medium : Blocker
Target Milestone: ---
Assignee: MD Bugs
QA Contact: MD Bugs
URL:
Whiteboard:
Keywords: easy_fix
Depends on:
Blocks:
 
Reported: 2005-08-21 10:10 UTC by Andre Medeiros
Modified: 2007-09-15 21:23 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:28:05 UTC


---- Reported by andre.caum@gmail.com 2005-08-21 03:10:00 MST ----

Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:
MonoDevelop crashes because of the autocompletion feature. 

Steps to reproduce the problem:
1. Create a new C# file
2. Type the following code (yeah, you actually have to type it):

----------8<----------
using System;
public class Foobar {
    public Foobar() {
        if(var ==
----------8<----------
3. Press Ctrl+Space after the "==" for autocompletion.

Actual Results:
Unhandled Exception: System.IndexOutOfRangeException: Array index is out of
range.
in <0x0000f>
MonoDevelop.SourceEditor.CodeCompletion.CompletionListWindow:GetText (Int32 n)
in <0x000b3>
MonoDevelop.SourceEditor.CodeCompletion.ListWindow:get_IsUniqueMatch ()
in <0x000fd>
MonoDevelop.SourceEditor.CodeCompletion.CompletionListWindow:ShowWindow
(Char firstChar, TextIter trigIter, ICompletionDataProvider provider,
MonoDevelop.SourceEditor.Gui.SourceEditorView ctrl)
in <0x002a3>
MonoDevelop.SourceEditor.Gui.SourceEditorView:TriggerCodeComplete ()
in <0x001f3>
MonoDevelop.SourceEditor.Gui.SourceEditorView:ProcessPressEvent
(Gdk.EventKey evnt)
in <0x0002e> MonoDevelop.SourceEditor.Gui.SourceEditorView:OnKeyPressEvent
(Gdk.EventKey evnt)
in <0x00059> Gtk.Widget:keypressevent_cb (IntPtr widget, IntPtr evnt)
in (wrapper native-to-managed) Gtk.Widget:keypressevent_cb (intptr,intptr)
in <0x00000> <unknown method>
in (wrapper managed-to-native) Gtk.Application:gtk_main ()
in <0x00007> Gtk.Application:Run ()
in <0x0048a> MonoDevelop.Commands.StartWorkbenchCommand:Run ()
in <0x00a7e> MonoDevelop.SharpDevelopMain:Main (System.String[] args)

Expected Results:
Dropdown with autocompletion hints

How often does this happen? 
Always

Additional Information:



---- Additional Comments From andre.caum@gmail.com 2005-08-21 03:20:25 MST ----

*** https://bugzilla.novell.com/show_bug.cgi?id=MONO75759 has been marked as a duplicate of this bug. ***



---- Additional Comments From lluis@ximian.com 2005-09-22 07:13:19 MST ----

I can't reproduce this exception. In any case, exceptions thrown while
displaying the completion window are now catched, so this crash should
not happen any more.


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Debian Sid Unstable</cf_op_sys_details>