issue-#197 Problems with Coroutines

issue-#197 Problems with Coroutines

Postby Robert » Fri Apr 19, 2019 2:17 pm

For the issue see: https://redmine.blackboxframework.org/issues/197.

Initial discussion of this topic is in viewtopic.php?f=50&t=610&start=94 starting at date 10 April 2019.
User avatar
Robert
 
Posts: 970
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#197 Problems with Coroutines

Postby Robert » Sat Apr 20, 2019 9:24 am

Latest crash today:

- Many trap windows called by Kernel.MarkReferencedCoroutines, then a final window called by Kernel.Cleanup, then 2 seconds later, exit to Windows.

No crashes yesterday!
User avatar
Robert
 
Posts: 970
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#197 Problems with Coroutines

Postby Josef Templ » Sat Apr 27, 2019 8:29 am

Robert wrote:Latest crash today:

- Many trap windows called by Kernel.MarkReferencedCoroutines, then a final window called by Kernel.Cleanup, then 2 seconds later, exit to Windows.

No crashes yesterday!



Did it happen without unloading any modules that implement a coroutine?

- Josef
User avatar
Josef Templ
 
Posts: 1968
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#197 Problems with Coroutines

Postby Robert » Sat Apr 27, 2019 9:09 am

Josef Templ wrote:Did it happen without unloading any modules that implement a coroutine?

I can't remember precisely.
But while my module is now pretty stable / finished, it almost certainly had had a few cycles of minor edit - compile - unload.

The setup is, in some ways, pretty simple. Coroutines are only used in one module, which only generates one Iterator within a Command. The Command may be called more than once by the user, and each time a fresh Iterator is created.

The Iterator variable is a global variable of the module; it is not a local variable on a procedure call stack.

No other modules have pointer chains to the Iterator.
User avatar
Robert
 
Posts: 970
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#197 Problems with Coroutines

Postby Josef Templ » Sat Apr 27, 2019 1:07 pm

Can you send me the sources?
I am not interested in the particular processing being done but in the overall setup and
if there is anything special about it. Something that I may have not considered in my tests.
Low-level things like finalizers, trap handlers, huge or otherwise special data structures,
calls to WinApi functions, etc.
Without that I am not able to debug this issue.
My tests so far have not shown a single anomaly.

- Josef
User avatar
Josef Templ
 
Posts: 1968
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#197 Problems with Coroutines

Postby Robert » Wed Jun 26, 2019 9:48 am

Maybe we should reject this issue until the problem appears again, if ever?

It has only affected me with one module, and then only during development. I am currently using the module with no problems.

The problem was always intermittent; I could never consistently provoke it.

If we do reject the main issue, should the minor points mentioned be fixed now?
User avatar
Robert
 
Posts: 970
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest