Skip to content
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

Test activity opens two windows #17

Open
chimosky opened this issue Mar 31, 2024 · 1 comment
Open

Test activity opens two windows #17

chimosky opened this issue Mar 31, 2024 · 1 comment

Comments

@chimosky
Copy link
Member

chimosky commented Mar 31, 2024

It seems the test activity opens two windows, one for the game instance and another for the activity.

Screenshot from 2024-03-31 14-03-56

As the screenshot shows, this is one for the game where the activity toolbar isn't present, the activities tray in the frame shows two activities, one being the test activity which has the toolbar visible with a canvas that can't be interacted with, and another with an image-missing icon, which is the screenshot above.

On a new instance, the activity fails to start and also restarts the user session so we go straight to the login screen.
The logs show this;

711890635.988546 ERROR root: Launcher was not registered for None
1711890636.043889 ERROR root: Launcher was not registered for None
1711890636.219599 ERROR root: Launcher was not registered for None
1711890636.250838 ERROR root: Launcher was not registered for None
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/jarabe/frame/activitiestray.py", line 382, in __activity_removed_cb
    del self._buttons_by_name[home_activity.get_activity_id()]
        ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: None
1711890636.319917 ERROR root: Launcher was not registered for None
1711890636.387084 ERROR root: Launcher was not registered for None
1711890636.416462 ERROR root: Launcher was not registered for None
/usr/lib/python3/dist-packages/jarabe/model/shell.py:704: Warning: invalid unclassed pointer in cast to 'WnckClassGroup'
  self.emit('activity-removed', home_activity)

I couldn't check if there were two processes for the separate windows, and I can't right now as opening the activity restarts the user session.

Tested on Sugar 0.121, pygame 2.1.2 (SDL 2.26.5, Python 3.11.2).

Noticed this when I recently tested an activity someone wrote, and was able to reproduce with the test activity after noticing same thing in another activity.

@quozl
Copy link
Contributor

quozl commented Apr 1, 2024

Duplicate of #14

@quozl quozl marked this as a duplicate of #14 Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants