PewePro / alef-tng

Alef strikes back
2 stars 3 forks source link

FloatDomainError: NaN #184

Closed PewePro closed 8 years ago

PewePro commented 8 years ago

View details in Rollbar: https://rollbar.com/AlefTNG/AlefTNG/items/30/


FloatDomainError: NaN
  File "/home/aleftng/deploy/aleftng/releases/20160330160859/lib/levels/rooms_creation.rb", line 22, in round
  File "/home/aleftng/deploy/aleftng/releases/20160330160859/lib/levels/rooms_creation.rb", line 22, in create
  File "/home/aleftng/deploy/aleftng/releases/20160330160859/app/controllers/rooms_controller.rb", line 70, in new
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb", line 4, in send_action
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb", line 198, in process_action
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb", line 10, in process_action
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb", line 20, in block in process_action
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb", line 117, in call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb", line 117, in call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb", line 555, in block (2 levels) in compile
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb", line 505, in call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb", line 505, in call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb", line 92, in __run_callbacks__
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb", line 778, in _run_process_action_callbacks
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb", line 81, in run_callbacks
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb", line 19, in process_action
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb", line 29, in process_action
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb", line 32, in block in process_action
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb", line 164, in block in instrument
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb", line 20, in instrument
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb", line 164, in instrument
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb", line 30, in process_action
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb", line 250, in process_action
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb", line 18, in process_action
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb", line 137, in process
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb", line 30, in process
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb", line 196, in dispatch
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb", line 13, in dispatch
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb", line 237, in block in action
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb", line 76, in call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb", line 76, in dispatch
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb", line 45, in serve
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb", line 43, in block in serve
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb", line 30, in each
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb", line 30, in serve
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb", line 821, in call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 96, in call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.15.0.314/lib/new_relic/rack/agent_hooks.rb", line 30, in traced_call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 96, in call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.15.0.314/lib/new_relic/rack/browser_monitoring.rb", line 32, in traced_call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 96, in call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/warden-1.2.6/lib/warden/manager.rb", line 35, in block in call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/warden-1.2.6/lib/warden/manager.rb", line 34, in catch
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/warden-1.2.6/lib/warden/manager.rb", line 34, in call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 96, in call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb", line 24, in call
  File "/home/aleftng/deploy/aleftng/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.15.0.314/lib/new_rel
veronikagondova commented 8 years ago

Padlo to na tom, ze vytvorilo miestnost o velkosti 56 otazok a potom uz nemalo z coho vytvarat dalsiu miestnost, musim zistit ako sa moze stat, ze vytvori taku velku miestnost. A osetrit tuto situaciu, aby aj ked uz ma vytvorenu taku miestnost aby to nepadalo.

veronikagondova commented 8 years ago

Toto by uz malo byt opravene, cize aj #179