Skip to content

Occasional segmentation fault when non-blocking function is interrupted by end of script #1

@mgeier

Description

@mgeier

This only happens if a script ends before playback is finished.

This isn't a real problem since you would use a blocking call or at least sd.wait() in a Python script.
But crashing the interpreter isn't really nice ...

This is an example script to reproduce the error:

import sounddevice as sd
import numpy as np

sd.play(np.zeros(100000))

Note that the crash doesn't happen every time, only occasionally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions