-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update physics #5
Conversation
Started test build 53339 |
Build 53339 failed |
Started test build 53340 |
Build 53340 successful
|
Started test build 55779 |
Build 55779 successful
|
Data checker on activity can be added after sugarlabs/physics#58 |
Started test build 58410 |
Added patch to fix samples, also re-added sample 1 |
Build 58410 successful
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work fine 👍 , but there's a few errors I noticed, e.g.
Traceback (most recent call last):
File "/app/share/sugar/activities/Physics.activity/sugargame/event.py", line 150, in _keydown_cb
return self._keyevent(widget, event, pygame.KEYDOWN)
File "/app/share/sugar/activities/Physics.activity/sugargame/event.py", line 191, in _keyevent
mod = self._keymods()
File "/app/share/sugar/activities/Physics.activity/sugargame/event.py", line 167, in _keymods
mod |= self.__keystate[key_val] and mod_val
IndexError: list index out of range
To reproduce:
rm -rf /var/home/tchx84/.var/app/org.sugarlabs.Physics/
flatpak run org.sugarlabs.Physics
- Close the shape-selection palette.
That is an issue regarding sugargame being outdated, you can press any key and it will show this error, because pygame 2 has updated the keycodes for those in
This should be fixed in the sugargame repo instead since its not blocking issue for physics? so that other activities can also include the fix for this. |
Fixes have been merged in upstream, I will create data checker for activity once version is updated |
Patched sugargame |
Opened PR in sugargame upstream too, sugarlabs/sugargame#15 |
Started test build 59521 |
Build 59521 successful
|
This has been merged. |
Started test build 60762 |
Build 60762 successful
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sparshg I have been testing this a bit more thoroughly, and notice the following:
- Open the Physics and reset the canvas, to start clean.
- Go to the "play" toolbar and stop all movement.
- Go to the "draw" toolbar, add a few floating shapes, and try the different "pins" on these shapes (for rotating it, etc)
I noticed this a couple times, but after the third or fourth shape with pins, the pygame canvas would start freezing, to the point where not even the cursor is moving.
I also noticed some strange random behaviors, like sometimes the pins won't pin the object, and when movement is resumed these will simply fall down to the "ground", instead of being pinned and rotate. |
This has been a known bug for a long time now: sugarlabs/physics#27 I had tried looking into the issue but couldn't find whats wrong, I will try to dig a bit more on this. |
@sparshg this one seems more critical.. |
I tried this, the objects do fall to ground or glitch out and go crazy occasionally with pins, but I didn't experience any crashes. This is what I tried: Untitled.mp4I tried this on Ubuntu LTS 22.04, should I try to install it on some other distro? |
What I am describing here is this: Screencast.from.2023-08-25.16-25-23.webmNote how when I am about to add "rotating motor" pin to the third shape, the whole canvas freezes. I can still interact with the GTK side of things, but the pygame side is completely frozen. I get this error, which might or not be related
@sparshg focus on this. |
Yep, I am able to reproduce this issue now, working on it. |
Started test build 61407 |
Build 61407 failed |
Started test build 61408 |
Build 61408 failed |
Upstream fix sugarlabs/physics#59 Deleted fix-load patch since the fix was merged in upstream |
Started test build 61419 |
Build 61419 successful
|
Excellent. |
Closes #4