• Login
Community
  • Login

Notepad++ v8.5.5 Release

Scheduled Pinned Locked Moved Announcements
17 Posts 8 Posters 10.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    Fruchtzwerg94
    last edited by Fruchtzwerg94 Aug 13, 2023, 8:30 PM Aug 13, 2023, 8:29 PM

    Hi @donho ,

    I am facing an interesting problem after upgrading Notepad++ to the latest version. It is related to the change of commit ‘Enable optimization flags & CET’.
    To break it down: Due to the change

    <CETCompat>true</CETCompat>
    

    plugins may cause a crash if they catch an exception internally. I am clearly able to reproduce this with my PlantUMLViewer plugin. During its initialization, it catches an IOEcxception. Due the CETCOMPAT feature enabled, Notepad++ detects this as a violation and stops without any further information.

    More details about the feature:

    • Developer Guidance for Hardware-enforced Stack Protection
    • /guard:ehcont (Enable EH Continuation Metadata)

    I was not able to find a better solution yet than disabling CETCOMPAT for the Notepad++ build. I assume other plugins could be affected as well here.
    Do you have an idea how to deal with this? Maybe its better to disable the feature again?

    G 1 Reply Last reply Aug 14, 2023, 5:34 AM Reply Quote 2
    • G
      Guido Thelen @Fruchtzwerg94
      last edited by Guido Thelen Aug 14, 2023, 5:45 AM Aug 14, 2023, 5:34 AM

      @Fruchtzwerg94 Hello, With N++ 8.5.5 I have been facing also problems with my SQLinForm Plugin 64 bit version https://community.notepad-plus-plus.org/topic/24810/sqlinform-x64-crashes-with-n-8-5-5 . The plugin crashes without any specific error message. Could you please show me how I can find out if the SQLinForm Problem is also related to CETCOMPAT Flag. Can I myself change the CETCOMPAT Flag?

      Many thenks
      Guido

      R 1 Reply Last reply Aug 14, 2023, 8:52 AM Reply Quote 1
      • R
        rdipardo @Guido Thelen
        last edited by Aug 14, 2023, 8:52 AM

        @Guido-Thelen said in Notepad++ v8.5.5 Release:

        Can I myself change the CETCOMPAT Flag?

        If you’re running Windows 11, you can try this:

        • Start the Run dialog: ⊞ (Windows key) + R. Enter windowsdefender: and click “OK”
        • From the left-hand menu, click “App & browser control”
        • In the “Exploit protection” section, click Exploit protection settings
        • Select the “Program settings” tab
        • Click “+ Add program to customize” and choose an option, “program name” or “exact path”
        • Depending on your choice, enter Notepad++ in the input box, or navigate to the notepad++.exe file in the explorer
        • In the menu that appears, find “Validate exception chains (SEHOP)”, choose “Override system settings” and slide the radio button to “Off”

        win_defendx900.png

        You should do the same for “Control Flow Guard (CFG)” and “Validate heap integrity”, but I would apply all overrides one-by-one to pin down which is effective, if any.

        If @Fruchtzwerg94 is right and the issue really is Control Enhancement (CET), then Win 11 users are more likely to encounter it, as the comments on this related GitHub issue suggest. Exploit mitigation features like CET are enabled by default on Win 11, whereas Win 10 users have to manually activate them. Hardened security was, after all, the main selling point of the new OS.

        G 1 Reply Last reply Aug 14, 2023, 10:01 AM Reply Quote 3
        • G
          Guido Thelen @rdipardo
          last edited by Aug 14, 2023, 10:01 AM

          @rdipardo Many thanks for these instructions.

          I first was able to reproduce the crash from the 64bit SQLinForm Plugin together with N++ 8.5.5 , which has been reported by a plugin user, on my Desktop PC (Windows 11) in my office.

          Now I am in holiday with my Notebook (Windows 11) and can’t reproduce the error anymore.

          So, I think I first should be able to reproduce the crash on my Notebook and then in a seconde step try to make it working again using your instructions.

          D 1 Reply Last reply Aug 14, 2023, 2:44 PM Reply Quote 0
          • D
            donho @Guido Thelen
            last edited by Aug 14, 2023, 2:44 PM

            @Guido-Thelen @Fruchtzwerg94
            I can reproduce the crash of v8.5.5 with both SQLinForm & PlantUMLViewer. The crash seems to be remedy with <CETCompat>false</CETCompat>.

            I have just pushed a new commit which fixes plugin crash into master here:
            https://github.com/notepad-plus-plus/notepad-plus-plus/commit/c45d7aca75211434651745059647f4c29bac7ec6

            Please let me know if it fixes your problem.

            F G 2 Replies Last reply Aug 14, 2023, 5:21 PM Reply Quote 3
            • F
              Fruchtzwerg94 @donho
              last edited by Aug 14, 2023, 5:21 PM

              Hi @donho ,
              I can confirm this fixes it for me.
              Great to see that issues can be fixed so fast. Thanks @donho , @rdipardo and @Guido-Thelen for the great discussion and fix.
              BR, Philipp

              G 1 Reply Last reply Aug 14, 2023, 5:56 PM Reply Quote 4
              • G
                Guido Thelen @Fruchtzwerg94
                last edited by Guido Thelen Aug 14, 2023, 6:03 PM Aug 14, 2023, 5:56 PM

                @Fruchtzwerg94 @donho ,
                great that there is a fix!!

                But I am in holiday for 2 weeks and took my Notebook with me and I am not able to reproduce the issue on my Notebook (Windows 11) . Therefore I can’t unfortunately confirm that the fix does the trick.

                But once the new exe is available for download I can ask the SQLinForm Plugin User, who reported the issue, to inform me about the results.

                When will the new exe be available for public download?

                1 Reply Last reply Reply Quote 1
                • S
                  shridhar singh
                  last edited by Aug 15, 2023, 1:50 AM

                  Notepad++ v8.5.5 does not open at all for me. A terminal window flashes, but after that nothing and no new process running. I uninstalled v8.5.5 and reinstalled v8.5.4, and notepad++ runs just fine. Has anyone else experienced this?

                  F 1 Reply Last reply Aug 15, 2023, 7:02 AM Reply Quote 0
                  • F
                    Fruchtzwerg94 @shridhar singh
                    last edited by Aug 15, 2023, 7:02 AM

                    @shridhar-singh Yes, this is most propably related to the discussion above. You can try to remove some plugins to the one who is responsible for that or just wait for the next Notepad++ release which fixes it.

                    A 1 Reply Last reply Mar 26, 2024, 5:59 PM Reply Quote 1
                    • S
                      ShinobiWarrior
                      last edited by ShinobiWarrior Aug 15, 2023, 8:27 AM Aug 15, 2023, 8:22 AM

                      Is this the right place to report on a possible application incompatibility after the Version 8.5.5 update?

                      I’ve done quite extensive debug testing and troubleshooting on an issue which arose after 8.5.5.

                      In short, Notepad++ simply won’t visibly open when being opened from another application which uses VFS (Virtual File System). I say “visibly” because when looking at debug logs, the program seems to open before closing or crashing right after.

                      Downgrading to 8.5.4 fixes the incompatibility issue.

                      Kindly let me know if you’d like me to share my more extensive troubleshooting, thanks!

                      1 Reply Last reply Reply Quote 0
                      • D donho unpinned this topic on Aug 15, 2023, 3:01 PM
                      • D
                        donho @donho
                        last edited by Aug 15, 2023, 4:06 PM

                        FYI, v8.5.6 is released:
                        https://community.notepad-plus-plus.org/topic/24825/notepad-v8-5-6-release

                        1 Reply Last reply Reply Quote 1
                        • G
                          Guido Thelen @donho
                          last edited by Aug 15, 2023, 4:54 PM

                          @donho @Fruchtzwerg94 I can confirm that the bug has been fixed in version 8.5.6!
                          Thx!

                          1 Reply Last reply Reply Quote 1
                          • S
                            ShinobiWarrior
                            last edited by Aug 16, 2023, 12:43 AM

                            I can confirm updating to 8.5.6 fixed my issue!

                            1 Reply Last reply Reply Quote 2
                            • A
                              A Notepad++ User @Fruchtzwerg94
                              last edited by Mar 26, 2024, 5:59 PM

                              @Fruchtzwerg94 said in Notepad++ v8.5.5 :

                              @shridhar-singh Yes, this is most propably related to the discussion above. You can try to remove some plugins to the one who is responsible for that or just wait for the next Notepad++ release which fixes it.

                              in my windows 10, last version fixed this problem. you can upgrade to notepad.

                              1 Reply Last reply Reply Quote -1
                              • PeterJonesP PeterJones locked this topic on Jun 29, 2024, 3:31 PM
                              • First post
                                Last post
                              The Community of users of the Notepad++ text editor.
                              Powered by NodeBB | Contributors