![]() |
#1 |
Junior Member
Join Date: Dec 2016
Posts: 8
|
Compile Error 12345
Hi All--
I'm running into this compile error. From what I've read, it has to do with files above 2 gig. I'm seeing it in NSIS 2.50 when running a powershell script from Jenkins. If I run the powershell script directly, my installer compiles. It also sometimes works with Jenkins when I delete the project directory from the machine that's running my powershell script. It's choking on a 52MB file: code: There's plenty of space on the machine; it's a machine running windows 2012R2 server. Any ideas? |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
|
Did you post a similar question on Stackoverflow?
Does it have enough free space on the drive where %temp% is? IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Dec 2016
Posts: 8
|
Yeah I did. I wasn't sure if it's an NSIS problem or a Jenkins or PowerShell problem. I'm using NSIS 2.50 (can't upgrade to 3.0). My temp directory's on a drive with 44 GB free. First thing I checked was the disk space. I've seen this happen when a build machine gets too full. Sadly that's not it.
|
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
|
On stackoverflow you did not even include the full error message!
Anyway, I'm guessing CreateFile or CreateFileMapping are failing but I don't know why. Do you know if Jenkins uses job objects to limit the processes it starts? Might be a memory/address space limit, not a filesystem limit. If I build a special 3.0 version for you with extra debug output, will you be able to test it? IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Dec 2016
Posts: 8
|
Sorry about not posting the full error message. I was getting a bit frazzled yesterday and in my haste to post... well, you know.
I'm not sure about Jenkins and Job Objects. I'd be happy to look at a debug version. Could it be a permissions problem? I'm not sure that's it but I'm grasping at straws trying to figure this all out. |
![]() |
![]() |
![]() |
#6 | |
Senior Member
Join Date: Apr 2009
Location: Bulgaria
Posts: 192
|
Hi,
I'm getting the same problem. I use the last release version of NSIS - 3.01. The compiled installer's executable up to now was about 1,2GBs. No I added some more files and I expect to have a size about 3GBs. But during the compilation I get the following error: Quote:
How can I solve the problem? |
|
![]() |
![]() |
![]() |
#7 | |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
|
Quote:
The 2GiB limit is still there, use https://sourceforge.net/projects/nsisbi/ for larger files. IntOp $PostCount $PostCount + 1 |
|
![]() |
![]() |
![]() |
#8 |
Junior Member
Join Date: Dec 2016
Posts: 8
|
|
![]() |
![]() |
![]() |
#9 | |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
|
Quote:
--- Does the problem occur with just PHP Code:
IntOp $PostCount $PostCount + 1 |
|
![]() |
![]() |
![]() |
#10 |
Junior Member
Join Date: Dec 2016
Posts: 8
|
Still happens with that really basic NSI:
code: |
![]() |
![]() |
![]() |
#11 |
Junior Member
Join Date: Dec 2016
Posts: 8
|
AHA!
I figured out the issue. Somewhere buried deep in the Jenkins config, the Temp directory was getting overridden to a place on a D: drive. There is no D: on this system. Thanks for your help, Anders. CDG |
![]() |
![]() |
![]() |
#12 | |
Senior Member
Join Date: Apr 2009
Location: Bulgaria
Posts: 192
|
Quote:
I made another test too. I compiled another very small installer. It was running with the original release of NSIS 3.01. But compiled with this compiler, it behaves in the same way. It closes after the language selection dialog. Any ideas what I'm doing wrong? |
|
![]() |
![]() |
![]() |
#13 | |
Senior Member
Join Date: Apr 2009
Location: Bulgaria
Posts: 192
|
I found the reason that my installer exits after the language selection. It is caused from my macro that checks if the installer was already started once. I don't know why it doesn't work now, but I will investigate it.
Meantime I saw another problem the bitmaps on the left side of some pages (for example on Welcome page) is missing. I had my own bitmaps, set until now like this: Quote:
|
|
![]() |
![]() |
![]() |
#14 | |
Senior Member
Join Date: Apr 2009
Location: Bulgaria
Posts: 192
|
Some additional information about my first problem. My macro uses the following code:
Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
|
?e puts error on stack on you are popping it into $0 where you tried to store the return value. And this is not related to the original problem, stop hijacking threads.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#16 |
Senior Member
Join Date: Apr 2009
Location: Bulgaria
Posts: 192
|
Thank you for the answer and sorry for the hijacking of the thread.
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|