danswano
Posts: 11
Joined: Fri Oct 05, 2012 4:20 pm

LZMA2 Best Compression Issue

Hello, i've came across the problem posted here http://www.advancedinstaller.com/forums ... =2&t=18546
No matter what memory i use i still get the error, i've set it to 40 G.B Minimum and still getting the error and i have 12 G.B Pysical.

all other lower compression levels like "Good" or lower are working fine, my problem is just the "Best"

What the heck this" LZMA Best" needs of virtual memory?

Note: using the same Dictionary/Word size (64 M.B each) in 7-zip works fine, why not in Advanced Installer?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: LZMA2 Best Compression Issue

Hello,

Advanced Installer is currently a 32-bit process and has a limited memory address space (3 GB user memory). Also, LZMA compression needs continuous available virtual memory (approximately equal to 11 times the dictionary size).
In large Advanced Installer project types, editing the project will further fragment the available virtual memory address space (a related recommendation would be to build immediately after opening the project).
using the same Dictionary/Word size (64 M.B each) in 7-zip works fine, why not in Advanced Installer?
This could happen for various reasons:
-> 7-zip is a 64-bit process
-> if it's a 32-bit process the program still doesn't have any other memory consumption like Advanced Installer does

We also have making Advanced Installer a 64-bit process on our TODO list.

The meanwhile recommended workaround is to use a custom level and decrease the dictionary size value to a power of two that works.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
danswano
Posts: 11
Joined: Fri Oct 05, 2012 4:20 pm

Re: LZMA2 Best Compression Issue

Thanks for the clarification.

Return to “Building Installers”