Skip to content

Termination with divide by zero when starting up #525

@pnex2000

Description

@pnex2000

I'm trying out mopidy on a Raspberry Pi with USB audio (using the Pi Musicbox 0.4-alpha distribution based on Debian) and when starting up, mopidy crashes in a division by zero error, coming from audio/actor.py, function _rescale, line 544.

I did a quick hack where 'if (old_max - old_min) == 0: return value', which seems to work nicely, but without knowing the code and the effects of my fix I'm not submitting a PR at this time.

The sound is played using alsa. Using Raspberry Pi's built-in analog audio there was no problem.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions