App crash on iOS 9.02 - objective-c

I am populating a tableview which get data from an array. It has multiple selection and reloading multiple times. There's no problem in logic. It works fine on iOS 7, 8 but crash on iOS 9.02 with this error.
Any solution please ?
: HW kbd: Failed to set (null) as keyboard focus
Oct 14 10:40:06 iPhone SpringBoard[48] :
UNNotificationRegistrarConnectionListener connection invalidated
Oct 14 10:40:06 iPhone com.apple.xpc.launchd[1]
(UIKitApplication:com.projectname.catalogue[0x743e][369]) :
Service exited due to signal: Segmentation fault: 11
Oct 14 10:40:06 iPhone SpringBoard[48] : Application
'UIKitApplication:com.project_name.catalogue[0x743e]' crashed.
Oct 14 10:40:06 iPhone UserEventAgent[23] : 676658830601:
id=com.project_name.catalogue pid=369, state=0
Oct 14 10:40:06 iPhone ReportCrash[370] : Formulating report
for corpse[369] projectname
Oct 14 10:40:06 iPhone ReportCrash[370] :
platform_thread_get_unique_id matched 113197
Oct 14 10:40:06 iPhone ReportCrash[370] : saved type
'109_projectname' report (3 of max 25) as
/var/mobile/Library/Logs/CrashReporter/project_name_2015-10-14-104006_iPhone.ips
Oct 14 10:40:11 iPhone kernel[0] : AppleARMPMUCharger:
limiting USB input current to 500 mA (measured 519 mA)
Oct 14 10:40:11 iPhone kernel[0] : AppleARMPMUCharger:
limiting USB input current to 400 mA (measured 513 mA)

iOS 9.0 demands compulsory to create property for some classes. For example, I created UIImageView without property. When I accessed Table Cell again and again with multiple reloading, it does not able to save previous value of the property. And then it causes to crashes. But iOS<9.0 does show any crash.

Related

Custom keyboard crashes in App Store, but not in when launched from Xcode

