Page 1 sur 1

a crash when calling playsnd during playback

Publié : dim. sept. 16, 2018 6:30 pm
par lukamar
Hi,
calling playsnd in Xcas 1.5.0-1 (the official prerelease in testing) causes Xcas to crash if sound is already being played (due to a previous call to playsnd). To reproduce, activate the command

Code : Tout sélectionner

playsnd(2^14*(sin(2*pi*440*soundsec(3))))
and try to execute it again before the playback is finished.

Re: a crash when calling playsnd during playback

Publié : dim. sept. 16, 2018 7:55 pm
par parisse
I can reproduce, but have no idea how that could be fixed, gdb does not help much.

Re: a crash when calling playsnd during playback

Publié : lun. sept. 17, 2018 6:49 am
par lukamar
Well, it happens only when trying to activate the same cell twice. If the command above is copied in two cells and they're activated one after another quickly, Xcas does not crash when playback finishes. Maybe you could generally disable activating cells which are currently processing (on the GUI level). In multithreading it only makes sense to activate few *different* cells at once, anyway.

Re: a crash when calling playsnd during playback

Publié : lun. sept. 17, 2018 1:25 pm
par parisse
Exactly, this is not related to playsnd but to "evaluate again a "busy" cell". Will be fixed in the next release.