Regarding the error message forrtl: severe <170>: Program Exception - stack overflow.

1,860 views
Skip to first unread message

Iqbal

unread,
Jul 17, 2011, 11:43:12 PM7/17/11
to FDS and Smokeview Discussions

Hi All,

I have compiled the most recent FDS source codes (source code for
coming FDS version, FDS6). The compilation is done with some warning
messages.

I have tried to run a simulation using the compiled FDS6.exe file, the
simulation is successfully completed with the meshing of 10 cm cell
size, but when i reduced the cell size (5 cm) it was showing error
message -

forrtl: severe <170>: Program Exception - stack overflow.

However, the same file with 5 cm cell size run successfully in FDS5.

So, does anyone know that what is the problem regarding this?

Kind regards

Iqbal


Kevin

unread,
Jul 18, 2011, 7:39:06 AM7/18/11
to FDS and Smokeview Discussions
My guess is that FDS 6, as it's currently configured, is using more
RAM than 5. You need more RAM to run the case. Did you set the maximum
stacksize when you compiled?

dr_jfloyd

unread,
Jul 18, 2011, 8:47:01 AM7/18/11
to fds...@googlegroups.com
FDS 6 will require more RAM run than FDS 5.

H. M. Iqbal Mahmud

unread,
Jul 19, 2011, 6:56:18 AM7/19/11
to fds...@googlegroups.com
Hi Kevin and dr_jfloyd,
 
Thanks for your reply.
 
Would you please let  me know that how can i set the maximum stacksize when i compile the source codes of FDS6?
 
Kind regards
On Mon, Jul 18, 2011 at 6:32 PM, dr_jfloyd <drjf...@gmail.com> wrote:
FDS 6 will require more RAM run than FDS 5.

--
You received this message because you are subscribed to the Google Groups "FDS and Smokeview Discussions" group.
To view this discussion on the web visit https://groups.google.com/d/msg/fds-smv/-/YR_PQ6DNHwAJ.

To post to this group, send email to fds...@googlegroups.com.
To unsubscribe from this group, send email to fds-smv+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fds-smv?hl=en.

Kevin

unread,
Jul 19, 2011, 8:18:10 AM7/19/11
to FDS and Smokeview Discussions
What compiler and operating system are you using?

On Jul 19, 6:56 am, "H. M. Iqbal Mahmud" <hmiqbalmah...@gmail.com>
wrote:
> >http://groups.google.com/group/fds-smv?hl=en.- Hide quoted text -
>
> - Show quoted text -

H. M. Iqbal Mahmud

unread,
Jul 19, 2011, 8:21:32 PM7/19/11
to fds...@googlegroups.com
Hi Kevin,

I am using visual studio 12 for compilation and windows xp operating system.

Regards

Samara

unread,
Jul 20, 2011, 1:02:51 AM7/20/11
to FDS and Smokeview Discussions
(aka Visual Studio 2008)

Open the Properties screen in VS for the Fortran portion of the
project, then under "Linker" -> "System" change "Stack Reserve Size"
and "Stack Commit Size" to "32768000" (no quotes).

Recompile.

Samara


On Jul 20, 10:21 am, "H. M. Iqbal Mahmud" <hmiqbalmah...@gmail.com>
wrote:
> Hi Kevin,
>
> I am using visual studio 12 for compilation and windows xp operating system.
>
> Regards
>
> On 7/19/11, Kevin <mcgra...@gmail.com> wrote:
>
>
>
>
>
>
>
> > What compiler and operating system are you using?
>
> > On Jul 19, 6:56 am, "H. M. Iqbal Mahmud" <hmiqbalmah...@gmail.com>
> > wrote:
> >> Hi Kevin and dr_jfloyd,
>
> >> Thanks for your reply.
>
> >> Would you please let  me know that how can i set the maximum stacksize
> >> when i compile the source codes of FDS6?
>
> >> Kind regards
>
> >> On Mon, Jul 18, 2011 at 6:32 PM, dr_jfloyd <drjfl...@gmail.com> wrote:
> >> > FDS 6 will require more RAM run than FDS 5.
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups
> >> > "FDS and Smokeview Discussions" group.
> >> > To view this discussion on the web visit
> >> >https://groups.google.com/d/msg/fds-smv/-/YR_PQ6DNHwAJ.
>
> >> > To post to this group, send email to fds...@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> >> > fds-smv+u...@googlegroups.com.
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/fds-smv?hl=en.-Hide quoted text -

H. M. Iqbal Mahmud