I have found that installing and using custom keyboard works fine for my app when launching from Xcode, but if I release it to TestFlight or the AppStore then it crashes when a user clicks on a textbox and tries to bring up the keyboard. As far as I am aware there is nothing special about any of the textboxes in my app. The stack trace is:
Thread : Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 6512725832 __exceptionPreprocess
1 libobjc.A.dylib 6869942144 objc_exception_throw
2 CoreFoundation 6512725528 +[NSException raise:format:]
3 Foundation 6528403996 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4 UIKit 6606881444 -[UIColor encodeWithCoder:]
5 Foundation 6528169072 _encodeObject
6 Foundation 6528197336 +[NSKeyedArchiver archivedDataWithRootObject:]
7 UIKit 6609904352 -[_UIAppearanceRecorder _recordInvocation:withClassName:containerClassNames:traitCollection:selectorString:forRemoteProcess:]
8 UIKit 6609884356 __54+[_UIAppearance _recordersExcludingSource:withWindow:]_block_invoke
9 CoreFoundation 6511594744 __65-[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:]_block_invoke
10 CoreFoundation 6511594448 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:]
11 UIKit 6609883592 +[_UIAppearance _recordersExcludingSource:withWindow:]
12 UIKit 6611900724 UIViewServiceCurrentAppearanceSerializedRepresentations
13 UIKit 6610654700 +[_UIRemoteViewController _requestViewController:traitCollection:fromServiceWithBundleIdentifier:service:connectionHandler:]
14 UIKit 6610654160 +[_UIRemoteViewController requestViewControllerWithService:connectionHandler:]
15 UIKit 6609355772 __117-[NSExtension(UIViewControllerAdditions) instantiateViewControllerWithInputItems:listenerEndpoint:connectionHandler:]_block_invoke_2
16 libdispatch.dylib 6878402280 _dispatch_call_block_and_release
17 libdispatch.dylib 6878402216 _dispatch_client_callout
18 libdispatch.dylib 6878424496 _dispatch_main_queue_callback_4CF
19 CoreFoundation 6512427512 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
20 CoreFoundation 6512418912 __CFRunLoopRun
21 CoreFoundation 6511561888 CFRunLoopRunSpecific
22 GraphicsServices 6701891720 GSEventRunModal
23 UIKit 6602887164 UIApplicationMain
24 MyApp 4296179280 main (main.m:16)
25 libdyld.dylib 6878603448 start
Looking at the live device console I see the following messages:
Dec 8 15:22:11 cjhills-iPhone poc[371] <Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Only RGBA or White color spaces are supported in this situation.'
*** First throw call stack:
(0x18244cf48 0x1978f7f80 0x18244ce18 0x183340a1c 0x187e182a4 0x183307470 0x18330e2d8 0x1880fa2e0 0x1880f54c4 0x182338cf8 0x182338bac 0x1880f51c8 0x1882e1934 0x1881b15ec 0x1881b13d0 0x1880743fc 0x1981096e8 0x1981096a8 0x19810edb0 0x1824041f8 0x182402060 0x182330ca0 0x18d8b4088 0x187a48ffc 0x10014e434 0x19813a8b8)
Dec 8 15:22:11 cjhills-iPhone SpringBoard[58] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Dec 8 15:22:11 cjhills-iPhone SpringBoard[58] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Dec 8 15:22:11 cjhills-iPhone SwiftKey[337] <Warning>: host connection <NSXPCConnection: 0x14ce60290> connection from pid 371 invalidated
Dec 8 15:22:11 cjhills-iPhone SpringBoard[58] <Warning>: UNNotificationRegistrarConnectionListener connection invalidated
Dec 8 15:22:11 cjhills-iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.cjhill.myapp[0x5a38][371]) <Notice>: Service exited due to signal: Abort trap: 6
Dec 8 15:22:11 cjhills-iPhone diagnosticd[85] <Error>: unable to find offset 0x9812fa5c in shared cache for arch 'arm64'
Dec 8 15:22:11 cjhills-iPhone ReportCrash[372] <Notice>: platform_thread_get_unique_id matched 66610
Dec 8 15:22:11 cjhills-iPhone ReportCrash[372] <Notice>: Formulating report for corpse[371] myapp
Dec 8 15:22:11 cjhills-iPhone ReportCrash[372] <Warning>: saved type '109_myapp' report (2 of max 25) as /var/mobile/Library/Logs/CrashReporter/myapp_2015-12-08-152211_cjhills-iPhone.ips
Dec 8 15:22:11 cjhills-iPhone SpringBoard[58] <Warning>: Application 'UIKitApplication:com.cjhill.myapp[0x5a38]' crashed.
Dec 8 15:22:11 cjhills-iPhone UserEventAgent[26] <Warning>: 549612077011: id=com.cjhill.myapp pid=371, state=0
It appears from the stack trace that you use UIAppearance proxies to set up your App's appearance.
An interesting quirk of iOS extensions is that the customizations made in the other apps using this API are actually passed to extensions contained in the app (at least in the case of keyboard extensions).
To ensure security, all objects passed must be encoded using NSSecureCoding, which therefore requires that any objects you use in UIAppearance must conform to this protocol (and actually fulfill what it promises), as long as a user is using a keyboard extension in your app.
It appears that your app in this case is attempting to pass a color which can't be archived. Perhaps you are using an image as a color using +[UIColor colorWithPatternImage:], which would fit the error -- an image probably has no color in the sense UIColor means.
I recommend you audit your app's code for any instances where a UIAppearance is used to set a color, particularly when exotic calls like colorWithPatternedImage: are used, and remove them. Perhaps swizzle all UIAppearance calls to no-ops, push up an internal beta in TestFlight, and see if the problem is solved to confirm that this is the issue.
Regardless of which of these it is: File a bug with Apple. Apps should not crash just because they can't encode their UIAppearance correctly, especially when doing something that is, frankly, undesirable.
EDIT: it is possible to reproduce this issue without using TestFlight, whilst running an app in release (you can turn this on by going to product->scheme->edit scheme) by adding a line of code to set the background color of a UIButton to a UIColor which is a patterned color, then invoking a keyboard extension.

Windows Phone App crashes after Launcher.LaunchFileAsync when downloaded from store

I have a strange problem, if I deploy my app through visual studio as debug or release version all is working well. But if I publish it to the store and download it from there the app crashes after Launcher.LaunchFileAsync or FileOpenPicker.
When my app launches for example the default app for photos, the photo is loaded into the photo app and got displayed. After pushing the Hardwarebackbutton, the store installation goes back to the windows phone home screen, the visual studio deployed version goes back to the last screen of my app. The same issue is with the FileOpenPicker.
In a previous version of my app this works and I haven't changed the code around this. New in this version is the usage of Unity and Prism (in the previous I haven't used any container framework).
I tried to debug this with an store beta app and write all UnhandledExceptions to a file in LocalStorage, but it seems that there are no UnhandledException.
Does anyone had the same problems and have some hints or experiences to find out the problem? Is there any possibility to debug my app downloaded from the store?
Exception from the store:
"Frame Bild Funktion Offset
0 Windows.UI.Xaml.dll DirectUI::NavigationHistory::WritePageStackEntryToString 0x000000f9
1 Windows.UI.Xaml.dll DirectUI::NavigationHistory::GetNavigationState 0x000000d7
2 Windows.UI.Xaml.dll DirectUI::Frame::GetNavigationStateImpl 0x0000002f
3 Windows.UI.Xaml.dll DirectUI::FrameGenerated::GetNavigationState 0x00000033
4 WINDOWS.NI.WINMD 0x00403a41
5 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000c661
6 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000d191
7 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000e739
8 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000f5df
9 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000cc81
10 Microsoft.Practices.Prism.StoreApps.Phone.ni.DLL 0x00005ed3
11 Microsoft.Practices.Prism.StoreApps.Phone.ni.DLL 0x000063f3
12 Microsoft.Practices.Prism.StoreApps.Phone.ni.DLL 0x00005723
13 WINDOWS.NI.WINMD 0x004bacc5
14 CoreClr.dll COMToCLRDispatchHelper 0x0000003d
15 CoreClr.dll GenericComCallStub 0x00000019
16 Windows.UI.Xaml.dll Microsoft::WRL::EventSource_Windows::UI::Xaml::ISuspendingEventHandler,Microsoft::WRL::InvokeModeOptions_-2_ _::DoInvoke__lambda_23bdf1386dc85166ec5d0f15e3e7ceef_ _ 0x00000047
17 Windows.UI.Xaml.dll XAML::PLM::ASTAEventSource_Windows::UI::Xaml::ISuspendingEventHandler,IInspectable,Windows::ApplicationModel::ISuspendingEventArgs_::InvokeHandlers 0x0000000d
18 Windows.UI.Xaml.dll XAML::PLM::PLMHandler::OnSuspending 0x00000095
19 twinapi.appcore.dll Microsoft::WRL::InvokeTraits_-2_::InvokeDelegates__lambda_19fa2f90eeadc306808dc8b8c64b7666_,Windows::Foundation::IEventHandler_Windows::ApplicationModel::SuspendingEventArgs *_ _ 0x00000057
20 twinapi.appcore.dll Microsoft::WRL::EventSource_Windows::Foundation::IEventHandler_Windows::ApplicationModel::SuspendingEventArgs *_,Microsoft::WRL::InvokeModeOptions_-2_ _::DoInvoke__lambda_19fa2f90eeadc306808dc8b8c64b7666_ _ 0x0000004d
21 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplicationView::SuspendResume 0x000000b3
22 twinapi.appcore.dll _lambda_806d9f75e467416c61267ff2e6219463_::operator 0x00000055
23 twinapi.appcore.dll Microsoft::WRL::Details::InvokeHelper_Microsoft::WRL::Implements_Microsoft::WRL::RuntimeClassFlags_2_,Windows::UI::Core::IDispatchedHandler,Microsoft::WRL::FtmBase,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Detai 0x0000000f
24 windows.ui.dll Windows::UI::Core::CDispatcher::ProcessInvokeItem 0x000001b3
25 windows.ui.dll Windows::UI::Core::CDispatcher::WaitAndProcessMessages 0x000001dd
26 windows.ui.dll Windows::UI::Core::CDispatcher::ProcessEvents 0x00000063
27 Windows.UI.Xaml.dll CJupiterWindow::RunCoreWindowMessageLoop 0x0000003b
28 Windows.UI.Xaml.dll CJupiterControl::RunMessageLoop 0x0000001b
29 Windows.UI.Xaml.dll DirectUI::DXamlCore::RunMessageLoop 0x00000027
30 Windows.UI.Xaml.dll DirectUI::FrameworkView::Run 0x0000000f
31 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplicationView::Run 0x00000027
32 twinapi.appcore.dll _lambda_57350c7fa2f68b1d43d8bfac2a0781a8_::operator 0x000000c7
33 shcore.dll _WrapperThreadProc 0x00000149
34 ntdll.dll RtlUserThreadStart 0x00000017"
Looks like you failed to use LaunchFileAsync/FileOpenPicker correctly. Follow this guide carefully.
Unless debugging, OS terminates your process just after you've called the picker (especially on low-memory devices with 512MB RAM). It's up to your application to save its state, and when reactivated restore the state and take user to the exact place in your app where she was.
Also, here’s how you can debug the problem.

Xcode 6.3.1 crashes when opening existing project

I updated Xcode to the latest version via the App Store, as it normal.
I am unable to open any existing project.
I have deleted all Derived Data and have restarted my laptop. Still crashing. And, I have no 3rd party plug ins.
I am including most of the dump. Didn't include the binary images data.
It appears that it might be related to the interface builder. The one app that I want to open, has the Storyboard as the foremost tab.
Thanks for any help in solving this.
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6D1002
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-7702/Foundation/Utilities/IBFoundationAdditions.m:3148
Details: No object for "NSFont" key.
Object: <NSDictionary>
Method: +ib_strictDictionaryWithKeysAndObjects:
Thread: <NSThread: 0x7ffa00c39650>{number = 1, name = main}
Hints: None
Backtrace:
0 0x000000010520cbfa -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:message Format:arguments:] (in IDEKit)
1 0x0000000103f6ab9f _DVTAssertionHandler (in DVTFoundation)
2 0x0000000103f6ae8e _DVTAssertionFailureHandler (in DVTFoundation)
3 0x000000010b307ab6 +[NSDictionary(IBDictionaryAdditions) ib_strictDictionaryWithKeysAndObjects:] (in IBFoundation)
4 0x000000010fb0e22f IBTextAttributesWithFontColorShadowAndAlignment (in IDEInterfaceBuilderKit)
5 0x000000010fb0e000 __48+[IBViewControllerPlaceholderStyle defaultStyle]_block_invoke (in IDEInterfaceBuilderKit)
6 0x00007fff8d1adc13 _dispatch_client_callout (in libdispatch.dylib)
7 0x00007fff8d1adb26 dispatch_once_f (in libdispatch.dylib)
8 0x000000010fb0dd8e +[IBViewControllerPlaceholderStyle defaultStyle] (in IDEInterfaceBuilderKit)
9 0x000000010fb0e458 IBDrawViewPlaceholder (in IDEInterfaceBuilderKit)
10 0x00000001141e23f9 (in IDEInterfaceBuilderCocoaTouchIntegration)
I fixed this by fixing another issue. OS X app store kept crashing on installation of 10.10. Solved it by downloading 10.10 from Apple directly.
Then, the issue with Xcode just simply went away! And, now app store app works right. Must have been some corruption in the app store itself.

Do not called function -mapView:didUpdateUserLocation

