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".
Related
I am using the latest version of camera plugin in my app for recording videos. The recording works perfect on Android (front and back camera), but on iOS I am facing app crash after I start video recording using front (selfie) camera (with back camera it works perfect).
Important to mention is that the same happens in both, debug and release mode.
I am getting this as output in terminal:
2021-07-25 16:05:11.817638+0200 Runner[24063:4564758] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVCaptureAudioDataOutput setSampleBufferDelegate:queue:] NULL queue passed'
*** First throw call stack:
(0x18d8ea754 0x1a23b17a8 0x1a7845470 0x1049ef31c 0x1049ec704 0x1049f1d2c 0x1049f0a24 0x106e4c0b4 0x106e4dde0 0x106e55ef0 0x106e56d14 0x106e63a50 0x1d944e7a4 0x1d945574c)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVCaptureAudioDataOutput setSampleBufferDelegate:queue:] NULL queue passed'
terminating with uncaught exception of type NSException
You could try running the App in release mode using this command in the Terminal:
flutter run --release
Maybe this is just a problem with the debug build.
If my app in on foreground, then I open app switcher then for quit my app, it'll crash. In the console there are:
libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
But if I bring it to background, then I open app switcher then for quit my app, it won't crash.
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)
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.
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