Internal error: "System.OutOfMemoryException"

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
ryan
Propeller Head
Posts: 59
Joined: Thu Dec 11, 2008 10:51 am

Internal error: "System.OutOfMemoryException"

Post by ryan »

I received this while compiling word output and the conversion failed. This is the only message in the log.

I have a 150g hd and only using 35g.

Anyone else getting this? I'll submit a ticket if noone knows what this is or how to solve it.

Thanks
Richard Ferrell
Propellus Maximus
Posts: 840
Joined: Mon May 01, 2006 10:11 am
Location: Inside California

Re: Internal error: "System.OutOfMemoryException"

Post by Richard Ferrell »

Have you updated to Flare 4.1.4? If you have, I would open a support ticket :flare:
Richard Ferrell

Certified Madcap Trainer
Image
ryan
Propeller Head
Posts: 59
Joined: Thu Dec 11, 2008 10:51 am

Re: Internal error: "System.OutOfMemoryException"

Post by ryan »

Ticket submitted. I will post update.
DurtyMat
Sr. Propeller Head
Posts: 224
Joined: Wed Aug 22, 2007 8:09 am
Location: ClrH2o, Fl

Re: Internal error: "System.OutOfMemoryException"

Post by DurtyMat »

Does your documentation have a lot of images, specifically GIF files? We were having a similar issue with a very large project that had a lot of images and the support team came back with a "bug" in Flare that was causing it to use too much memory when dealing with lots of GIF files .... they suggested changing the GIF files to JPEGs and replacing them in the project and trying that ...

(we havent yet, cause the holidays kinda slow things down)
Flare: I bought it ... so that means I can break it, right?
Cinnamon
Sr. Propeller Head
Posts: 125
Joined: Wed Sep 10, 2008 8:42 am

Re: Internal error: "System.OutOfMemoryException"

Post by Cinnamon »

Hi folks
I'm experiencing problems compiling PDF output.
My target compiles the first time I compile it after opening Flare V5, however get the error message each time I try to compile after that. I need to close and reopen Flare each time I want to compile this output.
Things are fine until Flare gets to one topic that contains 10 images. Each image is large, I've resized them using Capture so that the printed version is smaller and have also set up thumbnails for the online help output.
I appreciate that I've loaded this topic and that I've probably pushed things too far.
I used to have the images in separate topics and that worked fine, but I'd prefer to work with them all together.
I have a couple of ideas, but I'm not sure which would offer the most effective solution:
  • * spilt the graphics into more than one topic?
    * save the original graphics as smaller images?
    * remove the thumbnail settings?
    * something else?
I'm using the latest version of Flare and .NET.
Could you please let me know if you have any thoughts on this?
Many thanks

Suze
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: Internal error: "System.OutOfMemoryException"

Post by Andrew »

I would think the simplest approach -- all other things being equal -- would be to reduce the resolution (DPI) on the images, if possible. Reducing the resolution should theoretically reduce the pixel pushing that has to happen, or at least reduce the size of the image handling. Other things you could do would be to change image types (GIF or BMP to PNG or JPG, etc.).

*However*, I don't see how 10 pictures could cause an out of memory exception, unless those pictures are *huge* or you have very little virtual memory on the system (or something is sucking up all the virtual memory you have). I've compiled print topics (in 4.2; I don't have 5) that contain dozens of fairly large images (in my case, usually PNG images).
Flare v6.1 | Capture 4.0.0
Cinnamon
Sr. Propeller Head
Posts: 125
Joined: Wed Sep 10, 2008 8:42 am

Re: Internal error: "System.OutOfMemoryException"

Post by Cinnamon »

Hi
Thanks Andrew
I've had a more detailed look. The images are around 45KB, so not that big. However, the accompanying MadCap Capture PROPS files are almost 47,000 KB each.
I think maybe that's where the problem may lie. Do you think it's worth me redoing the PROPS files or is this size not uncommon?
Thanks

Suze
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: Internal error: "System.OutOfMemoryException"

Post by Andrew »

I can't say how common that is, because I only have my own projects to go on. My .props files are typically about 3-5 times larger than my graphics (the largest .props files I have is on the order of 500 KB).

The only explanation I can think of is that your print versions (I believe the .props file contains the "original" image as part of the file) have a very high resolution.

As a way to test, you could back up your .props files, and then remove them. At least that would tell you if the size of the .props files (or, at least, something about the .props files) is causing the problem.
Flare v6.1 | Capture 4.0.0
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: Internal error: "System.OutOfMemoryException"

Post by KevinDAmery »

The PROPS are probably the culprit. Like Andrew, I don't have any PROPS files here that are much above 600 KB. 47 MB would suggest either that you've captured an area the size of a billboard :shock: or that there is an enormous amount of callouts and other added elements in there. Or they could have been corrupted in some way.
Until next time....
Image
Kevin Amery
Certified MAD for Flare
SteveS
Senior Propellus Maximus
Posts: 2090
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Internal error: "System.OutOfMemoryException"

Post by SteveS »

I'd be very tempted to open the .props file with a text editior and see what it contains.

My .props files are typically a few lines of text about properties relating to image manipulation - crop size, callouts and so on.

Given the image isaved is the image after the manipulation, I wonder if you are cropping large areas out to get the final image?

HTH

Steve
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: Internal error: "System.OutOfMemoryException"

Post by Andrew »

SteveS wrote:My .props files are typically a few lines of text about properties relating to image manipulation - crop size, callouts and so on.
Do yours also contain the original image (inside an <OriginalImage> element)? That's what blows up the size, typically -- it's a tiff file stored as character data. That data is what enables Capture to edit non-destructively.
Flare v6.1 | Capture 4.0.0
SteveS
Senior Propellus Maximus
Posts: 2090
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Internal error: "System.OutOfMemoryException"

Post by SteveS »

Andrew wrote:Do yours also contain the original image (inside an <OriginalImage> element)? That's what blows up the size, typically -- it's a tiff file stored as character data. That data is what enables Capture to edit non-destructively.
You're absolutiely right - the props file contains the original image.
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
ryan
Propeller Head
Posts: 59
Joined: Thu Dec 11, 2008 10:51 am

Re: Internal error: "System.OutOfMemoryException"

Post by ryan »

Im having this problem again a year later. Is there an image size limit for Flare? I'm wondering why this application limitation is not acknowledged or disclosed, or if its a bug why its not fixed yet...
SteveS
Senior Propellus Maximus
Posts: 2090
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Internal error: "System.OutOfMemoryException"

Post by SteveS »

Are you still using the same machine?

I noticed it is a memory size exception, so your hard drive will have little direct impact (unless we get into a discussion about virtual memory).

You can try freeing system resources by closing down uneeded applications running in the background.

HTH
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
Post Reply