Skip to content

Creating a new script crashes latest 64-bit Notepad++ release #64

@rdipardo

Description

@rdipardo

Steps to reproduce

  1. Install any recent 64-bit build of Notepad++
  2. Install CS-Script (1.7.26) from the menu at Plugins > Plugins Admin
  3. After N++ reloads, open the CS-Script project panel
  4. Select "Create new script"
  5. When the "New Script Name" dialog appears, click OK:

cs-script

  1. N++ becomes unresponsive and crashes
  2. Check the Windows Event Viewer for something like this:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
      <Provider Name=".NET Runtime" />
      <EventID Qualifiers="0">1026</EventID>
      <Version>0</Version>
      <Level>2</Level>
      <Task>0</Task>
      <Opcode>0</Opcode>
      <Keywords>0x80000000000000</Keywords>
      <TimeCreated SystemTime="2022-02-01T12:18:38.5097359Z" />
      <EventRecordID>19526</EventRecordID>
      <Correlation />
      <Execution ProcessID="12456" ThreadID="0" />
      <Channel>Application</Channel>
      <Computer>AcerNotebook</Computer>
      <Security />
    </System>
    <EventData>
      <Data>
      Application: notepad++.exe
      Framework Version: v4.0.30319
      Description: The process was terminated due to an unhandled exception.
      Exception Info: exception code c0000005, exception address 00007FF6775AEFFF
      Stack: at Kbg.NppPluginNET.PluginInfrastructure.Win32.SendMessage(IntPtr, UInt32, IntPtr, IntPtr)
      at Kbg.NppPluginNET.PluginInfrastructure.Win32.SendMessage(IntPtr, UInt32, IntPtr, IntPtr)
      at Kbg.NppPluginNET.PluginInfrastructure.ScintillaGateway.GetTextRange(Kbg.NppPluginNET.PluginInfrastructure.TextRange)
      at CSScriptIntellisense.NppExtensions.GetTextBetween(Kbg.NppPluginNET.PluginInfrastructure.ScintillaGateway, Int32, Int32)
      at CSScriptNpp.CodeMapPanel.RefreshContent()
      at CSScriptNpp.Plugin.OnCurrentFileChanged()
      at CSScriptNpp.UnmanagedExports.beNotified(IntPtr)
      at Kbg.NppPluginNET.UnmanagedExports.beNotified(IntPtr)
      at Kbg.NppPluginNET.PluginInfrastructure.Win32.SendMessage(IntPtr, UInt32, IntPtr, System.String)
      at Kbg.NppPluginNET.PluginInfrastructure.Win32.SendMessage(IntPtr, UInt32, IntPtr, System.String)
      at CSScriptNpp.ProjectPanel.newBtn_Click(System.Object, System.EventArgs)
      at System.Windows.Forms.ToolStripItem.RaiseEvent(System.Object, System.EventArgs)
      at System.Windows.Forms.ToolStripButton.OnClick(System.EventArgs)
      at System.Windows.Forms.ToolStripItem.HandleClick(System.EventArgs)
      at System.Windows.Forms.ToolStripItem.HandleMouseUp(System.Windows.Forms.MouseEventArgs)
      at System.Windows.Forms.ToolStrip.OnMouseUp(System.Windows.Forms.MouseEventArgs)
      at System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)
      at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
      at System.Windows.Forms.ToolStrip.WndProc(System.Windows.Forms.Message ByRef)
      at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
      </Data>
    </EventData>
</Event>
Notepad++ v8.2.2   (64-bit)
Build time : Jan 31 2022 - 14:21:55
Path : C:\Users\Rob\Downloads\dev\npp_8.2.2_rc5\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 11 (64-bit) 
OS Version : 2009
OS Build : 22000.469
Current ANSI codepage : 65001
Plugins : CSScriptNpp.dll mimeTools.dll NppConverter.dll NppExport.dll 

Also reported upstream at kbilsted/NotepadPlusPlusPluginPack.Net#84

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions