← Back to team overview

hugin-devs team mailing list archive

[Bug 761231] Re: Image cache memory can't be set above 2047MB

 

wxWidgets stores long integers in the Windows Registry as DWORD keys
that are 32-bit unsigned integers. Hugin was reading these as signed
integers, so anything above 2047 was read as negative and displayed as
1; values above 2047 were properly saved, just displayed incorrectly. I
committed a fix for this.

However, there is a new limit at 4095 MB due to an incompatibility
between how Hugin saves this setting and the Windows registry. While
Windows 2000 and later supports QWORD keys that are 64-bit integers,
wxWidgets does not support these, leaving only 32-bit DWORD keys. Hugin
shifts the setting's value left 20 bits before saving it, causing a
DWORD, or a 32-bit unsigned integer, to rollover back to 0 for any
values above 4095, preventing the use of more the 4GB of memory for
image cache. This could be resolved by shifting the value when it is
read instead of when it is saved, but this would break all existing
settings.

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/761231

Title:
  Image cache memory can't be set above 2047MB

Status in Hugin - Panorama Tools GUI:
  Confirmed

Bug description:
  
  When setting the image cache memory (file/preferences/general) to any value above 2047MB it resets to 1MB.

  If I then click cancel, it does not stay at 2047, but goes ahead and
  sets the cache to 1MB.

  Windows 7 64 bit, AMD Phenom II 6 core  1100T, 8GB RAM
  Hugin 2011.0.0.8f1447ab8649


Follow ups

References