Crash when using coroutines

Re: Crash when using coroutines

Postby Josef Templ » Thu Nov 28, 2019 5:13 pm

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
Josef Templ
Posts: 257
Joined: Tue Sep 17, 2013 6:50 am

Re: Crash when using coroutines

Postby Robert » Sat Dec 14, 2019 11:53 am

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 ... 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.
User avatar
Posts: 172
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland


Return to Bug

Who is online

Users browsing this forum: No registered users and 2 guests