view · edit · sidebar · attach · print · history

20130924-debug-unknown-error-on-ipad-add-image-saving-icloud

<< | Index | >>


Summary

  • Debug "Uknown Error" of current master on iPad iOS 7.
  • Create saving of image on iCloud

Commits / Patches / Pull Requests

Commit
Pull Request

Index / Status


Debug Unknown error on current master for iPad iOS7

Build succeeds. But Xcode returns "Uknown Error".
It caused only iPad (iOS7).

This is caused by access to invalid index of array object. (empty array)

2013-09-24 11:01:19.622 generika[10650:a0b] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(
	0   CoreFoundation                      0x01ffaed4 __exceptionPreprocess + 180
	1   libobjc.A.dylib                     0x01ccc8b6 objc_exception_throw + 44
	2   CoreFoundation                      0x01faf302 -[__NSArrayI objectAtIndex:] + 210
	3   generika                            0x0000cb8e -[MasterViewController layoutReaderToolbar] + 654
	4   generika                            0x00009f1c -[MasterViewController didRotate:] + 92
	5   Foundation                          0x017888c9 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 40
	6   CoreFoundation                      0x01fae94e _CFXNotificationPost + 2862
	7   Foundation                          0x016c2741 -[NSNotificationCenter postNotificationName:object:userInfo:] + 98
	8   UIKit                               0x00a88030 -[UIDevice setOrientation:animated:] + 295
	9   UIKit                               0x0084a26d -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 2173
	10  UIKit                               0x0085d8fc -[UIApplication handleEvent:withNewEvent:] + 3447
	11  UIKit                               0x0085de69 -[UIApplication sendEvent:] + 85
	12  UIKit                               0x0084b9a5 _UIApplicationHandleEvent + 736
	13  GraphicsServices                    0x0358c34b _PurpleEventCallback + 776
	14  GraphicsServices                    0x0358be56 PurpleEventCallback + 46
...
...

This was problem.

  if (self.reader) {
    if (floor(NSFoundationVersionNumber) > kVersionNumber_iOS_6_1) { // iOS 7 or later
      if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { // iPad
        // Fix "Cancel" Position for iOS 7 on iPad
        UIView *toolbarView = [self.reader.view.subviews objectAtIndex:1];
        UIToolbar *toolbar = [toolbarView.subviews objectAtIndex:0];
        UIView *buttonView = (UIView *)[toolbar.subviews objectAtIndex:2]; // UIToolbarTextButton
        UIView *button = (UIView *)[[buttonView subviews] objectAtIndex:0]; // UIToolbarNavigationButton
        UIInterfaceOrientation interfaceOrientation = [UIApplication sharedApplication].statusBarOrientation;
        if (UIInterfaceOrientationIsPortrait(interfaceOrientation)) {
          button.center = CGPointMake(30.0, 60.0);
        } else if (UIInterfaceOrientationIsLandscape(interfaceOrientation)) {
          button.center = CGPointMake(30.0, 45.0);
        }
  ...
  ...

toolbarView.subviews is empty.

link

commit

] Check iCloud sync multi devices.

Now I don't have any other iOS devices.
I could not check sync.

Continue after.


Check alert for remains updates at delete application

tried delete / install / on & off for iCloud sync.
Sometimes does not work expectedly.

This is alert for remains updates on iCloud.

checked:

  • No Network (Wifi and 3G/4G OFF) and iCloud ON and "Documents & Data" (Settings) Enabled
  • No Network (Wifi and 3G/4G OFF) and iCloud OFF and "Documents & Data" (Settings) Enabled
  • No Network (Wifi and 3G/4G OFF) and iCloud ON and "Documents & Data" (Settings) Disabled
  • No Network (Wifi and 3G/4G OFF) and iCloud OFF and "Documents & Data" (Settings) Disabled
  • Network ON and iCloud OFF and "Documents & Data" (Settings) Enabled
  • Network ON and iCloud ON and "Documents & Data" (Settings) Enabled
  • Network ON and iCloud OFF and "Documents & Data" (Settings) Disabled
  • Network ON and iCloud ON and "Documents & Data" (Settings) Disabled

Save barcode images on iCloud

continue tomorrow.

view · edit · sidebar · attach · print · history
Page last modified on September 24, 2013, at 09:29 AM