jn-npp-plugin icon indicating copy to clipboard operation
jn-npp-plugin copied to clipboard

An exception occured: Access violation

Open Nightwing0815 opened this issue 4 years ago • 25 comments

Hi,

just installed the plugin and get following error: 1

Notepad++ v7.9.1 (64-bit) Build time : Nov 2 2020 - 01:07:46 Path : C:\Program Files\Notepad++\notepad++.exe Admin mode : ON Local Conf mode : OFF OS Name : Windows 7 Ultimate (64-bit) OS Build : 7601.0 Current ANSI codepage : 1252 Plugins : CodeAlignmentNpp.dll ComparePlugin.dll DSpellCheck.dll jN.dll JSMinNPP.dll mimeTools.dll NppConverter.dll NppEditorConfig.dll NppExport.dll What needs to be done?

THX in advance,

ToM

Nightwing0815 avatar Feb 09 '21 20:02 Nightwing0815

It could be an incompatibility with some of other plugins. Can you try to uninstall other plugins, one by one!

sieukrem avatar Feb 09 '21 20:02 sieukrem

Of course. At least deinstalled all plugins, except this one, the error is still there. I'll try it on my office PC later today...

ToM

Nightwing0815 avatar Feb 10 '21 09:02 Nightwing0815

Which version of jN?

sieukrem avatar Feb 10 '21 11:02 sieukrem

Notepad++ v7.9 (64-bit) Build time : Sep 22 2020 - 03:19:04 Path : C:\Program Files\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : OFF OS Name : Windows 10 Pro for Workstations (64-bit) OS Version : 1909 OS Build : 18363.959 Current ANSI codepage : 1252 Plugins : CodeAlignmentNpp.dll 14.1.107 ComparePlugin.dll 2.0.1 DSpellCheck.dll 1.4.17 NppEditorConfig.dll 0.4 jN.dll 2.2.185.6 NPPJSONViewer.dll 1.40 mimeTools.dll 2.5 NppExport.dll 0.2.9

On my office computer, there's no error. So I'll post you later the same from my home pc...

ToM

Nightwing0815 avatar Feb 10 '21 16:02 Nightwing0815

A bit late, but here it comes :-)

Notepad++ v7.9.1 (64-bit) Build time : Nov 2 2020 - 01:07:46 Path : C:\Program Files\Notepad++\notepad++.exe Admin mode : ON Local Conf mode : OFF OS Name : Windows 7 Ultimate (64-bit) OS Build : 7601.0 Current ANSI codepage : 1252 Plugins : CodeAlignmentNpp.dll 14.1.107 ComparePlugin.dll 2.0.1 DSpellCheck.dll 1.4.19 MarkdownViewerPlusPlus.dll 0.8.2 mimeTools.dll 2.5 nppConverter.dll 4.2.1 NppEditorConfig.dll 0.4 NppExport.dll 0.2.9 NPPJSONViewer.dll 4.2.1 jN.dll 2.2.185.6

Settings from my home pc, where the error occures...

ToM

Nightwing0815 avatar Feb 11 '21 16:02 Nightwing0815

The only one thing I see is the Npp version. And you still have other plugins in your environment

sieukrem avatar Feb 11 '21 17:02 sieukrem

So I tried out v7.9.1 in my environment, no crash. Please try to remove plugins. Pluginmanger does not offer installation of codealignmentnpp Nppjsonviewer So I can not check them. For security reasons I do not want to install plugins which are listed in pm.

sieukrem avatar Feb 11 '21 17:02 sieukrem

And you still have other plugins in your environment

This is an interesting fact... Let me look, reinstall, delete all data on weekend, just arrived home from work...

ToM

Nightwing0815 avatar Feb 11 '21 20:02 Nightwing0815

Okay, just ran a few setups: complete deinstall, reinstall --> nothing changed. Loaded the portable version, same... So i think, this might be a problem with my win7x64 installation @ home pc, cause on win10x64 on my work pc, everything is fine. I'd say, let's wait to an update from npp, or do you have another idea?

ToM

Nightwing0815 avatar Feb 13 '21 01:02 Nightwing0815

You can check if there is crash dump. Usually npp creates one in npps root directory. If you find one then attach it to request

