Can't add a new key into hash during iteration (Trema error)

48 views
Skip to first unread message

Bao Tri Nguyen

unread,
Jun 9, 2014, 3:29:25 AM6/9/14
to trem...@googlegroups.com
Hi everyone,

Recently I ported a project onto another laptop with ubuntu 14.04. Trema and its dependencies but when I run the controller, it returns error as pasted in the attachment.

(Ruby version:
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
Trema version:
trema version 0.4.7)

I have examined the log and my source codes but couldn't find any possible bugs.
May I know if this can be fixed? Any help is greatly appreciated.
Thank you for reading this!

Best regards,
Nguyen Bao Tri



ErrorLog.txt

Bao Tri Nguyen

unread,
Jun 9, 2014, 9:05:39 PM6/9/14
to trem...@googlegroups.com
Additionally, here is the potion of code in "/usr/lib/ruby/gems/1.9.1/gems/trema-0.4.7/ruby/trema/timers.rb" that may have caused the problem:

Kernel.send :define_method, :add_timer do | handler, interval, event_type |
        timer_event_handlers[ handler] = {
          :interval => interval,
          :rest => interval,
          :event_type => event_type
        }

Yasuhito Takamiya

unread,
Jun 10, 2014, 3:23:18 AM6/10/14
to Bao Tri Nguyen, trem...@googlegroups.com
Hi,

Maybe this is a bug in Trema but I cannot judge that only by the error
message. Please open a new GitHub issue and attach a complete snippet to
demonstrate the issue.

Thanks,
Yasuhito
> --
> You received this message because you are subscribed to the Google Groups "trema-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to trema-dev+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Bao Tri Nguyen

unread,
Jun 10, 2014, 3:45:05 AM6/10/14
to trem...@googlegroups.com
Thank you for your reply.

I can't really provide the code because the project is quite big and the error log doesn't point to any location in the sources either.
I've been searching around and there are a few similar cases but no concrete solution.

I will proceed to open an issue on GitHub and try to provide as much as info as I can.
Thanks again!


Best regards,
Nguyen Bao Tri

Reply all
Reply to author
Forward
0 new messages