ios6 : Crash after launching a video - ios

I'm designing a client-server application that sync and stores files on iOS devices.
Launch of video where OK on iOS<6 but with iOS6 the app crashes and the device returns to the springboard
Debugger says :
2013-05-17 23:01:03.484 MyApp[526:907] Opening a movie : /var/mobile/Applications/1C5ED030-BBC8-4D56-A979-0BD04DCDEF8A/Documents/MyVideo.mp4
2013-05-17 23:01:03.572 MyApp[526:907] * Assertion failure in -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:], /SourceCache/UIKit/UIKit-2380.17/UIWindowController.m:211
2013-05-17 23:01:03.574 MyApp[526:907] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempting to begin a modal transition from to while a transition is already in progress. Wait for viewDidAppear/viewDidDisappear to know the current transition has completed'
** First throw call stack:
libc++abi.dylib: terminate called throwing an exception
My app uses dismissModalViewControllerAnimated and presentModalViewControllerAnimated methods (deprecated). I tried to replace theses methods by dismissViewControllerAnimated and presentViewControllerAnimated but the videos are still crashing the app.
Thanks for your help.
PS : VideosViewController.h and .m are here http://github.com/oseres/VideosViewControllerDebug

Related

libc++abi.dylib: terminating with uncaught exception of type Il2CppExceptionWrapper on restore IAP

I am Usind SDKBOX IAP for my in-app purchases in my app
when I build the app on ipad I am able to successfully purchase an item and everything is fine. When I quit my app and reopen it and then whenever I try to call restore app crashes with the following error.
I am testing on xcode 8.2.1/8.0 and using unity 5.4.2p4/5.5.1p3
free`il2cpp::vm::Exception::Raise:
showing this log when crashed
libc++abi.dylib: terminating with uncaught exception of type Il2CppExceptionWrapper
The type Il2CppExceptionWrapper is used by IL2CPP to throw managed exceptions. So this indicates that your code is causing a managed exception to occur. It is possible to debug the generated C++ code in Xcode to determine why this exception occurs. Check out the following resources we have created:
Blog post discussing how to do this: https://blogs.unity3d.com/2015/05/20/il2cpp-internals-debugging-tips-for-generated-code/
Video of us doing this on stage: https://www.youtube.com/watch?v=s7Ple1G83jc
Slides from the video: https://www.slideshare.net/joncham/il2cpp-debugging-and-profiling

iOS app crashes while playing video

When I play video containing audio with 'amr' format in iphone[version=8.3], the app quits immediately with this stacktrace:
Terminating app due to uncaught exception
'UIApplicationInvalidInterfaceOrientation', reason: 'Supported
orientations has no common orientation with the application, and
[_UIAlertShimPresentingViewController shouldAutorotate] is returning
YES' *** First throw call stack: libc++abi.dylib: terminating with
uncaught exception of type NSException (lldb)
How to handle this behaviour ?
Instead of exiting from the app, I need to inform the user with a message "Unsupported audio format" or "video can't be played".

Iphone App locks up at splash screen when i perform build

I have migrated my Iphone app to the 64 bit platform
using xcode the app builds successfully and i am able to create the archive and successfully and it passes itunes validation
Progress !!!
However when i connect my iphone to build and test the app the app opens and loads the splash screen and then locks up
I would appreciate some assistance in interpreting the error code below and advise on what i need to do to remedy the same. As i an relatively new to app development the references in the error message below mean nothing to me
the error message shown in xcode is as follows:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x15d56930> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'
*** First throw call stack:
(0x2a46e49f 0x37c24c8b 0x2a46e1a9 0x2b0d4f59 0x2b0e71af 0x2a3be81d 0x2dcee421 0x2dcefd2d 0x2db934eb 0x2db92889 0x2db9d209 0x2db91217 0x30bff0d1 0x2a434d7d 0x2a434041 0x2a4327c3 0x2a3803c1 0x2a3801d3 0x2d9951bf 0x2d98ffa1 0xe86f3 0x381a4aaf)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

Game Center causing crash in Sprite kit after app entered the background

I have a SpriteKit project in Xcode with Game Center enabled, I have it working where it shows the leaderboards, achievements, and all that stuff works. I found out after submitting it to Apple that it crashes with this error message:
<Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GKLocalPlayerInternal name]: unrecognized selector sent to instance 0x177a4eb0'
*** First throw call stack:
(0x2563cd67 0x32e9bc77 0x2564222d 0x25640109 0x25571938 0x28991bdd 0x26291ed7 0x2c355897 0x2c368d31 0x333fc423 0x333fc40f 0x334071b5 0x25602c41 0x25601361 0x2554e981 0x2554e793 0x2c927051 0x28b40981 0xda63d 0x33437aaf)
It happens when the app enters the background and comes back, sometimes (not always) it crashes.
I have searched my app for GKLocalPlayerInternal with no results, I've seen in my research HERE that this is because of an authentication glitch in iOS 8 with SpriteKit. What am I supposed to do if it really is Apple's fault, as a bug in spriteKit?
If all else fails, is it possible to just tell Game Center to not authenticate at all after it comes back from the background because we know it will crash.
Thanks in advance

Glympse Lite API Dismiss Button crash

I am trying to incorporate the Glympse Lite iOS SDK v1.0.12 into my app.
But I have a problem.
Trying to Dismiss "Sending.." screen causes the application to crash.
Tried to use solution from here https://stackoverflow.com/a/17889940/3805275 but still get the crash.
Try to do the same with the sample project GlympseHistoryLiteDemo and also get crash with the following output:
-[GLYConfiguratorViewerOwner onDismissPleaseWait:]: unrecognized selector sent to instance 0x15daa5c0
TICKET_CHANGED FIRED
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
'-[GLYConfiguratorViewerOwner onDismissPleaseWait:]: unrecognized selector sent to instance 0x15daa5c0'
*** First throw call stack:
(0x2e1d0f4b ...) libc++abi.dylib: terminating with uncaught exception of type NSException
Any ideas what might be causing this crash and possible solution ?
Btw, I was testing on iPod Touch with iOS 7.0.4.

Resources