james icon indicating copy to clipboard operation
james copied to clipboard

GC Operation on Unregistered Thread

Open devn opened this issue 14 years ago • 6 comments

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.
  end

  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?" }
  end

end

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

  1. James?
  2. Are you there, James?
  3. Good night, James. Possibilities:
  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. Possibilities: ...`

devn avatar Nov 18 '11 20:11 devn

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

devn avatar Nov 18 '11 20:11 devn

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.

Cheers, Florian

floere avatar Nov 18 '11 23:11 floere

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.

Regards, Devin

devn avatar Nov 22 '11 01:11 devn

Hey Devin,

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

Cheers, Florian

floere avatar Nov 23 '11 02:11 floere

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.

daveshenk avatar Jan 23 '12 21:01 daveshenk

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.

floere avatar Jan 24 '12 11:01 floere