Log in or register to post comments

Complete Crash when launching "Handheld.PlayFullScreenMovie"

October 29, 2012 - 10:30am #1

Hello there,

I am using the latest imagemarker example, the latest version of Unity, the latest version of the SDK and Vuforia plug in. 

When I touch a detected object on the screen, I want to launch a MP4 movie. 

Everything works great, but when I want to click done to close the movie, the app crashes and the movie hangs.
The only thing I can do is force quit.

This used to work before, what am I doing wrong here please?

Thank you, best regards

 

### 

 

 

#pragma strict

#pragma implicit

#pragma downcast

 

 

var animationState="DOWN";

 

 

 

function Update () {

 

Debug.Log(animationState);

 

    var hit : RaycastHit;

    for (var i = 0; i < Input.touchCount; ++i) {

        if (Input.GetTouch(i).phase == TouchPhase.Began) {

 

        var ray = Camera.main.ScreenPointToRay (Input.GetTouch(i).position);

        if (Physics.Raycast (ray,hit)) {

Debug.Log(hit.transform.name+" touched"); 

 

 

 if (hit.transform.name=="pussycat") { 

 

  Handheld.PlayFullScreenMovie ("mymovie.mp4", Color.black, FullScreenMovieControlMode.Full, FullScreenMovieScalingMode.AspectFit);

         

             }

      

    

          }

       }

   }

}

 

 

 

Hi Etienne, I think this

January 21, 2013 - 9:30am #8

Hi Etienne,

I think this issue is partly iOS related as one seems to get different behaviour on iOS4/5/6.

My understanding is that iOS6 is where the main problems seem to arise, but that iOS5 is fine.

We are investigating this issue and I will revert back when there is any news.

N

Complete Crash when launching "Handheld.PlayFullScreenMovie"

January 21, 2013 - 8:21am #7

Hi

I was wondering whether you got this issue resolved? I seems It have the same problem (the errors in the debug log look very similar): I have a unity project that at the start of app calls PlayFullScreenMovie, this was working fine, until I included the vuforia libraries/assets in the project. Now when I try to skip the movie, it crashes. I only noticed this after a while, as it occurs only on an iPhone 4S, not when I test it on an iPhone 4 or iPhone 3GS.

Also, the scene that is active at the time of calling PlayFullScreenMovie does not have an ARCamera or any vuforia scripts in, so that is why I seem to think it is the mere inclusion of the library, rather than starting the qcar scripts.

Thanks

Etienne

Complete Crash when launching "Handheld.PlayFullScreenMovie"

November 2, 2012 - 4:47am #6

Hi barebone,

Please PM me with a link to your project and I will take a look.

thanks,

N

Complete Crash when launching "Handheld.PlayFullScreenMovie"

November 1, 2012 - 7:54am #5

Hi Nalin,

sure. I am using Unity 3.5.6 with the latest Xcode and IOS6 as well as the latest versions of the Vuforia extension. 

I just set up a new simple complete new project. 

I call a movie with 

Handheld.PlayFullScreenMovie ("testmovie.mp4", Color.black, FullScreenMovieControlMode.Full, FullScreenMovieScalingMode.AspectFit);

When I click on "DONE" in the movie the iphone does not return to the camera view.

Can you please help me? Can I send you the project? All of my projects compiled so far are suddenly not working any more because of this issue. 

 

Thanks, best regards

 

Nov  1 15:49:42 iPhone-4S-Michel ar[2300] <Error>: CGContextSaveGState: invalid context 0x0

Nov  1 15:49:42 iPhone-4S-Michel ar[2300] <Error>: CGContextClipToRect: invalid context 0x0

Nov  1 15:49:42 iPhone-4S-Michel ar[2300] <Error>: CGContextTranslateCTM: invalid context 0x0

Nov  1 15:49:42 iPhone-4S-Michel ar[2300] <Error>: CGContextDrawShading: invalid context 0x0

Nov  1 15:49:42 iPhone-4S-Michel ar[2300] <Error>: CGContextRestoreGState: invalid context 0x0

2012-11-01 15:49:42.437 ar[2300:907] [MPAVController] Autoplay: Disabling autoplay for pause

2012-11-01 15:49:42.438 ar[2300:907] [MPAVController] Autoplay: Disabling autoplay

Nov  1 15:49:42 iPhone-4S-Michel ar[2300] <Error>: CGContextSaveGState: invalid context 0x0

Nov  1 15:49:42 iPhone-4S-Michel ar[2300] <Error>: CGContextClipToRect: invalid context 0x0

Nov  1 15:49:42 iPhone-4S-Michel ar[2300] <Error>: CGContextTranslateCTM: invalid context 0x0

Nov  1 15:49:42 iPhone-4S-Michel ar[2300] <Error>: CGContextDrawShading: invalid context 0x0

Nov  1 15:49:42 iPhone-4S-Michel ar[2300] <Error>: CGContextRestoreGState: invalid context 0x0