unread,
Jul 20, 2011, 1:42:56 AM7/20/11
to fds...@googlegroups.com
HI Samara,

Is it you...!!! Really...!!!

I am glad to get help from you. I have set the option according to
your information and it is working now.

Thanks a lot for your kind help.

Regards

H. M. Iqbal Mahmud

unread,
Jul 20, 2011, 9:45:10 PM7/20/11
to fds...@googlegroups.com
Hi Samara,

If i want to increase the "Stack Reserve Size" and "Stack Commit Size"
then is it ok?

Because, with the stack size of 32768000, a simulation with 5 cm cell
size run successfully; but it failed when i run the same simulation
with 2.5 cm cell size.

I have tried with more stack size, but it did not show any difference.

Regards

Iqbal

dr_jfloyd

unread,
Jul 20, 2011, 10:46:43 PM7/20/11
to fds...@googlegroups.com
have you run out of memory? halving the cell size increases memory by a factor of 8,

H. M. Iqbal Mahmud

unread,
Jul 21, 2011, 12:08:08 AM7/21/11
to fds...@googlegroups.com
Hi dr_jfloyd,

Yes, you are right. When I tried to run a simulation with cell size
2.5cm, it was showing this - "Error : Memory allocation failed for DS
in the routine ITIN".

I have increased the Stack size from 32768000 to 524288000, which is
16 times. But, it did not run for cell size 2.5 cm.

Iqbal

On 7/21/11, dr_jfloyd <drjf...@gmail.com> wrote:
> have you run out of memory? halving the cell size increases memory by a
> factor of 8,
>

> --
> You received this message because you are subscribed to the Google Groups
> "FDS and Smokeview Discussions" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/fds-smv/-/cf0_gIZVMeEJ.

Kevin

unread,
Jul 21, 2011, 7:29:41 AM7/21/11
to FDS and Smokeview Discussions
The "stack" is part of your overall random access memory (RAM). You
cannot just keep increasing it and run bigger and bigger jobs.
Consider getting a 64 bit OS with alot of RAM.

On Jul 21, 12:08 am, "H. M. Iqbal Mahmud" <hmiqbalmah...@gmail.com>
wrote:
> Hi  dr_jfloyd,
>
> Yes, you are right. When I tried to run a simulation with cell size
> 2.5cm, it was showing this - "Error : Memory allocation failed for DS
> in the routine ITIN".
>
> I have increased the Stack size from 32768000 to 524288000, which is
> 16 times. But, it did not run for cell size 2.5 cm.
>
> Iqbal
>
> On 7/21/11, dr_jfloyd <drjfl...@gmail.com> wrote:
>
>
>
> > have you run out of memory? halving the cell size increases memory by a
> > factor of 8,
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "FDS and Smokeview Discussions" group.
> > To view this discussion on the web visit
> >https://groups.google.com/d/msg/fds-smv/-/cf0_gIZVMeEJ.
> > To post to this group, send email to fds...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > fds-smv+u...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/fds-smv?hl=en.- Hide quoted text -

H. M. Iqbal Mahmud

unread,
Jul 21, 2011, 9:34:35 PM7/21/11
to fds...@googlegroups.com
Thanks Kevin.

You are right. I have to upgrade my PC or i have to use parallel processor.

Regards

Samara

unread,
Jul 28, 2011, 8:00:05 PM7/28/11
to FDS and Smokeview Discussions
Iqbal,

Further to Kevin's post: 32768000 is the maximum addressable RAM on a
"standard" 32bit 4GB system like ours, increasing the stack size
further on a 4GB system is redundant as it cannot allocate more RAM
than it has.

If you *need* to run it with cells that small then I can compile it on
the Mac for you or you can run it through VPAC.

Regards,

Samara

On Jul 22, 11:34 am, "H. M. Iqbal Mahmud" <hmiqbalmah...@gmail.com>
wrote:
> Thanks Kevin.
>
> You are right. I have to upgrade my PC or i have to use parallel processor.
>
> Regards
>
> >> >http://groups.google.com/group/fds-smv?hl=en.-Hide quoted text -

H. M. Iqbal Mahmud

unread,
Jul 28, 2011, 8:18:14 PM7/28/11
to fds...@googlegroups.com
Hi Samara,

Thanks a lot for your information.

If it is possible in Mac, then it will be fine. Currently, I am
running a simulation with 5 cm cell size and comparing the results. If
i need the smaller grid size then i will take your help.

Kind regards

Reply all
Reply to author
Forward
0 new messages