Crash when using coroutines

Josef Templ
Posts: 262
Joined: Tue Sep 17, 2013 6:50 am

Re: Crash when using coroutines

Post by Josef Templ »

by setting a smaller stack size (Coroutines.SetStackSize) it should be possible to start a larger number of coroutines.

golang starts with a size of only 4KB and increases that on demand.
With the native Windows fibers being used for BlackBox coroutines the minimum stack size is somewhere at 64 KB,
if I remember correctly. The native Windows fibers also grow on demand up to the specified max size but the
virtual memory space is reserved even if it is never fully committed.

- Josef
User avatar
Robert
Posts: 177
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: Crash when using coroutines

Post by Robert »

The fix for this bug is now in the BlackBox master build (from build number 1127).
This is available by clicking "latest development version" on http://blackboxframework.org/index.php? ... page,en-us.

X512 - I don't need to thank you for reporting this bug (it had already been reported), but thank you for suggesting the fix which we had failed to find.
Robert Campbell
Chairman, BlackBox Framework Center.
Post Reply