Skip to content

Instantly share code, notes, and snippets.

@chozabu
Created November 14, 2014 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chozabu/8faf94edcd53e8513ebd to your computer and use it in GitHub Desktop.
Save chozabu/8faf94edcd53e8513ebd to your computer and use it in GitHub Desktop.
[INFO ] [Base ] Leaving application in progress...
Traceback (most recent call last):
File "/home/chozabu/git/KivEnt/kivent_tutorials/8_airhockey_table/main.py", line 521, in <module>
cProfile.run('YourAppNameApp().run()', pfile)
File "/usr/lib/python2.7/cProfile.py", line 29, in run
prof = prof.run(statement)
File "/usr/lib/python2.7/cProfile.py", line 135, in run
return self.runctx(cmd, dict, dict)
File "/usr/lib/python2.7/cProfile.py", line 140, in runctx
exec cmd in globals, locals
File "<string>", line 1, in <module>
File "/home/chozabu/git/kivy/kivy/app.py", line 825, in run
runTouchApp()
File "/home/chozabu/git/kivy/kivy/base.py", line 484, in runTouchApp
EventLoop.window.mainloop()
File "/home/chozabu/git/kivy/kivy/core/window/window_pygame.py", line 381, in mainloop
self._mainloop()
File "/home/chozabu/git/kivy/kivy/core/window/window_pygame.py", line 285, in _mainloop
EventLoop.idle()
File "/home/chozabu/git/kivy/kivy/base.py", line 324, in idle
Clock.tick()
File "/home/chozabu/git/kivy/kivy/clock.py", line 483, in tick
self._process_events()
File "/home/chozabu/git/kivy/kivy/clock.py", line 615, in _process_events
event.tick(self._last_tick, remove)
File "/home/chozabu/git/kivy/kivy/clock.py", line 374, in tick
ret = callback(self._dt)
File "/home/chozabu/git/KivEnt/kivent_tutorials/8_airhockey_table/main.py", line 498, in update
self.gameworld.update(dt)
File "kivent_core/gameworld.pyx", line 261, in kivent_core.gameworld.GameWorld.update (kivent_core/gameworld.c:4058)
system._update(dt)
File "kivent_core/gamesystems.pyx", line 184, in kivent_core.gamesystems.GameSystem._update (kivent_core/gamesystems.c:3996)
self.update(update_time)
File "kivent_core/gamesystems.pyx", line 554, in kivent_core.gamesystems.LerpSystem.update (kivent_core/gamesystems.c:9250)
lerp_objects.remove(object_to_remove)
ValueError: list.remove(x): x not in list
@chozabu
Copy link
Author

chozabu commented Nov 14, 2014

crash happens when creating a paddle while puck-fadeout exists

looking at

File "kivent_core/gamesystems.pyx", line 554, in kivent_core.gamesystems.LerpSystem.update (kivent_core/gamesystems.c:9250)
lerp_objects.remove(object_to_remove)

lerp_objects is ~160 objects long, while looping through, at around ~158 an object or two is removed

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