AVAnimator crashes on device - ios

I integrated the AVAnimator in my project to display video with transparent background.
On the simulator everything works perfectly fine. I can see the video, the background really is transparent and I can hear the audio.
But when I try to build and run on the device I get following error:
Assertion failure in -[SegmentedMappedData mapSegment], /transparentVideoTest/AVAnimator/SegmentedMappedData.m:300
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'mmap result EINVAL'
I'm not so familiar with mmap.
Can anyone tell me what the reason could be, when the mapping works on simulator but not on device?

I had the same problem. I solved it by going into Build Settings and changing the allowed architecture to be $(ARCHS_STANDARD_32_BIT) (Try to match your project settings to those of an AVAnimator example project )

Related

iOS Wikitude SDK crash on exit/reopen app

I've developed a simply app for iOS and Augmented Reality (with WikitudeSDK).
All go fine, but when I exit and reopen the app, at times the app crashes with the following message:
Assertion failure in -[WTGCDDriver createSharedContextWithId:], /Users/emperor/Development/Tools/Jenkins/Master/Instance/jobs/architect_sdk_builder/workspace/repositories/ios_core_services/src/Rendering/Driver/WTDriver.mm:71
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: _context'
Have you any idea of this?
Thanks.
For some reason the OpenGL context is null when you reopen your app; you receive this error because we seem to have forgotten to disable assertions for a public build. So thanks for making us aware of this oversight.
With respect to the actual issue, I cannot provide an answer without having more of an insight into what exactly your app is doing and which version and configuration of the SDK you are using.
I'd therefore like you to create a thread in the Wikitude forums which provides a platform that is better suited for assisting you with this issue than Stack Overflow is.

React native app crashes when release mode set in Xcode

RN version: 0.32.0
Application runs OK when in debug mode but crashes when release mode set in Xcode. Error message is not clear:
libc++abi.dylib: terminating with uncaught exception of type
NSException
What should I do? How to diagnose this problem? Any solution?
I have experienced this behavior when a component was given twice the same prop. Like in
<Comp propname={"a"} propname={"b"}/>
This is just a possibility, though and I don't know if it is still happening in RN 0.32. Does it run when you run it in debug mode and debug in Chrome? This was how I found my issue.
Try identifying which component is responsible for it by removing them one by one.

Random iOS CloudKit crashes during development

My app uses CloudKit and includes the following line of very basic of code:
self.cloudContainer = CKContainer.defaultContainer()
During development and debugging with Xcode, it will randomly crash on that line of code with the following exception:
*** Terminating app due to uncaught exception 'CKException', reason: 'The application is missing required entitlement com.apple.developer.icloud-services'
If I just run it again from Xcode with no changes, it may run fine or it will crash again.
I've filed a radar on the problem and, as requested by Apple, sent them my .entitlements file and crash logs. They've said the entitlements look fine but no response on a solution or workaround.
Has anyone else seen this or have a suggestion to get around it? It really makes CloudKit development difficult.

App works on Simulator but not device. Weird error message? XCODE

As the title says, the code is perfectly fine and works on the simulator as expected. When I try to run the same code on device, I get this error: 2014-10-09 23:00:07.180 Color Speed[1129:538481] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[_NSPlaceholderData initWithContentsOfFile:options:error:]: nil file argument' What does this error even mean? I would try to debug, but I have no idea where to start and have verified every line of code works (I barely started this project).
Look the reason. It show that your file argument is nil. Most of such cases are due to different file path between simulator and device. Check your code about loading file and compare the path between simulator and device.

Cordova 3.3.0 Error NSInternalInconsistencyException reason: ERROR: Config.xml does not exist

I am using Cordova 3.3.0 on a mac with xcode 5 and as soon as i launch the app, right after the native splash screen, it crashes with the above error. I noticed this has happened after I played around trying to change the splash screen plugin image. It happened after renaming of default-portrait.png and default-568h#2x.png
The exception also logs that i need to run cordova-ios/bin/cordova_plist_to_config_xml. Terminating with uncaught exception of type NSException. I do not know what needs to be done here.
I do not see what this has to do with the config.xml or why it has reacted now since I have been using this plugin for a week now with no issues.
Can anyone help me with this?

Resources