Menu

#1136 Special build crash

2.0 Series
open
nobody
None
5
2016-02-23
2016-02-23
Ripunjay
No

Hi. I am new to NSIS development. I need to create an installer for my product that is capable of logging as well as supports large strings i.e. both the special builds features to be available in a single build. I was able to generate new stubs and makensis.exe using the below command:
scons NSIS_MAX_STRLEN=8192 NSIS_CONFIG_LOG=yes PREFIX=C:\NSISBuild install-compiler install-stubs

But when trying to build my nsi files, the makensisw.exe is crashing. I am attaching the screenshot for your reference.
We are on version 2.46 now and do not plan to upgrade unless this issue was already addressed in higher versions.
Please suggest how to get this resolved.

1 Attachments

Discussion

  • Anders

    Anders - 2016-02-23

    I see you are using UMUI, is there any way you can post a example that does not use 3rd-party components and still reproduces the problem?

    My initial guess is that this is a stack overflow. NSIS 3 reduced the stack usage required by !insertmacro and you could try to backport this back to 2.46, take a look at https://sourceforge.net/p/nsis/code/6306/

     
    • Ripunjay

      Ripunjay - 2016-04-26

      Thank you very much. Using NSIS 3.0b3 works well for my case. Since this is a beta version, we have concerns adapting this version for our end users. Is NSIS 3 changes available in any stable release?
      Also, by 'backport', do you mean to update the build.h and Script.cpp files in 2.46 with the changes you shared?
      Thanks,
      Ripunjay

       
      • Anders

        Anders - 2016-04-27

        Yes, by backport I mean update NSIS v2.5x with the changes from that patch. You probably have to modify it a little bit to make it work. You probably need to change TCHAR to char etc.

        NSIS 3 is close to a stable release so you can probably just upgrade to NSIS 3rc1 at this point...

         

Log in to post a comment.