Skip to content

Does "toggle_display" actually work? #32

@Stephanowicz

Description

@Stephanowicz

Hi,

I'm running this on raspi 4b with sounddevice.

I tried to use the "toggle_display" function in visualize.py.
But when it should restart the viz it crashes with "bus error"

Any idea what this error is related to?

Thx & cheers,

Stephan

PS: I had to change the "stop" function a bit in order to stop properly:

        self._is_running = False
        time.sleep(1)
        del self.fps_font
        del self.bin_font
        del self.screen
        del self.prev_screen
        pygame.quit()

first set self._is_running = False and added a sleep so that any running updates are finished before deleting and quitting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions