Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.1.0
    • Fix Version/s: Release 5.1.0
    • Component/s: iOS
    • Environment:

      Mac OSX El Capitan 10.11 (15A284)
      Ti SDK: 5.1.0.v20151113005238
      Appc Studio: 4.4.0.201511130407
      Appc NPM: 4.2.1
      Appc CLI: 5.1.0-54
      Ti CLI: 5.0.4
      Alloy: 1.7.25
      Xcode 7.1(7B91b)
      Node v0.12.7
      production

      Description

      Description:

      This is a regression from 5.0.2.GA
      Sound fails to play when an app is built with Ti SDK 5.1.0. The following error occurs attempting to play a sound from a device:

      Nov 16 12:48:33 Future-Angle AudioTester[1141] <Warning>: *** -[NSLock lock]: deadlock (<NSLock: 0x146e7b830> '(null)')
      Nov 16 12:48:33 Future-Angle AudioTester[1141] <Warning>: *** Break on _NSLockError() to debug.
      

      The bug was originally found when running the sound test cases in KitchenSink, but the same issue occurs when isolated into a separate app.

      Steps to reproduce:

      1. Create a Classic project.
      2. Include attached .wav file to project directory > Resources > etc
      3. Add following demo code to app.js:

      var win = Titanium.UI.createWindow({
      		title: "Window One"
      	});
      		
      	//TODO: USE OBJECT
      	var sound = Titanium.Media.createSound();
      	sound.url='/etc/cricket.wav'; // For testing #1913
      	
      	//
      	// PLAY
      	//
      	var play = Titanium.UI.createButton({
      		title:'Play',
      		height:40,
      		width:145,
      		left:10,
      		top:10
      	});
      	play.addEventListener('click', function()
      	{
      		sound.play();		
      	});
      	win.add(play);
      	
      win.open();
      

      3. Run app to device.
      4. Press play.

      Result:

      Receive deadlock error and sound fails to play.

      Expected Result:

      app should not deadlock and should succeed in playing the sample file.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                apetkov Angel Petkov
                Reporter:
                htbryant Harry Bryant
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-20687
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration