FreeImage File Handling 4.5.60

Started by WAS, August 02, 2021, 10:45:38 PM

Previous topic - Next topic

WAS

This dll is continually crashing with files over 2gb. No longer the previous error, just a new one. I don't know what it could be, I thought maybe it was RAM (like the file was ballooning in TG) but it loads the files filesize into RAM that I can see on the performance monitor, then it just crashes when it goes to actually make the shader (you can see focus go to the node network)

Only thing relevant it seems to mention is Malwarebytes, but not sure why. Update on that, I checked malwarebytes too and I had already added the planetside folder to the exception list to not scan or block, so even stranger.

Log Name:      Application
Source:        Application Error
Date:          8/1/2021 2:03:18 PM
Event ID:      1000
Task Category: (100)
Level:        Error
Keywords:      Classic
User:          N/A
Computer:      SKYNET-MASTER
Description:
Faulting application name: mbamtray.exe, version: 4.0.0.1033, time stamp: 0x60da1b8e
Faulting module name: Qt5Widgets.dll, version: 5.14.1.0, time stamp: 0x60397aaf
Exception code: 0xc0000005
Fault offset: 0x000000000003e451
Faulting process id: 0x298
Faulting application start time: 0x01d7832bee858ab4
Faulting application path: C:\Program Files\Malwarebytes\Anti-Malware\mbamtray.exe
Faulting module path: C:\Program Files\Malwarebytes\Anti-Malware\Qt5Widgets.dll
Report Id: 11a33fb1-9afb-487e-b627-f7237b8bd6ef
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>100</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-08-01T21:03:18.2851791Z" />
    <EventRecordID>41113</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>SKYNET-MASTER</Computer>
    <Security />
  </System>
  <EventData>
    <Data>mbamtray.exe</Data>
    <Data>4.0.0.1033</Data>
    <Data>60da1b8e</Data>
    <Data>Qt5Widgets.dll</Data>
    <Data>5.14.1.0</Data>
    <Data>60397aaf</Data>
    <Data>c0000005</Data>
    <Data>000000000003e451</Data>
    <Data>298</Data>
    <Data>01d7832bee858ab4</Data>
    <Data>C:\Program Files\Malwarebytes\Anti-Malware\mbamtray.exe</Data>
    <Data>C:\Program Files\Malwarebytes\Anti-Malware\Qt5Widgets.dll</Data>
    <Data>11a33fb1-9afb-487e-b627-f7237b8bd6ef</Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

WAS

PPS The files I am trying to load is a cloud map I composited from various TG renders at 2.3gb, and then the 10.6 GB Mars_HRSC_MOLA_BlendDEM_Global_200mp_v2.tif

At idle I am sitting at 9GB (damn windows, if I have 4-8gb of RAM it uses 3.5gb, but if I have 16gb+ it uses 8-9gb), on 32gb, so I should have room to load these files, and TG seems to load them into RAM under limit (by 10gb for the Mars one).

WAS

Uninstalled Malwarebytes and tried a fresh boot (with limited services to save more RAM), and still same issue. Still crashes, and loosing memory to a leak (natural for a crash).

Log Name:      Application
Source:        Application Error
Date:          8/2/2021 8:17:43 PM
Event ID:      1000
Task Category: (100)
Level:        Error
Keywords:      Classic
User:          N/A
Computer:      SKYNET-MASTER
Description:
Faulting application name: tgd.exe, version: 4.5.60.0, time stamp: 0x60f87eec
Faulting module name: FreeImage.dll, version: 3.15.4.0, time stamp: 0x524b8262
Exception code: 0xc0000005
Fault offset: 0x000000000002fb97
Faulting process id: 0x3c1c
Faulting application start time: 0x01d78816002807e1
Faulting application path: C:\Program Files\Planetside Software\Terragen 4\tgd.exe
Faulting module path: C:\Program Files\Planetside Software\Terragen 4\FreeImage.dll
Report Id: 01f326fe-3a9b-4436-8029-768271600a08
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>100</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-08-03T03:17:43.4067109Z" />
    <EventRecordID>41324</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>SKYNET-MASTER</Computer>
    <Security />
  </System>
  <EventData>
    <Data>tgd.exe</Data>
    <Data>4.5.60.0</Data>
    <Data>60f87eec</Data>
    <Data>FreeImage.dll</Data>
    <Data>3.15.4.0</Data>
    <Data>524b8262</Data>
    <Data>c0000005</Data>
    <Data>000000000002fb97</Data>
    <Data>3c1c</Data>
    <Data>01d78816002807e1</Data>
    <Data>C:\Program Files\Planetside Software\Terragen 4\tgd.exe</Data>
    <Data>C:\Program Files\Planetside Software\Terragen 4\FreeImage.dll</Data>
    <Data>01f326fe-3a9b-4436-8029-768271600a08</Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

Matt

Assuming the TIF is compressed, the uncompressed image will use a lot more RAM than just 10.6 gigs. Do you know what size it is uncompressed?
Just because milk is white doesn't mean that clouds are made of milk.

WAS

#4
Ill check in Affinity Photo. It can load it no problem. Like I said though, I watched it fill up in RAM with 10gb to spare, and than TG focuses to the shader network like its about to drop a node, then crashes.

Update: the mars map does appear to be compressed, and opening up into all my RAM in IrfanView. Affinity Photo must have some caching of what's actually on screen or something. Though 30gb down to 10gb seems extreme for what TIF compression can do. Maybe it downloaded wrong this time around. I did recently delete it cause I had a space issue. I can't really tell if it's corrupted as the range of the file makes it so I can't see anything.

Matt

The number of bytes in RAM is
width * height * bits_per_pixel / 8

Maybe there is an issue with FreeImage, but it could just be that Terragen or FreeImage is failing to allocate a contiguous chunk of memory that large.
Just because milk is white doesn't mean that clouds are made of milk.

WAS

I think you're right. I think I am seeing the "filesize" in RAM because, naturally, it is loading that file up, but it then needs to decompress it. And as you said, from what I'm reading it requires a contiguous chunk of RAM. No scratch tricks will work. Least for TIFF files. Not sure what's special about them. ASCII objects and other images seem to split up fine into disk which is why I never had much problems with this in the past. I've only recently started using massive TIFFs.

I just need more RAM. Terragen is fine. Lol