Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16363

iOS 7: VideoPlayer - A "invalid context 0x0" error message appears in console while running Ti.Media.VideoPlayer only on iPad iOS 7

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.2.0, Release 3.2.1
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      Appcelerator Studio, build: 3.2.1.201401311225
      SDK build: 3.2.1.v20140130101648
      CLI: 3.2.1-beta3
      Alloy: 1.3.1-cr
      Xcode: 5.0.2
      Devices: ipad 2 (7.0.4)

      Description

      Details: If you run Ti.Media.VideoPlayer only on an iPad running iOS 7, then a "invalid context 0x0" error message appears in the console. But, VideoPlayer is still able to stream the remote video file.

      Note:
      1. This is not a regression since this occurs in 3.2.0.GA as well (but, only on iPad running iOS 7)
      2. Do not see the error message on the following test devices: iphone 5s (7.0.2), iphone 5 (6.1.3), ipad 4 (6.0.1)

      Steps to reproduce:
      1. Run the following app.js on an iPad running iOS 7:

      var window = Ti.UI.createWindow({
      	backgroundColor: 'white'
      });
       
      var activeMovie = Titanium.Media.createVideoPlayer({
      	url : 'http://movies.apple.com/media/us/ipad/2010/tours/apple-ipad-video-us-20100127_r848-9cie.mov',
      	movieControlMode : Titanium.Media.VIDEO_CONTROL_DEFAULT,
      	scalingMode : Titanium.Media.VIDEO_SCALING_MODE_FILL,
      	autoplay : true
      });
       
      window.add(activeMovie);
      activeMovie.play();
       
      activeMovie.addEventListener('playing', function() {
      	Ti.API.info('playing');
      });
       
      window.open();
      

      2. Check Xcode console

      Actual: The following error message appears in the Xcode console:

      MediaModule[259] <Error>: CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
      

      Also, see console.log attachment for the raw logs.

      Expected: Should not see this error message in the console.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                wluu Wilson Luu (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

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

                    Git Integration