HI, this request can be closed. The problem is that libncurses is not thread-safe and thus cannot be used within a Supply callback.
Perhaps there should be some note in the Supply documentation pointing out this trap with NativeCall wrappers around "thread-unsafe" libraries. Cheers, Fritz On Wed, 30 Dec 2015, perl6 via RT wrote:
Greetings, This message has been automatically generated in response to the creation of a trouble ticket regarding: "[BUG] NCurses and Supply", a summary of which appears below. There is no need to reply to this message right now. Your ticket has been assigned an ID of [perl #127087]. Please include the string: [perl #127087] in the subject line of all future correspondence about this issue. To do so, you may reply to this message. Thank you, perl6-bugs-follo...@perl.org ------------------------------------------------------------------------- Updating a "timer" from a for loop works as expected: https://gist.github.com/zaucker/aa14025a16edcd671e25 Updating it from an interval supply screws up the next after a few iterations (on Ubuntu 14.04) with This is Rakudo version 2015.12 built on MoarVM version 2015.12 implementing Perl 6.c. Am I doing something wrong? Cheers, Fritz
-- Oetiker+Partner AG tel: +41 62 775 9903 (direct) Fritz Zaucker +41 62 775 9900 (switch board) Aarweg 15 +41 79 675 0630 (mobile) CH-4600 Olten fax: +41 62 775 9905 Schweiz web: www.oetiker.ch