-mapView:didUpdateUserLocation function does not called in my new app. It is base on iOS 7 and Xcode 5.
that function will be called in the simulator, but it can not called on the iPhone 5(iOS7).
and got the fllowing error
2013-10-15 22:34:18.754 FloweryFairy-iOS7[3879:a0b] Cannot find executable for CFBundle 0x9dc8540 (not loaded)
Oct 15 22:34:19 Hseecoms-iMac.local FloweryFairy-iOS7[3879] : CGBitmapContextCreate: unsupported parameter combination: 5 integer bits/component; 16 bits/pixel; 3-component color space; kCGImageAlphaNoneSkipLast; 512 bytes/row.
2013-10-15 22:34:19.164 FloweryFairy-iOS7[3879:9303] vImage decode failed, falling back to CG path.

Xcode 4 templates don't work in iOS 3.1.2

I would like to test my app for older phones, and got one with 3.1.2. But when I try to run it, it just show the splash screen and then crash.
Then I tried to make a new Hello World view-based app from Xcode 4 templates, but even with this one it build fine but crash on startup. I set deployment target to 3.1.
If i try to run this one with iPad 3.2 simulator, it also crashes.
Where can the problem be?
When i run it on iOS device, it gives this warnings and then just stop, not really crash:
warning: UUID mismatch detected with the loaded library - on disk is:
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1/Symbols/System/Library/Priv
UPDATE:
I found that I earlier had made a shortcut from 3.1.2 (7D11) to 3.1.2 in the DeviceSupport folder for some reason. I removed that and now I don't get the warnings anymore. Just a crash ;)
0 gdb-arm-apple-darwin
0x000000010010974a internal_vproblem +
308 1 gdb-arm-apple-darwin
0x0000000100109924 internal_verror +
27 2 gdb-arm-apple-darwin
0x00000001001099c2 align_down + 0 3
gdb-arm-apple-darwin
0x0000000100150c5e macosx_solib_add +
794 4 gdb-arm-apple-darwin
0x000000010016417c
remote_macosx_complete_create_or_attach
+ 187 5 gdb-arm-apple-darwin 0x000000010016489e
remote_macosx_create_inferior + 1252 6
gdb-arm-apple-darwin
0x000000010005f6c3 run_command_1 + 586
7 gdb-arm-apple-darwin
0x0000000100107b7f execute_command +
557 8 gdb-arm-apple-darwin
0x00000001000171e7
mi_execute_async_cli_command + 204 9
gdb-arm-apple-darwin
0x00000001000168e5
captured_mi_execute_command + 344 10
gdb-arm-apple-darwin
0x0000000100072a62 catch_exception +
57 11 gdb-arm-apple-darwin
0x000000010001443e mi_execute_command
+ 140 12 gdb-arm-apple-darwin 0x0000000100077721 process_event + 133
13 gdb-arm-apple-darwin
0x0000000100078435 gdb_do_one_event +
1049 14 gdb-arm-apple-darwin
0x0000000100072b49 catch_errors + 70
/SourceCache/gdb/gdb-1518/src/gdb/macosx/macosx-nat-dyld.c:1648:
internal-error: unrecognized shared
library breakpoint A problem internal
to GDB has been detected, further
debugging may prove unreliable.
When i run iPad simulator, it crash on this line in HelloWorldAppDelegate.m:
self.window.rootViewController = self.viewController;
with this message:
2011-04-21 11:46:09.006 HelloWorld[5492:207] * -[UIWindow setRootViewController:]: unrecognized selector sent to instance 0x4c11bb0
2011-04-21 11:46:09.007 HelloWorld[5492:207] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '** -[UIWindow setRootViewController:]: unrecognized selector sent to instance 0x4c11bb0'
UPDATE:
This was solved by this:
// self.window.rootViewController = self.viewController;
[self.window addSubview: [self.viewController view]];
Use [window addSubview: [myRootViewController view]]; instead of [window: setRootViewController: myRootViewController]; in your app delegate.
I was having the exact same problem as you, and every app I created from an Xcode 4 template would give me the error you describe. By looking at some of the sample code included with Xcode 4's online documentation, I discovered that it works on an iPhone 3G running 3.1.3 if I replaced
self.window.rootViewController = self.navigationController;
with
[self.window addSubview:self.navigationController.view];
That did it for iPhone running 3.1.3.