[Mono-bugs] [Bug 585864] New: Device crash attempting to play sound

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 5 12:18:30 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=585864

http://bugzilla.novell.com/show_bug.cgi?id=585864#c0


           Summary: Device crash attempting to play sound
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Runtime
        AssignedTo: gnorton at novell.com
        ReportedBy: rickgross at mac.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8

Using the following code. Sound file begins to play then cuts off and app
crashes:

public void PlayAlert(string soundFile)
        {
            try
            {
            SystemSound.Vibrate.PlaySystemSound();

            var basedir = Environment.CurrentDirectory;           //Get path to
app contents
            string audioFilePath = Path.Combine(basedir, soundFile);
            AVAudioPlayer audioPlayer = new AVAudioPlayer();
                audioPlayer = AVAudioPlayer.FromUrl (new NSUrl (audioFilePath,
false));
                               audioPlayer.PrepareToPlay();
                                audioPlayer.Volume =
store.volLevel;//this.slVolume.Value;
                                audioPlayer.Play();    
            }
            catch(Exception ex)
            {
                Debug.WriteLine("Error in PlaySound - "+ex.ToString());
            }
        }

Reproducible: Always

Steps to Reproduce:
1. Start app
2.
3.
Actual Results:  
Crash


Device Log:
Fri Mar  5 11:13:45 unknown kernel[0] <Debug>: launchd[1041] Builtin profile:
container (seatbelt)
Fri Mar  5 11:13:45 unknown kernel[0] <Debug>: launchd[1041] Container:
/private/var/mobile/Applications/EA6CC31F-2355-44E7-824C-29C37D810E76
(seatbelt)
Fri Mar  5 11:13:46 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
Startup
Fri Mar  5 11:13:46 unknown SpringBoard[24] <Warning>: No valid
'aps-environment' entitlement string found for application 'PicPlanner':
(null). Notifications will not be delivered.
Fri Mar  5 11:13:47 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
TableViewDelegate
Fri Mar  5 11:13:47 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
TableViewDataSource
Fri Mar  5 11:13:47 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
RowsSelected
Fri Mar  5 11:13:47 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
Stacktrace:
Fri Mar  5 11:13:47 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
  at (wrapper managed-to-native)
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend (intptr,intptr) <0xffffffff>
Fri Mar  5 11:13:47 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
  at MonoTouch.Foundation.NSObject.Release () <0x00034>
Fri Mar  5 11:13:47 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
  at MonoTouch.Foundation.NSObject.Dispose (bool) <0x0004b>
Fri Mar  5 11:13:47 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
  at MonoTouch.Foundation.NSObject.Finalize () <0x0002b>
Fri Mar  5 11:13:47 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
  at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__
(object,intptr,intptr,intptr) <0x0007b>
Fri Mar  5 11:13:47 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
Native stacktrace:
Fri Mar  5 11:13:47 unknown com.apple.SpringBoard[24] <Notice>: CoreAnimation:
timed out fence 500
Fri Mar  5 11:13:47 unknown com.apple.SpringBoard[24] <Notice>: wait_fences:
failed to receive reply: 10004003
Fri Mar  5 11:13:48 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
    0   PocketPicPlanner                    0x000442a4
mono_handle_native_sigsegv + 412
Fri Mar  5 11:13:48 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
    1   PocketPicPlanner                    0x0000c3ec
mono_sigsegv_signal_handler + 300
Fri Mar  5 11:13:48 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
    2   libSystem.B.dylib                   0x33b3b7f3 _sigtramp + 34
Fri Mar  5 11:13:48 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
    3   AVFoundation                        0x316c20c8 -[AVAudioPlayer dealloc]
+ 144
Fri Mar  5 11:13:48 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
    4   AVFoundation                        0x316c20c8 -[AVAudioPlayer dealloc]
+ 144
Fri Mar  5 11:13:48 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
    5   CoreFoundation                      0x323d7641 -[NSObject release] + 34
Fri Mar  5 11:13:48 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
    6   PocketPicPlanner                    0x00260300
wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_void_objc_msgSend_intptr_intptr
+ 72
Fri Mar  5 11:13:48 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
Error connecting stdout and stderr (192.168.1.106:10001)
Fri Mar  5 11:13:48 unknown UIKitApplication:Cognitopia[0xb09a][1041] <Notice>:
* Assertion: should not be reached at ../../../../mono/mini/mini-darwin.c:258
Fri Mar  5 11:13:48 unknown com.apple.SpringBoard[24] <Notice>: CoreAnimation:
timed out fence 500

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list