Stack overflow with Sprites::LimitGroup
Reported by John Croisant | June 18th, 2008 @ 01:16 AM
Originally reported by: "Aureliano Calvo - aurelianito:https://sourceforge.net/users/aurelianito/
Using rubygame 2.2.0 (latest gem available) the following error happens.
The code:
group = Rubygame::Sprites::Group.new
group.extend( Rubygame::Sprites::LimitGroup )
group.add( sprite ) # sprite is a standard object that includes
Rubygame::Sprite
Throws an stack overflow. This is the output:
/usr/lib/ruby/gems/1.8/gems/rubygame-2.2.0-x86-linux/lib/rubygame/sprite.rb
:336:in `delete': stack level too deep (SystemStackError) from
/usr/lib/ruby/gems/1.8/gems/rubygame-2.2.0-x86-linux/lib/rubygame/sprite.rb
:466:in `<<' from
/usr/lib/ruby/gems/1.8/gems/rubygame-2.2.0-x86-linux/lib/rubygame/sprite.rb
:355:in `push' from
/usr/lib/ruby/gems/1.8/gems/rubygame-2.2.0-x86-linux/lib/rubygame/sprite.rb
:354:in `each' from
/usr/lib/ruby/gems/1.8/gems/rubygame-2.2.0-x86-linux/lib/rubygame/sprite.rb
:354:in `push' from
/usr/lib/ruby/gems/1.8/gems/rubygame-2.2.0-x86-linux/lib/rubygame/sprite.rb
:92:in `add' from
/usr/lib/ruby/gems/1.8/gems/rubygame-2.2.0-x86-linux/lib/rubygame/sprite.rb
:89:in `each' from
/usr/lib/ruby/gems/1.8/gems/rubygame-2.2.0-x86-linux/lib/rubygame/sprite.rb
:89:in `add' from
/usr/lib/ruby/gems/1.8/gems/rubygame-2.2.0-x86-linux/lib/rubygame/sprite.rb
:243:in `<<'
... 3727 levels...
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Flexible library for making games with the Ruby language.
rubygame.sourceforge.net
