http://bugs.winehq.org/show_bug.cgi?id=10099
Summary: FP exception in DSOUND_RecalcVolPan, abruptly quits Product: Wine Version: 0.9.47. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-directx-dsound AssignedTo: wine-bugs@winehq.org ReportedBy: wine@rasqual.silk.com
Created an attachment (id=8661) --> (http://bugs.winehq.org/attachment.cgi?id=8661) winedbg, trace output
A floating-point exception causes the executed program to abruptly end.
Backtrace excerpt: =>1 0x7efce47a in libm.so.6 (+0x847a) (0x7bbfe5f4) 2 0x7e88c090 DSOUND_RecalcVolPan+0xf0() in dsound (0x7bbfe644) 3 0x7e89b0a6 DSOUND_Calc3DBuffer+0x4d6() in dsound (0x7bbfe754)
http://source.winehq.org/source/dlls/dsound/mixer.c?v=wine-0.9.47#L42
In the log, we can see the trace level message: trace:dsound:DSOUND_RecalcVolPan (0x2167514) trace:dsound:DSOUND_RecalcVolPan Vol=-301 Pan=-2147483648 meaning the line: TRACE("left = %x, right = %x\n", volpan->dwTotalLeftAmpFactor, volpan->dwTotalRightAmpFactor); is never reached.
The function is also logged at earlier points and working, e.g.: trace:dsound:DSOUND_RecalcVolPan (0x2167514) trace:dsound:DSOUND_RecalcVolPan Vol=0 Pan=0 trace:dsound:DSOUND_RecalcVolPan left = ffff, right = ffff
Reproduced in Symphonic Rain (app db entry pending), when clicking on the "Game Start" main menu option.
http://bugs.winehq.org/show_bug.cgi?id=10099
Rasqual wine@rasqual.silk.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #8661 is|0 |1 obsolete| |
--- Comment #1 from Rasqual wine@rasqual.silk.com 2007-10-21 12:28:26 --- Created an attachment (id=8705) --> (http://bugs.winehq.org/attachment.cgi?id=8705) winedbg, trace output (+dsound3d,+dsound)
winedbg, trace output, including sound3d module.
http://bugs.winehq.org/show_bug.cgi?id=10099
Rasqual wine@rasqual.silk.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #8705|winedbg, trace output |winedbg (+dsound3d,+dsound) description|(+dsound3d,+dsound) |
http://bugs.winehq.org/show_bug.cgi?id=10099
Rasqual wine@rasqual.silk.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine@rasqual.silk.com
--- Comment #2 from Rasqual wine@rasqual.silk.com 2007-10-21 12:31:37 --- Relevant additional info:
trace:dsound3d:DSOUND_Calc3DBuffer (0x19eec50) trace:dsound3d:DSOUND_Calc3DBuffer Normal 3D processing mode trace:dsound3d:VectorBetweenTwoPoints A (-1.000000,0.000000,-1.000000), B (0.000000,0.000000,0.000000), AB = (1.000000,0.000000,1.000000) trace:dsound3d:ScalarProduct (1.000000,0.000000,1.000000) * (1.000000,0.000000,1.000000) = 2.000000) trace:dsound3d:VectorMagnitude |(1.000000,0.000000,1.000000)| = 1.414214 trace:dsound3d:DSOUND_Calc3DBuffer dist. att: Distance = 1.414214, MinDistance = 1.000000 => adjusting volume 0 to -301.029968 trace:dsound3d:DSOUND_Calc3DBuffer conning: cones not set trace:dsound3d:VectorBetweenTwoPoints A (0.000000,0.000000,0.000000), B (-1.000000,0.000000,-1.000000), AB = (-1.000000,0.000000,-1.000000) trace:dsound3d:VectorProduct (0.000000,0.000000,0.000000) x (0.000000,0.000000,0.000000) = (0.000000,0.000000,0.000000) trace:dsound3d:ScalarProduct (0.000000,0.000000,0.000000) * (-1.000000,0.000000,-1.000000) = 0.000000) trace:dsound3d:ScalarProduct (0.000000,0.000000,0.000000) * (0.000000,0.000000,0.000000) = 0.000000) trace:dsound3d:VectorMagnitude |(0.000000,0.000000,0.000000)| = 0.000000 trace:dsound3d:ScalarProduct (-1.000000,0.000000,-1.000000) * (-1.000000,0.000000,-1.000000) = 2.000000) trace:dsound3d:VectorMagnitude |(-1.000000,0.000000,-1.000000)| = 1.414214 trace:dsound3d:AngleBetweenVectorsRad angle between (0.000000,0.000000,0.000000) and (-1.000000,0.000000,-1.000000) = nan radians trace:dsound3d:DSOUND_Calc3DBuffer panning: Angle = nan rad, lPan = -2147483648 trace:dsound:DSOUND_RecalcVolPan (0x19eeccc) trace:dsound:DSOUND_RecalcVolPan Vol=-301 Pan=-2147483648
http://bugs.winehq.org/show_bug.cgi?id=10099
Rasqual wine@rasqual.silk.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|FP exception in |FP exception in |DSOUND_RecalcVolPan, |DSOUND_RecalcVolPan, |abruptly quits |abruptly quits (
http://bugs.winehq.org/show_bug.cgi?id=10099
Rasqual wine@rasqual.silk.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|FP exception in |FP exception in |DSOUND_RecalcVolPan, |DSOUND_RecalcVolPan, |abruptly quits ( |abruptly quits (3D sound | |related)
http://bugs.winehq.org/show_bug.cgi?id=10099
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|FP exception in |Symphonic Rain crashes when |DSOUND_RecalcVolPan, |starting the game |abruptly quits (3D sound | |related) |
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2007-10-21 12:46:37 --- Please leave the summary along. It should not reflect what you think the reason might be. It should state what the problem is.
http://bugs.winehq.org/show_bug.cgi?id=10099
Rasqual wine@rasqual.silk.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Symphonic Rain crashes when |Symphonic Rain crashes when |starting the game |starting story mode
http://bugs.winehq.org/show_bug.cgi?id=10099
--- Comment #4 from Austin English austinenglish@gmail.com 2007-10-21 15:10:50 --- Is there a demo/download of this available? Does it have the same problem?
http://bugs.winehq.org/show_bug.cgi?id=10099
--- Comment #5 from Rasqual wine@rasqual.silk.com 2007-10-21 17:06:04 --- Unfortunately, there is no demo version of this game.
http://bugs.winehq.org/show_bug.cgi?id=10099
Maarten Lankhorst M.B.Lankhorst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |M.B.Lankhorst@gmail.com Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1
--- Comment #6 from Maarten Lankhorst M.B.Lankhorst@gmail.com 2007-11-07 15:40:00 --- Created an attachment (id=9018) --> (http://bugs.winehq.org/attachment.cgi?id=9018) Work around 'nan' patch
Does the attached patch fix the problem?
http://bugs.winehq.org/show_bug.cgi?id=10099
--- Comment #7 from Rasqual wine@rasqual.silk.com 2007-11-08 16:13:13 --- Created an attachment (id=9039) --> (http://bugs.winehq.org/attachment.cgi?id=9039) wine trace (+dsound3d,+dsound)
Martin, I applied the " Work around 'nan' patch " on 0.9.47 with modifying it a bit to compile ('angle' is not defined in the new AngleBetweenVectorsDeg() function)
It worked successfully as far as I can tell, no more crash. There are still other 3D sound problems remaining, but those should be unrelated to this bug ticket.
I attached the log for reference. You shall observe that there are no 'nan' values anymore.
Thanks for your support!
http://bugs.winehq.org/show_bug.cgi?id=10099
Rasqual wine@rasqual.silk.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #9039|text/plain |application/x-bzip2 mime type| |
http://bugs.winehq.org/show_bug.cgi?id=10099
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #8 from Austin English austinenglish@gmail.com 2008-06-05 11:17:47 --- Is this still an issue in 1.0-rc3 or newer wine?
http://bugs.winehq.org/show_bug.cgi?id=10099
Maarten Lankhorst m.b.lankhorst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED
--- Comment #9 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-06-05 11:26:40 --- I submitted the patch, but forgot to mark the bug fixed, hereby.
http://bugs.winehq.org/show_bug.cgi?id=10099
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org 2008-06-06 10:39:49 --- Closing bugs fixed in 1.0-rc4.