MantisBT - Zandronum
View Issue Details
0002860Zandronum[All Projects] Bugpublic2016-10-06 07:362018-09-30 21:48
Klofkac 
Torr Samaho 
normalcrashalways
closedfixed 
LinuxLinux Mint17.3 x64
3.0-beta 
3.03.0 
0002860: Crash when choosing cubic or spline sound resampler
Zandronum crashes when sound is set to use Cubic or Spline resampling.

Crash happens as soon as sound is restarted using this setting.
1) Start zandronum
2) Go to sound options
3) Choose Cubic or Spline resampling
4) Restart sound
I have a feeling this is caused by SDL, but I am not entirely sure.

I have both x64 and i386 versions of libsdl-sound1.2 installed. The version reported by dpkg is 1.0.3-7 .

No tags attached.
7z zandronum-crash.7z (5,915) 2016-10-06 07:36
/tracker/file_download.php?file_id=1910&type=bug
Issue History
2016-10-06 07:36KlofkacNew Issue
2016-10-06 07:36KlofkacFile Added: zandronum-crash.7z
2016-10-06 07:42KlofkacNote Added: 0015770
2016-10-06 09:42Edward-sanNote Added: 0015771
2016-10-06 09:42Edward-sanAssigned To => Torr Samaho
2016-10-06 09:42Edward-sanStatusnew => assigned
2016-10-06 09:43Edward-sanNote Edited: 0015771bug_revision_view_page.php?bugnote_id=15771#r9594
2016-10-09 18:57Torr SamahoNote Added: 0015851
2016-10-09 18:59Torr SamahoTarget Version => 3.0
2016-11-21 14:16Edward-sanNote Added: 0016248
2016-11-22 07:04Torr SamahoNote Added: 0016283
2016-11-24 10:27Edward-sanNote Added: 0016312
2016-11-26 18:06Torr SamahoNote Added: 0016330
2016-11-26 18:06Torr SamahoStatusassigned => needs testing
2017-02-07 20:19DecayNote Added: 0016818
2017-02-07 23:14DecayNote Deleted: 0016818
2017-02-07 23:37DecayNote Added: 0016820
2017-02-07 23:40Ru5tK1ngStatusneeds testing => resolved
2017-02-07 23:40Ru5tK1ngResolutionopen => fixed
2017-02-07 23:40Ru5tK1ngFixed in Version => 3.0
2018-09-30 21:48Blzut3Statusresolved => closed

Notes
(0015770)
Klofkac   
2016-10-06 07:42   
Additional research showed that libSDL is not the culprit.

From the crashlog I found the thread which caught the signal 11 was thread that just ran function FMOD_Resampler_Cubic().
(0015771)
Edward-san   
2016-10-06 09:42   
(edited on: 2016-10-06 09:43)
It's indeed FMOD specific. It was reported in zdoom forum here and fixed and backported to zandronum-zdoom-sync here, but there's a problem: the fix is done for fmod 4.26, which is more recent than 4.24.16, actually used by zandronum.

I wonder if it could be better to update our fmod version to 4.26.36...

(0015851)
Torr Samaho   
2016-10-09 18:57   
The "fix" just removes the crashing resamplers when FMOD 4.26 is used. We can easily extend the removal to 4.24.
(0016248)
Edward-san   
2016-11-21 14:16   
Finally I extended the fix to 4.24 (zdoom pull request here, but I did it too late because of the 'FMOD_STUDIO' macro condition present in the actual zdoom code. Would it be possible to exceptionally backport the fix to 3.0?
(0016283)
Torr Samaho   
2016-11-22 07:04   
We'd just need to drop "FMOD_STUDIO || ", right? Then it's surely simply enough to backport it.
(0016312)
Edward-san   
2016-11-24 10:27   
(G)ZDoom added it, so it's possible to backport it now.
(0016330)
Torr Samaho   
2016-11-26 18:06   
Backported.
(0016820)
Decay   
2017-02-07 23:37   
I asked Eric to test this in the latest build on his linux machine

<Eric>okay, got zandronum installed and running, although opengl isn't working very well
<Decay>cool
<Decay>http://zandronum.com/tracker/view.php?id=2860#bugnotes simple ticket
<Eric>neither option crashes in the latest alpha
<Eric>i'm not really sure what i'm supposed to be listening for to see if they are working, but the game doesn't crash when you switch to them and restart sound