digego / extempore

A cyber-physical programming environment
1.41k stars 127 forks source link

Extempore hangs when evaluating this #274

Closed kroll-j closed 7 years ago

kroll-j commented 8 years ago

When evaluating the following piece of code, extempore hangs, i. e. uses 100% cpu time of one core and becomes unresponsive. Using current extempore tip (commit b5f80a3d5840385cd72e2588f86cf181f7a9be04) on Ubuntu 16.04 64-bit

Changing the (convert null) to (convert null i8*) makes it work for some reason.

(bind-func temp
  (lambda (ptr:i8* time:i64 dtime:float)
      (printf "ptr: %p\n" ptr)
      (let ((next_time (+ time (convert (* 44100. dtime)))))
        (callback next_time temp (convert null) next_time dtime))))