Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

GC Operation on Unregistered Thread #12

devn opened this Issue Nov 18, 2011 · 6 comments


None yet
3 participants

devn commented Nov 18, 2011

James seems to work, but I am getting a macruby 0.10 GC error. I installed using rvm version 1.9.2.

Here's the script I'm running via james time_dialog.rb

James.dialog do

  hear 'What time is it?' => :time

  state :time do
    hear ['What time is it?', 'And now?'] => :time
    into { time = Time.now; "It is currently #{time.hour} #{time.min}." }
    exit {} # Optional, listed for completeness.

  hear 'Play nickle back' => :nickelback
  state :nickelback do
    hear ['Play nickelback', 'Play nickle back'] => :nickelback
    into { "Sir, your musical taste is lacking. Might I suggest Rick Astley instead?" }


`~> james time_dialog.rb
James: Using dialogs in time_dialog.rb for our conversation, Sir.

  1. James?
  2. Are you there, James?
  3. Good night, James.
  4. Play Nickelback
  5. Thank you, James.
  6. Go back.
  7. I need some time alone, James.
  8. Good night, James.
    macruby(66211,0x105799000) malloc: *** auto malloc[66211]: error: GC operation on unregistered thread. Thread registered implicitly. Break on auto_zone_thread_registration_error() to debug.

devn commented Nov 18, 2011

Note that James continues to /run/, I just keep seeing this error and am wondering what's going on.


floere commented Nov 18, 2011

Hi Devin!

Thanks for the well described issue.

I am afraid that I can't tell you much more than that I've filed a ticket with MacRuby: https://www.macruby.org/trac/ticket/1421

You'll find more information regarding this there. (Including a link back to this) In short: It is benign, but of course nothing nice to look at.


devn commented Nov 22, 2011

Hey Florian,

Thanks for filing an issue on my behalf. I had the sneaking suspicion this issue would be closed out of hand as a problem with MacRuby and not with james. Feel free to close this issue or leave it open if you think it will be beneficial for other users to see it front-and-center on james' issues page.



floere commented Nov 23, 2011

Hey Devin,

I'll leave it open for now – the point you mention is a good one.


I'm seeing a similar issue, with a little more information that could be helpful. James seems to work fine aside from the warning.

macruby(93824,0x107481000) malloc: *** auto malloc[93824]: error: GC operation on unregistered thread. Thread registered implicitly. Break on auto_zone_thread_registration_error() to debug.


floere commented Jan 24, 2012

Hi @daveshenk! Thanks a lot for reporting. It seems, MacRuby closed this as "wontfix" as the problem seems to be in an OSX framework, see https://www.macruby.org/trac/ticket/1375.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment