Crash on switching "All locations"

Questions, suggestions, error reports related to iOS edition of YoWindow
Post Reply
User avatar
max
Posts: 46
Joined: Tue Jan 12, 2010 2:29 am
Location: Saint-Petersburg, Russia

Crash on switching "All locations"

Post by max »

Observed in build 8 on iPhone 3GS / iOS 5.1.1.

Steps to reproduce:
  • tap the location (the location list appears)
  • Edit
  • +
  • select any country, if it's not already selected
  • turn on/off the "All locations" toggle
=> the app exits.
User avatar
hermanz
Posts: 1892
Joined: Thu Apr 08, 2010 3:21 pm
Name: Herman
Location: Nieuwegein, Netherlands

Re: Crash on switching "All locations"

Post by hermanz »

For me there is no problem with switching "all locations"


Ipad2 iOS 6.0.1
(Wheather on an I(phone,pad,pod) or Android, YoWindow what else )
User avatar
Wally©
Posts: 819
Joined: Sun Dec 12, 2010 2:18 am
Name: Walter

Re: Crash on switching "All locations"

Post by Wally© »

No problem here either...

iPhone4 on 5.0.1...

Might be a low mem issue on the 3GS...
Wally©...

(Ignorance can easily be overcome...Stupidity is 4ever...)
User avatar
max
Posts: 46
Joined: Tue Jan 12, 2010 2:29 am
Location: Saint-Petersburg, Russia

Re: Crash on switching "All locations"

Post by max »

My iPad2 behaves similarly, except it does not always exit and sometimes hangs. It is also running iOS 5.1.1. So, maybe it's something specific to the iOS version.
User avatar
par
Posts: 8647
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: Crash on switching "All locations"

Post by par »

Max, this is a very important finding.

I cannot repeat the crash on my iPhone 4, iOS 6
However, I can see the crash logs in TestFlight - 3 times only from your account :)
The logs do not give me the exact place in the code where the crash occurs, but I will try to figure it out, hopefully.

It seems to me that I am using some new API available in iOS 6 only.

Thank you!
Get YoWindow weather app for your phone or tablet.

Image Image Image
User avatar
par
Posts: 8647
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: Crash on switching "All locations"

Post by par »

Error stack trace for the future reference

Code: Select all

0 CoreFoundation 0x317a788f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x37ae5259 objc_exception_throw + 33
2 CoreFoundation 0x317aaa9b -[NSObject doesNotRecognizeSelector:] + 175
3 CoreFoundation 0x317a9915 ___forwarding___ + 301
4 CoreFoundation 0x31704650 _CF_forwarding_prep_0 + 48
5 YoWindow 0x00d61451 main + 4329245
6 YoWindow 0x00d61373 main + 4329023
7 CoreFoundation 0x317013fd -[NSObject performSelector:withObject:withObject:] + 53
8 UIKit 0x30e4de07 -[UIApplication sendAction:to:from:forEvent:] + 63
9 UIKit 0x30e4ddc3 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 31
10 UIKit 0x30e4dda1 -[UIControl sendAction:to:forEvent:] + 45
11 UIKit 0x30e4db11 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 493
12 UIKit 0x30fc8e8b -[_UISwitchInternalView _setProgress:animated:withDuration:force:sendAction:] + 843
13 UIKit 0x30fc8b11 -[UISwitch _animateToOn:withDuration:sendAction:] + 153
14 UIKit 0x3109e463 -[UISwitch _handlePanNL:] + 523
15 UIKit 0x30f34637 _UIGestureRecognizerSendActions + 107
16 UIKit 0x30ec4d65 -[UIGestureRecognizer _updateGestureWithEvent:] + 305
17 UIKit 0x310f5479 ___UIGestureRecognizerUpdate_block_invoke_0541 + 49
18 UIKit 0x30e40f55 _UIGestureRecognizerApplyBlocksToArray + 177
19 UIKit 0x30e3faa3 _UIGestureRecognizerUpdate + 899
20 UIKit 0x30e4c7e9 _UIGestureRecognizerUpdateGesturesFromSendEvent + 29
21 UIKit 0x30e4c627 -[UIWindow _sendGesturesForEvent:] + 775
22 UIKit 0x30e4c1f5 -[UIWindow sendEvent:] + 89
23 UIKit 0x30e32695 -[UIApplication sendEvent:] + 357
24 UIKit 0x30e31f3b _UIApplicationHandleEvent + 5827
25 GraphicsServices 0x3377822b PurpleEventCallback + 883
26 CoreFoundation 0x3177b523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
27 CoreFoundation 0x3177b4c5 __CFRunLoopDoSource1 + 141
28 CoreFoundation 0x3177a313 __CFRunLoopRun + 1371
29 CoreFoundation 0x316fd4a5 CFRunLoopRunSpecific + 301
30 CoreFoundation 0x316fd36d CFRunLoopRunInMode + 105
31 GraphicsServices 0x33777439 GSEventRunModal + 137
32 UIKit 0x30e60cd5 UIApplicationMain + 1081
33 YoWindow 0x00940590 main + 92
34 YoWindow 0x00d575d4 main + 4288672
Get YoWindow weather app for your phone or tablet.

Image Image Image
User avatar
par
Posts: 8647
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: Crash on switching "All locations"

Post by par »

I have found the exact place in code where the crash occurs.
But...
I have no idea why.
Looking at the code and imaging possible cause that could make it crash I came up to nothing.
I wish I could repeat the crash.
Get YoWindow weather app for your phone or tablet.

Image Image Image
User avatar
max
Posts: 46
Joined: Tue Jan 12, 2010 2:29 am
Location: Saint-Petersburg, Russia

Re: Crash on switching "All locations"

Post by max »

Pasha,

I can lend you my iPhone, or do some test runs if you make a debug build. Let me know what you prefer.

Max
Post Reply