Author Topic: WM2.3 Release Candidate: Wrong estimated memory required or an export bug?  (Read 3216 times)

0 Members and 1 Guest are viewing this topic.

Takulas

  • World Machine Veteran
  • ***
  • Posts: 40
    • View Profile
Hi,
I tried to export a 36K pixels heightmap and even though I have 64GB RAM on my system I wasn`t able to do that. The estimated required memory is less than the amount memory I have installed but it still gives me the message that there`s not enough memory. In task manager it shows even less memory used than the estimated one. Isn`t possible to save a 36K heightmap with 50GB free memory left on my system? Or is it a bug?
Thanks.

Remnant

  • Author
  • World Machine Guru
  • *****
  • Posts: 2311
    • View Profile
    • http://www.world-machine.com/
Hi there,

Although these are large world sizes, you have the memory, so there should not be any obvious reason it won't work.

What format are you exporting? There might be a format specific bug in the file exporter.
-- Stephen Schmitt
- Creator of World Machine

Takulas

  • World Machine Veteran
  • ***
  • Posts: 40
    • View Profile
I tried only16 bit .png file format so far. I`ll try all the other ones and I`ll let you know.

Remnant

  • Author
  • World Machine Guru
  • *****
  • Posts: 2311
    • View Profile
    • http://www.world-machine.com/
I believe there might indeed have been a bug in a temporary buffer allocation within the png writer for very large (larger than signed integer size) areas.

I have fixed this bug and it will roll into the next RC/final. A quick look through the other formats didn't reveal any similar issues; you should be able to export as a TIFF for example, in the interim.

-- Stephen Schmitt
- Creator of World Machine

tv033

  • World Machine Veteran
  • ***
  • Posts: 15
    • View Profile
Hi, is this fixed? I tried exporting a 16 bit png and I ran into an out of memory error, however a 16 bit .tif export works fine, so that leads me to believe this bug is still not fixed. Unless something else is going on. I have 16GB of ram and my page file max is set to 24,xxx (should it be larger?)

I am using a 16385 x 16385 resolution. Thanks!

Remnant

  • Author
  • World Machine Guru
  • *****
  • Posts: 2311
    • View Profile
    • http://www.world-machine.com/
Hi there,

For clarification, are you exporting a bitmap or a heightfield?

EDIT: I've confirmed there is a bug in the PNG bitmap exporter for sizes that exceed 32bit integer size. This will be fixed shortly. Height field export is unaffected.

« Last Edit: November 13, 2013, 07:24:21 PM by Remnant »
-- Stephen Schmitt
- Creator of World Machine

tv033

  • World Machine Veteran
  • ***
  • Posts: 15
    • View Profile
It was indeed a bitmap output. Great to see you already have a handle on the issue!