#1023469 pysiogame craches at startup

#1023469#5
Date:
2022-11-04 18:25:34 UTC
From:
To:
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.

#1023469#10
Date:
2022-11-07 23:21:49 UTC
From:
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)