Skip to content

singularity crashes with pygame 2 before 2.5.2 (or a similar recent version of pygame-ce) #350

@gaenseklein

Description

@gaenseklein

game crashed for the third time now.
first it was some random time in, second also.
now i started it out of console to see whats happening and by clicking on hard game it crashed.

this is output of console:

Singularity 1.00 (commit: 2ebc2f3)
Running under Python 3.10.12 (main, Feb 4 2025, 14:57:36) [GCC 11.4.0]
pygame 2.1.2 (SDL 2.0.20, Python 3.10.12)
Hello from the pygame community. https://www.pygame.org/contribute.html
The error-log configured as /home/mochilero/.local/share/singularity/log/error.log (lazily created when something is logged)
----- Basic information (Please include all the data below in the bug report) ------
Please submit the crash on github: https://github.com/singularity/singularity/issues/new
Singularity version 1.00
Python version 3.10.12 (main, Feb 4 2025, 14:57:36) [GCC 11.4.0]
Pygame version 2.1.2
SDL version 2.0.20
Exception in function show at Sat Mar 15 19:36:15 2025 CEST:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/singularity/code/safety.py", line 64, in safe_call
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/singularity/code/graphics/dialog.py", line 222, in show
    self.handle(pygame.event.Event(pygame.USEREVENT))
  File "/usr/lib/python3/dist-packages/singularity/code/graphics/dialog.py", line 390, in handle
    return self.call_handlers(handlers, event)
  File "/usr/lib/python3/dist-packages/singularity/code/graphics/dialog.py", line 405, in call_handlers
    handler(event)
  File "/usr/lib/python3/dist-packages/singularity/code/screens/map.py", line 616, in on_tick
    self.show_story_section("Intro")
  File "/usr/lib/python3/dist-packages/singularity/code/screens/map.py", line 566, in show_story_section
    if not dialog.call_dialog(story_dialog, self):
  File "/usr/lib/python3/dist-packages/singularity/code/graphics/dialog.py", line 125, in call_dialog
    retval = dialog.show()
  File "/usr/lib/python3/dist-packages/singularity/code/graphics/dialog.py", line 229, in show
    play_music()
  File "/usr/lib/python3/dist-packages/singularity/code/mixer.py", line 210, in play_music
    pygame.mixer.music.play()
pygame.error: Audio device hasn't been opened

Fatal Python error: pygame_parachute: (pygame parachute) Segmentation Fault
Python runtime state: initialized

Current thread 0x00007a3c72c00640 (most recent call first):

Thread 0x00007a3c7764b000 (most recent call first):
File "/usr/lib/python3/dist-packages/singularity/init.py", line 388 in main
File "/usr/games/singularity", line 11 in

Extension modules: pygame.base, pygame.constants, pygame.rect, pygame.rwobject, pygame.surflock, pygame.color, pygame.bufferproxy, pygame.math, pygame.surface, pygame.display, pygame.draw, pygame.event, pygame.imageext, pygame.image, pygame.joystick, pygame.key, pygame.mouse, pygame.time, pygame.mask, pygame.pixelcopy, pygame.transform, pygame.font, pygame.mixer_music, pygame.mixer, pygame.scrap, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg.lapack_lite, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, pygame._freetype (total: 40)
Abgebrochen (Speicherabzug geschrieben)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions