Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1023469: pysiogame craches at startup

95 views
Skip to first unread message

Gerard ROBIN

unread,
Nov 4, 2022, 2:30:03 PM11/4/22
to
Package: pysiogame
Version: 4.20.01-1
Severity: important

Dear Maintainer,
when I run pysiogame in console I get:

pygame 2.1.2 (SDL 2.24.1, Python 3.10.8)
Hello .....
Traceback
file "/usr/share/games/pysiogame/eduactiv8.py", line 659, in <module>
main()
file "/usr/share/games/pysiogame/eduactiv8.py", line 649, in main
app.run()
file "/usr/share/games/pysiogame/eduactiv8.py", line 408, in run
self.create subsurfaces()
file "/usr/share/games/pysiogame/eduactiv8.py", line 131, in create_subsurfaces
self.game_bg = self.screen.subsurface(self.sizer.game_bg_pos)
ValueError: subsurface rectangle outside surface area

After that pysiogame crashes immediatly.
Thanks.
PS
this is with Bookworm, with Bullseye pysiogame works fine.

-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pysiogame depends on:
ii fonts-freefont-ttf 20120503-10
ii fonts-kacst-one 5.0+svn11846-10
ii python3 3.10.6-1
ii python3-pygame 2.1.2+dfsg-4

pysiogame recommends no packages.

pysiogame suggests no packages.

-- no debconf information

Ireneusz Imiolek

unread,
Nov 7, 2022, 6:30:04 PM11/7/22
to
Dear Gerard and Maintainers,

Thank you for reporting the issue and sorry for the late reply, I only just realized a new bug was reported.

If I am not mistaken I have encountered this issue previously. The problem is that the latest distros started using Python 3, Pygame 2+ and the latest SDL 2+ which seems to draw windows differently. I ended up changing the way the program's window gets resized at startup which I believe solved the reported problem.

The latest source release (just published with the fix) is available on GitHub at: https://github.com/imiolek-ireneusz/eduActiv8/releases

The upstream version also solves issues: #721829, #721830, #721899 and #721852.

A hopefully working, but not the most up-to-date (yet) version is available at:
https://software.opensuse.org/download.html?project=home%3Aimiolek-i&package=eduactiv8

FAO: Maintainers - just in case any of the configuration files here are of any use:
https://build.opensuse.org/package/show/home:imiolek-i/eduActiv8

I would really appreciate if you could confirm the latest source code works as expected, please.

Thanks,
Ireneusz Imiolek
(eduActiv8 Dev)

Gerard ROBIN

unread,
Nov 9, 2022, 4:10:04 AM11/9/22
to
On Mon, 7 Nov 2022 23:21:49 +0000 Ireneusz Imiolek <imio...@googlemail.com> wrote:
> Dear Gerard and Maintainers,
>
> Thank you for reporting the issue and sorry for the late reply, I only just
> realized a new bug was reported.
>
> If I am not mistaken I have encountered this issue previously. The problem
> is that the latest distros started using Python 3, Pygame 2+ and the latest
> SDL 2+ which seems to draw windows differently. I ended up changing the way
> the program's window gets resized at startup which I believe solved the
> reported problem.
> .....
> I would really appreciate if you could confirm the latest source code works
> as expected, please.
>
> Thanks,
> Ireneusz Imiolek
> (eduActiv8 Dev)

I installed eduactiv8 and this is what I get when running it: (Bookworm)

Working directory: /usr/share/games/eduactiv8
Traceback (most recent call last):
File "/usr/share/games/eduactiv8/eduactiv8.py", line 41, in <module>
import pygame
ImportError: No module named pygame

Thanks.

--
Gerard
___________________________
***************************
Created with Mutt 2.2.7
under Debian Linux BOOKWORM
***************************

Ireneusz Imiolek

unread,
Nov 9, 2022, 9:20:05 PM11/9/22
to
Dear Gerard,

From your message, I see that there was an issue with pygame. Seems the python3-pygame package did not get installed. Are you running eduactiv8 from the source or did you add the repo from the OpenSUSE Build Service? If running from the source you will need to manually install python3-pygame and espeak packages.

I used a weekly ISO of bookworm for testing (running in VirtualBox), following the guidance to add a repo from: https://software.opensuse.org/download.html?project=home%3Aimiolek-i&package=eduactiv8 and selecting the instructions for Debian Testing seems to work fine (the dependencies installed correctly and resulted with the installation of eduactiv8 version 4.22.06 - I have also just updated the repo to the latest version 4.22.11 - this updated on Bookworm as expected and seems to work without issues).

FAO Maintainers: the link I posted previously was for the version of configuration files used with python 2, the following one is used to build the program for the current versions of Linux distros (with python 3 only): https://build.opensuse.org/package/show/home:imiolek-i/eduactiv8-py3
The version of standards used in this configuration file is rather dated, but personally, I do not have the knowledge to bring it back up to date.

Thanks,
Ireneusz Imiolek
0 new messages