2012-11-01 15:49:42.506 ar[2300:907] [MPAVController] Autoplay: Skipping autoplay, disabled (for current item: 1, on player: 0)

2012-11-01 15:49:42.556 ar[2300:907] [MPAVController] Autoplay: Enabling autoplay

2012-11-01 15:49:42.574 ar[2300:907] [MPAVController] Autoplay: Likely to keep up or full buffer: 0

2012-11-01 15:49:42.575 ar[2300:907] [MPAVController] Autoplay: Skipping autoplay, not enough buffered to keep up.

2012-11-01 15:49:42.585 ar[2300:907] [MPCloudAssetDownloadController] Prioritization requested for media item ID: 0

2012-11-01 15:49:42.748 ar[2300:907] [MPAVController] Autoplay: Likely to keep up or full buffer: 1

2012-11-01 15:49:42.751 ar[2300:907] [MPAVController] Autoplay: Enabling autoplay

2012-11-01 15:49:42.781 ar[2300:907] [MPAVController] Autoplay: _streamLikelyToKeepUp: 0 -> 1

2012-11-01 15:49:45.785 ar[2300:907] [MPAVController] Autoplay: Disabling autoplay for pause

2012-11-01 15:49:45.786 ar[2300:907] [MPAVController] Autoplay: Disabling autoplay

2012-11-01 15:49:45.789 ar[2300:907] [MPAVController] Autoplay: Disabling autoplay

2012-11-01 15:49:45.792 ar[2300:907] [MPAVController] Autoplay: Disabling autoplay for pause

2012-11-01 15:49:45.794 ar[2300:907] [MPAVController] Autoplay: Disabling autoplay

2012-11-01 15:49:45.909 ar[2300:907] [MPAVController] Autoplay: Enabling autoplay

2012-11-01 15:49:45.923 ar[2300:907] [MPAVController] Autoplay: Likely to keep up or full buffer: 0

2012-11-01 15:49:45.924 ar[2300:907] [MPAVController] Autoplay: Skipping autoplay, not enough buffered to keep up.

StartQCAR

 

(Filename: /Applications/buildAgent/work/14194e8ce88cdf47/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)

 

2012-11-01 15:49:45.939 ar[2300:907] DEBUG/AR(2300) UIView has CAEAGLLayer class

2012-11-01 15:49:45.941 ar[2300:907] DEBUG/AR(2300) UIView does not respond to selector renderFrameQCAR

2012-11-01 15:49:45.942 ar[2300:907] DEBUG/AR(2300) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-11-01 15:49:45.944 ar[2300:907] DEBUG/AR(2300) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-11-01 15:49:45.950 ar[2300:907] DEBUG/AR(2300) UIView has CAEAGLLayer class

2012-11-01 15:49:45.951 ar[2300:907] DEBUG/AR(2300) UIView does not respond to selector renderFrameQCAR

2012-11-01 15:49:45.952 ar[2300:907] DEBUG/AR(2300) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-11-01 15:49:45.953 ar[2300:907] DEBUG/AR(2300) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-11-01 15:49:45.957 ar[2300:907] DEBUG/AR(2300) UIView has CAEAGLLayer class

2012-11-01 15:49:45.958 ar[2300:907] DEBUG/AR(2300) UIView does not respond to selector renderFrameQCAR

2012-11-01 15:49:45.959 ar[2300:907] DEBUG/AR(2300) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-11-01 15:49:45.960 ar[2300:907] DEBUG/AR(2300) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

Trackable stones lost

 

(Filename: /Applications/buildAgent/work/14194e8ce88cdf47/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)

 

Trackable stones found

 

(Filename: /Applications/buildAgent/work/14194e8ce88cdf47/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)

 

Trackable stones lost

 

(Filename: /Applications/buildAgent/work/14194e8ce88cdf47/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)

 

Complete Crash when launching "Handheld.PlayFullScreenMovie"

October 31, 2012 - 2:45am #4

There is no reason this should not work.

"This used to work in former versions, "

...can you be more specific - iOS SDK, iPhone version, Unity version?

what does the log say?

have you tried using your video in the VideoPlayback sample?

N

Complete Crash when launching "Handheld.PlayFullScreenMovie"

October 30, 2012 - 6:49am #3

Hello there,

yes I took a look at the example. It works great, but what I want do is have an augmentation say a cube. I click on that cube and then a video opens full screen. When I click on "DONE" the movie closes and I am back in the AR camera screen.

This used to work in former versions, now it just crashes.

Thanks, best regards 

Complete Crash when launching "Handheld.PlayFullScreenMovie"

October 30, 2012 - 3:46am #2

Hi barebone,

I just wanted to check whether you started with the Video Playback sample as opposed to ImageTargets?

This offers an out-of-the-box solution to playing videos over augmentations.

More info and guidelines below.

N

https://ar.qualcomm.at/content/video-playback-sample-app-posted

https://ar.qualcomm.at/content/video-playback-sample-guidelines

Log in or register to post comments