Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

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

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.0, Release 3.2.1
Fix Version/sn/a
ComponentsiOS
Labelsios7, qe-3.2.1
ReporterWilson Luu
AssigneeUnknown
Created2014-02-03T22:27:14.000+0000
Updated2018-02-28T20:04:18.000+0000

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

FileDateSize
console.log2014-02-03T22:27:14.000+000010391

Comments

No comments

JSON Source