« Return to Thread: Stack overflow using PdfWriter

Re: Stack overflow using PdfWriter

by Gylfi Ingvason :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
Thank you guys.
 
The job runs to completion with 8 MB of stack using PdfSmarCopy. It still dies with 16 MB using PdfWriter. I've now increased the stack to 80 MB and the job is still cooking.
 
I was aware of the need to bump the stack for large operations, but when you go beyond 20 MB of stack space when processing 200 MB of data, then, in my opinion, something is not right. Keeping a tree balanced should not require that much stack. For my job, we're talking roughly 35,000 pages, which is quite a bit, but not astronomical by any standards. I may experiment with increasing the branch size from 10 to a 100 and see if that makes a difference, but to me, this sounds like a bug, and if fixed, it will likely also increase processing speed dramatically for large files.
 
Gylfi
 

From: Adrian Rotaru [mailto:adrian.rotaru@...]
Sent: Tuesday, June 23, 2009 3:47 AM
To: Post all your questions about iTextSharp here
Subject: Re: [itextsharp-questions] Stack overflow using PdfWriter

I also had to increase the stack size to make it work..
 
Adrian
 
 
 
----- Original Message -----
From: fhtino@...
To: Gylfi.Ingvason@... ; itextsharp-questions@...
Sent: Tuesday, June 23, 2009 10:38 AM
Subject: Re: [itextsharp-questions] Stack overflow using PdfWriter

I had the same problem. My environment was IIS6 but it's the same problem.
The only solution I found was increasing the stack size of the process/thread.


http://sourceforge.net/mailarchive/forum.php?thread_name=2433d6a90804080219u3c60cf17k8ab46345950764f6@...&forum_name=itextsharp-questions


http://fhtino.blogspot.com/2008/04/iis6-stackoverflow.html


   fabrizio



On Mon, Jun 22, 2009 at 9:55 PM, Gylfi Ingvason <Gylfi.Ingvason@...> wrote:
I'm getting a stack overflow error when concatenating a bunch of files using
PdfWriter. This occurs in Tree.cs (/trunk/src/coreSystem/util/Collections)
where the private Insert member appears to get into a state where it calls
itself recursively until an exception occurs.
........


------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org


_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

 « Return to Thread: Stack overflow using PdfWriter