a crash when calling playsnd during playback

Bugs

Modérateur : xcasadmin

lukamar
Messages : 331
Inscription : ven. juin 30, 2017 9:55 am
Localisation : Zagreb, Croatia

a crash when calling playsnd during playback

Message par lukamar » dim. sept. 16, 2018 6:30 pm

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.

parisse
Messages : 5734
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: a crash when calling playsnd during playback

Message par parisse » dim. sept. 16, 2018 7:55 pm

I can reproduce, but have no idea how that could be fixed, gdb does not help much.

lukamar
Messages : 331
Inscription : ven. juin 30, 2017 9:55 am
Localisation : Zagreb, Croatia

Re: a crash when calling playsnd during playback

Message par lukamar » lun. sept. 17, 2018 6:49 am

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.

parisse
Messages : 5734
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: a crash when calling playsnd during playback

Message par parisse » lun. sept. 17, 2018 1:25 pm

Exactly, this is not related to playsnd but to "evaluate again a "busy" cell". Will be fixed in the next release.

Répondre