App crashes when using media.playVideo for playing video

app crashes when i play video using media.playVideo and in between i suspend the app by pressing ipad main button(centre button).

i get this error:-

Oct 14 10:24:57 TTiPadmini01 mediaserverd[47] <Warning>: WPDeviceScanner deallocing

Oct 14 10:24:57 TTiPadmini01 wirelessproxd[66] <Notice>: (Note ) stopDeviceScan: DBDeviceTypeAirplayRouting (9)

Oct 14 10:24:57 TTiPadmini01 wirelessproxd[66] <Notice>: (Error) trying to stop a scan while the central isn’t available

Oct 14 10:24:57 TTiPadmini01 wirelessproxd[66] <Notice>: (Note ) Removed devices: <CFArray 0x14d13670 [0x3a5b2ae0]>{type = immutable, count = 1, values = (

0 : <CFString 0x14d13a70 [0x3a5b2ae0]>{contents = “WPPuckAppleTVPresence”}

)}

Oct 14 10:24:57 TTiPadmini01 wirelessproxd[66] <Notice>: (Note ) Removed devices: <CFArray 0x14d13860 [0x3a5b2ae0]>{type = immutable, count = 0, values = ()}

Oct 14 10:24:57 TTiPadmini01 SpringBoard[33] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.

Oct 14 10:24:57 TTiPadmini01 wirelessproxd[66] <Notice>: (Error) error event: (<OS_xpc_error: <error: 0x3c38a7dc> { count = 1, contents =

“XPCErrorDescription” => <string: 0x3c38a9bc> { length = 18, contents = “Connection invalid” }

}>)

 

 

Oct 14 10:24:57 TTiPadmini01 ReportCrash[3087] <Notice>: ReportCrash acting against PID 3085

Oct 14 10:24:58 TTiPadmini01 ReportCrash[3087] <Notice>: Formulating crash report for process xxxxxx[3085]

 

 

Oct 14 10:24:58 TTiPadmini01 mediaserverd[47] <Warning>: 10:24:58.138 [0x2404000] CMSession retain count > 1!

Oct 14 10:24:58 TTiPadmini01 com.apple.launchd[1] (UIKitApplication:com.xxxxxxxx[0xdf18][3085])

 

<Warning>: (UIKitApplication:com.xxxxxxxxx[0xdf18]) Job appears to have crashed: Segmentation fault: 11

Oct 14 10:24:58 TTiPadmini01 backboardd[28] <Warning>: Application

 

‘UIKitApplication:com.xxxxxxxxx[0xdf18]’ exited abnormally with signal 11: Segmentation fault: 11

Oct 14 10:24:58 TTiPadmini01 mediaremoted[21] <Warning>: Encountered an XPC error while communicating with backboardd: <error: 0x3c38a744> { count = 1, contents =

“XPCErrorDescription” => <string: 0x3c38a9dc> { length = 22, contents = “Connection interrupted” }

}

Oct 14 10:24:58 TTiPadmini01 SpringBoard[33] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.

Oct 14 10:24:58 TTiPadmini01 ReportCrash[3087] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/In The Morning_2014-10-14-102457_TTiPadmini01.ips using uid: 0 gid: 0, synthetic_euid: 501 egid: 0

Oct 14 10:25:00 TTiPadmini01 itunesstored[93] <Error>: TASK-ASSERT: cfurlcache - ProcessCacheTask - FAILED to get task-assertion, going commando with 2 items to process.

Please help, thanks in advance. 

Regards

Hello @binit,

Can you please provide more details on this? Which version of Corona SDK are you using? Which iPad is showing the crash, and what version of iOS is it running? Also, can you post your code where you load/play the video? What format is the video and how large is it?

Thanks,

Brent Sorrentino

HI

i am using:

Corona version : 2014.2393a (2014.8.5)

ios version: 7.1.2

video size  :  4.2 mb

video format :  .mp4

it crashed on both " Ipad mini " and "ipad 2 ".

i am just using the sample code even it is crashing.

local onVideoComplete = function(event)

   print( “video session ended” )

end

media.playVideo( “xxxx.mp4”, true, onVideoComplete )

if i use the sample code (streamingVideo) which was given by default with the sdk that also crashes.

one more issue is that when u called the function for playing video from a scene and after completing the video u want to change other scene than it showing first scene for some milisecond and then changed to other scene.

please help,thanks in advance.

Regards.

Hi @binit,

I received the same crash on an iPhone 4S running iOS 7.1.2. I’ve reported it to the engineers. Thanks for bringing this up.

Brent

Hello @binit,

Can you please provide more details on this? Which version of Corona SDK are you using? Which iPad is showing the crash, and what version of iOS is it running? Also, can you post your code where you load/play the video? What format is the video and how large is it?

Thanks,

Brent Sorrentino

HI

i am using:

Corona version : 2014.2393a (2014.8.5)

ios version: 7.1.2

video size  :  4.2 mb

video format :  .mp4

it crashed on both " Ipad mini " and "ipad 2 ".

i am just using the sample code even it is crashing.

local onVideoComplete = function(event)

   print( “video session ended” )

end

media.playVideo( “xxxx.mp4”, true, onVideoComplete )

if i use the sample code (streamingVideo) which was given by default with the sdk that also crashes.

one more issue is that when u called the function for playing video from a scene and after completing the video u want to change other scene than it showing first scene for some milisecond and then changed to other scene.

please help,thanks in advance.

Regards.

Hi @binit,

I received the same crash on an iPhone 4S running iOS 7.1.2. I’ve reported it to the engineers. Thanks for bringing this up.

Brent

Hi,

any update on this issue ?

In which corona sdk this issue will be fixed?

please help,thanks in advance.

Regards.

Hi @binit,

Can you please try this is the latest public build, #2511? I just want to check whether it was fixed somewhere between 2393a and 2511.

Thanks,

Brent

Hi,

any update on this issue ?

In which corona sdk this issue will be fixed?

please help,thanks in advance.

Regards.

Hi @binit,

Can you please try this is the latest public build, #2511? I just want to check whether it was fixed somewhere between 2393a and 2511.

Thanks,

Brent