sieukrem avatar Feb 13 '21 06:02 sieukrem

@Nightwing0815, do have any progress?

sieukrem avatar Mar 22 '21 07:03 sieukrem

No, a crash dump wasn't there, so i had no chance for further investigation. I just deinstalled it, cause i haven't the time, to dig deeper...

ToM

Nightwing0815 avatar Mar 24 '21 04:03 Nightwing0815

Hello there I can confirm that I have the same problem with the latest versions of npp and jN:


Plugin Exception

An exception occurred due to plugin: jN.dll Exception reason: Access violation

OK

I also tried everything including uninstall, reinstall, update, removing everyother plugin,... I guess it's something related to windows 7? Here's the debugging info:

Notepad++ v8.4.5 (32-bit) Build time : Sep 3 2022 - 03:56:37 Path : C:\Program Files (x86)\Notepad++_8.4.5\notepad++.exe Command Line : Admin mode : ON Local Conf mode : OFF Cloud Config : OFF OS Name : Windows 7 Ultimate (64-bit) OS Build : 7601.0 Current ANSI codepage : 1256 Plugins : jN (2.2.185.8) mimeTools (2.8) NppConverter (4.4) NppExport (0.4)

Kpax7 avatar Sep 16 '22 21:09 Kpax7

Same here, with version 8.4.5 32-bit. Installed plugins:

  • DSpellCheck 1.4.6
  • jN Notepad++ Plugin 2.2.185.6
  • MIME Tools 2.8
  • Converter 4.4
  • NppExport 0.4

yerpj avatar Sep 28 '22 15:09 yerpj

It is again windows 7.

  1. Can you please look for a dump file?
  2. Which action do you do so that it crashes?
  3. Can you uninstall other plugins?

sieukrem avatar Sep 28 '22 19:09 sieukrem

Thanks for the reply. Windows 7 is still widely used and works well with other things

  1. Yeah I looked at npp installation folder and no dump is created automatically, as @Nightwing0815 has already stated earlier.

No, a crash dump wasn't there, so i had no chance for further investigation. I just deinstalled it, cause i haven't the time, to dig deeper...

ToM

  1. There is no particular action. If you just install the plugin from the plugin admin or manually through copying it to the plugins folder, you get the error message upon the npp startup.

  2. I totally uninstalled every other plugin. No luck. Uninstalled every plugin including jN and installed jN again. No luck.

Is there any debug/verbouse mode or error log in notepad++ to see what is actually happening? Is there any dependency that has been added to the jN in the 2021 versions that may be lacking in Windows 7 installations?

Kpax7 avatar Sep 29 '22 00:09 Kpax7

It is again windows 7.

By the way, I am experiencing that error on Windows 10 Enterprise (10.0.18363)

Could it be related to the 32-bit version? My Notepad++ is 32-bit

yerpj avatar Sep 29 '22 05:09 yerpj

I have this problem, I think it's related to highlight, when I double click the file attached in random places the error appear. Specially the line 204 in "addFlowTowerTest". dump attached.

CalibrationShapes.zip NppDump.zip

onolox avatar Mar 23 '23 13:03 onolox

@onolox thanks for the dump file and example file. Sadly I can't reproduce the issue with 7.9.5. I will try later with yours 8.4.2.

The stack of dump file starts and ends in scripting engine, so I can't see the code of jN causing the problem.

sieukrem avatar Mar 23 '23 15:03 sieukrem

@onolox I have built plugin with debug symbols, so that I can see more details in the dump file. Can you please try out following builds x64 x86 and then upload the dump file

sieukrem avatar Mar 23 '23 17:03 sieukrem

I tried installing notepad++ v8.5 and intalling the plugins again, and bring the configs, no exception is happening now.

onolox avatar Mar 23 '23 19:03 onolox

Please check if exception occures with this build x64 x86

sieukrem avatar Mar 23 '23 19:03 sieukrem

Alright! No more errors! n++ x86. I saw that you have increased the size of the icons in the bar too!

onolox avatar Mar 23 '23 19:03 onolox

Just a bit too late for me, I don't use windows any more :-) Sadly, there's no npp for Linux...

ToM

Nightwing0815 avatar Mar 23 '23 20:03 Nightwing0815