TTCatalog: Anyone else getting crashes with 3.0?

34 views
Skip to first unread message

Aral Balkan

unread,
Apr 17, 2009, 12:22:11 PM4/17/09
to Three20
TTCatalog crashes on both iPhone 3G and 2nd gen Touch when I link
against beta 3. On the simulator, only the Photo Browser and Photo
Thumbnails crash).

Here's what I'm seeing on the iPhone 3G/2nd gen touch:

* Selecting Photo Browser:

2009-04-17 17:01:32.247 TTCatalog[261:207] *** -[PhotoTest1Controller
previousViewController]: unrecognized selector sent to instance
0x142eb0
2009-04-17 17:01:32.272 TTCatalog[261:207] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '*** -
[PhotoTest1Controller previousViewController]: unrecognized selector
sent to instance 0x142eb0'

(I've checked, and -ObjC *is* in the other linker flags field in
project options).

* Selecting Photo Thumbnails (screen comes up with placeholders,
then:)

2009-04-17 17:03:35.856 TTCatalog[266:207] Connecting to
http://farm4.static.flickr.com/3246/2957580101_d63ef56b15_t.jpg
2009-04-17 17:03:35.954 TTCatalog[266:207] Connecting to
http://farm4.static.flickr.com/3444/3223645618_f5e2fa7fea_t.jpg
2009-04-17 17:03:35.964 TTCatalog[266:207] Connecting to
http://farm2.static.flickr.com/1124/3164979509_bcfdd72123_t.jpg
2009-04-17 17:03:35.985 TTCatalog[266:207] Connecting to
http://farm4.static.flickr.com/3106/3203111597_d849ef615b_t.jpg
2009-04-17 17:03:36.002 TTCatalog[266:207] Connecting to
http://farm4.static.flickr.com/3099/3164979221_6c0e583f7d_t.jpg
2009-04-17 17:03:36.021 TTCatalog[266:207] *** -[PhotoTest2Controller
nextViewController]: unrecognized selector sent to instance 0x142b70
2009-04-17 17:03:36.035 TTCatalog[266:207] CoreAnimation: ignoring
exception: *** -[PhotoTest2Controller nextViewController]:
unrecognized selector sent to instance 0x142b70
2009-04-17 17:03:36.838 TTCatalog[266:207] *** -[TTURLRequestQueue
performSelector:withObject:withObject:withObject:]: unrecognized
selector sent to instance 0x128d60
2009-04-17 17:03:36.850 TTCatalog[266:207] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '*** -
[TTURLRequestQueue performSelector:withObject:withObject:withObject:]:
unrecognized selector sent to instance 0x128d60'

* Message Composer -> Compose message -> New Message. Doesn't crash
but I cannot select/touch any controls (e.g., autocomplete/suggestions
list when adding new contacts, the other text fields, etc.)

* Search bar:

2009-04-17 17:05:59.411 TTCatalog[270:207] DEALLOC
<TTMessageController: 0x146e40>
2009-04-17 17:06:31.823 TTCatalog[270:207] *** -[UIDeviceRGBColor
multiplyHue:saturation:value:]: unrecognized selector sent to instance
0x12c550
2009-04-17 17:06:31.833 TTCatalog[270:207] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '*** -
[UIDeviceRGBColor multiplyHue:saturation:value:]: unrecognized
selector sent to instance 0x12c550'

* Styled views:

2009-04-17 17:07:08.076 TTCatalog[274:207] *** -[UIDeviceRGBColor
shadow]: unrecognized selector sent to instance 0x145a60
2009-04-17 17:07:08.098 TTCatalog[274:207] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '*** -
[UIDeviceRGBColor shadow]: unrecognized selector sent to instance
0x145a60'

* Styled Labels

Works. The "spans with backgrounds" appears to ignore ascenders (see
rendering of background around the "p" and "g").

* Buttons:

2009-04-17 17:09:41.308 TTCatalog[282:207] *** -[UIDeviceRGBColor
saturation]: unrecognized selector sent to instance 0x147890
2009-04-17 17:09:41.326 TTCatalog[282:207] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '*** -
[UIDeviceRGBColor saturation]: unrecognized selector sent to instance
0x147890'

* Tabs:

2009-04-17 17:10:16.514 TTCatalog[286:207] *** -[UIDeviceRGBColor
multiplyHue:saturation:value:]: unrecognized selector sent to instance
0x147080
2009-04-17 17:10:16.533 TTCatalog[286:207] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '*** -
[UIDeviceRGBColor multiplyHue:saturation:value:]: unrecognized
selector sent to instance 0x147080'

* Three of the tables examples (states, cells, styled labels) work
without crashing and without any issues.

* Web images in table: the initial view displays with the place holder
images and "Table Row" text, then:

2009-04-17 17:12:58.760 TTCatalog[294:207] Connecting to
http://farm3.static.flickr.com/2300/2179038972_65f1e5f8c4_s.jpg
2009-04-17 17:12:58.880 TTCatalog[294:207] Connecting to
http://farm3.static.flickr.com/2266/2178246585_11d761324b_s.jpg
2009-04-17 17:12:58.896 TTCatalog[294:207] Connecting to
http://farm3.static.flickr.com/2349/2179041484_f741b2bbe5_s.jpg
2009-04-17 17:12:58.909 TTCatalog[294:207] Connecting to
http://farm3.static.flickr.com/2114/2178249889_bd17a48000_s.jpg
2009-04-17 17:12:59.617 TTCatalog[294:207] *** -[TTURLRequestQueue
performSelector:withObject:withObject:withObject:]: unrecognized
selector sent to instance 0x128d60
2009-04-17 17:12:59.627 TTCatalog[294:207] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '*** -
[TTURLRequestQueue performSelector:withObject:withObject:withObject:]:
unrecognized selector sent to instance 0x128d60'


* Web Image:

2009-04-17 17:14:26.766 TTCatalog[298:207] Connecting to
http://farm4.static.flickr.com/3163/3110335722_7a906f9d8b_m.jpg
2009-04-17 17:14:30.532 TTCatalog[298:207] *** -[TTURLRequestQueue
performSelector:withObject:withObject:withObject:]: unrecognized
selector sent to instance 0x128d60
2009-04-17 17:14:30.551 TTCatalog[298:207] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '*** -
[TTURLRequestQueue performSelector:withObject:withObject:withObject:]:
unrecognized selector sent to instance 0x128d60'

* You-tube player (appears to work). Warning:

warning: Unable to read symbols for "/Developer/Platforms/
iPhoneOS.platform/DeviceSupport/3.0 (7A280f)/Symbols/System/Library/
Internet Plug-Ins/YouTubePlugIn.webplugin/YouTubePlugIn" (file not
found).

* Activity labels & scroll view work correctly.

Not sure if I'm missing something or whether 3.0 support just isn't in
there yet.

Thanks,
Aral

Brett Adam

unread,
Apr 19, 2009, 12:16:14 AM4/19/09
to Three20
Aral,

Yes. I'm seeing the same thing. At first I didn't realize it was the
three20 classes causing the grief. I posted to the Apple Dev forums
here https://devforums.apple.com/thread/13354?tstart=0

I've tracked it down to the various Categories that three20
introduces. Seems that when run on a 3.0 *device*, the methods added
by these categories simply are not present. However, when run in the
Simulator on 3.0 they work fine. UIImageAdditions is a case in point.
I've inserted code to check the runtime presence of the methods by
wrapping if ([image respondToSelector...]) test around the method
dispatch. On 2.2 or 3.0 simulator the test returns YES. On 3.0 device
it returns NO.

As of yet, I have no idea what's causing this change in runtime
behavior.

Brett


On Apr 17, 12:22 pm, Aral Balkan <aralbal...@gmail.com> wrote:
> TTCatalog crashes on both iPhone 3G and 2nd gen Touch when I link
> against beta 3. On the simulator, only the Photo Browser and Photo
> Thumbnails crash).
>
> Here's what I'm seeing on the iPhone 3G/2nd gen touch:
>
> * Selecting Photo Browser:
>
> 2009-04-17 17:01:32.247 TTCatalog[261:207] *** -[PhotoTest1Controller
> previousViewController]: unrecognized selector sent to instance
> 0x142eb0
> 2009-04-17 17:01:32.272 TTCatalog[261:207] *** Terminating app due to
> uncaught exception 'NSInvalidArgumentException', reason: '*** -
> [PhotoTest1Controller previousViewController]: unrecognized selector
> sent to instance 0x142eb0'
>
> (I've checked, and -ObjC *is* in the other linker flags field in
> project options).
>
> * Selecting Photo Thumbnails (screen comes up with placeholders,
> then:)
>
> 2009-04-17 17:03:35.856 TTCatalog[266:207] Connecting tohttp://farm4.static.flickr.com/3246/2957580101_d63ef56b15_t.jpg
> 2009-04-17 17:03:35.954 TTCatalog[266:207] Connecting tohttp://farm4.static.flickr.com/3444/3223645618_f5e2fa7fea_t.jpg
> 2009-04-17 17:03:35.964 TTCatalog[266:207] Connecting tohttp://farm2.static.flickr.com/1124/3164979509_bcfdd72123_t.jpg
> 2009-04-17 17:03:35.985 TTCatalog[266:207] Connecting tohttp://farm4.static.flickr.com/3106/3203111597_d849ef615b_t.jpg
> 2009-04-17 17:03:36.002 TTCatalog[266:207] Connecting tohttp://farm4.static.flickr.com/3099/3164979221_6c0e583f7d_t.jpg
> 2009-04-17 17:12:58.760 TTCatalog[294:207] Connecting tohttp://farm3.static.flickr.com/2300/2179038972_65f1e5f8c4_s.jpg
> 2009-04-17 17:12:58.880 TTCatalog[294:207] Connecting tohttp://farm3.static.flickr.com/2266/2178246585_11d761324b_s.jpg
> 2009-04-17 17:12:58.896 TTCatalog[294:207] Connecting tohttp://farm3.static.flickr.com/2349/2179041484_f741b2bbe5_s.jpg
> 2009-04-17 17:12:58.909 TTCatalog[294:207] Connecting tohttp://farm3.static.flickr.com/2114/2178249889_bd17a48000_s.jpg
> 2009-04-17 17:12:59.617 TTCatalog[294:207] *** -[TTURLRequestQueue
> performSelector:withObject:withObject:withObject:]: unrecognized
> selector sent to instance 0x128d60
> 2009-04-17 17:12:59.627 TTCatalog[294:207] *** Terminating app due to
> uncaught exception 'NSInvalidArgumentException', reason: '*** -
> [TTURLRequestQueue performSelector:withObject:withObject:withObject:]:
> unrecognized selector sent to instance 0x128d60'
>
> * Web Image:
>
> 2009-04-17 17:14:26.766 TTCatalog[298:207] Connecting tohttp://farm4.static.flickr.com/3163/3110335722_7a906f9d8b_m.jpg

Justin Searls

unread,
Apr 19, 2009, 1:14:23 PM4/19/09
to Three20
I've had the same issue with TTCatalog and my own application since
3/26 in 3.0. It appears that the categories just get ignored.
Therefore, any TT code that uses them will not respond to the
additional selectors.

Not much of the library seems like it'd be usable in 3.0 until this is
worked around, as even TTURLRequest isn't able to return a response.
My original thread:
http://groups.google.com/group/three20/browse_thread/thread/f7b8ecd7e4740552/66c34b7c59b769a3?lnk=gst&q=tturlrequest#66c34b7c59b769a3

Also, beware that in the latest beta, the target dropdown is buggy and
will sometimes lose the option to build at or below 2.2.1 and silently
force your app to build at 3.0 until you reset the project settings,
which will of course cause unexpected (and hard to debug) crashes.

On Apr 19, 12:16 am, Brett Adam <bpja...@gmail.com> wrote:
> Aral,
>
> Yes. I'm seeing the same thing. At first I didn't realize it was the
> three20 classes causing the grief. I posted to the Apple Dev forums
> herehttps://devforums.apple.com/thread/13354?tstart=0

davidm...@gmail.com

unread,
Apr 19, 2009, 9:13:15 PM4/19/09
to Three20
I just figured this out. Add -all_load in OTHER_LDFLAGS along with -
ObjC. This resolved the issue for me. I'm using Beta 3 of the 3.0 SDK.
Most likely a change in gcc 4.2...

Regard,
Dave


On Apr 19, 10:14 am, Justin Searls <sea...@gmail.com> wrote:
> I've had the same issue with TTCatalog and my own application since
> 3/26 in 3.0. It appears that the categories just get ignored.
> Therefore, any TT code that uses them will not respond to the
> additional selectors.
>
> Not much of the library seems like it'd be usable in 3.0 until this is
> worked around, as even TTURLRequest isn't able to return a response.
> My original thread:http://groups.google.com/group/three20/browse_thread/thread/f7b8ecd7e...

coneybeare

unread,
May 1, 2009, 2:54:30 AM5/1/09
to Three20
Confirmed. Adding this fixed the crashing.
> > > > [TTURLRequestQueueperformSelector:withObject:withObject:withObject:]:
> > > > [TTURLRequestQueueperformSelector:withObject:withObject:withObject:]:
> > > > unrecognized selector sent to instance 0x128d60'
>
> > > > * Web Image:
>
> > > > 2009-04-17 17:14:26.766 TTCatalog[298:207] Connecting tohttp://farm4.static.flickr.com/3163/3110335722_7a906f9d8b_m.jpg
> > > > 2009-04-17 17:14:30.532 TTCatalog[298:207] *** -[TTURLRequestQueue
> > > > performSelector:withObject:withObject:withObject:]: unrecognized
> > > > selector sent to instance 0x128d60
> > > > 2009-04-17 17:14:30.551 TTCatalog[298:207] *** Terminating app due to
> > > > uncaught exception 'NSInvalidArgumentException', reason: '*** -
> > > > [TTURLRequestQueueperformSelector:withObject:withObject:withObject:]:

João Reis

unread,
May 1, 2009, 6:14:11 AM5/1/09
to Three20
Yes, this flag (-all_load) fixed it. Many thanks.
> > > > > previousViewController]:unrecognizedselectorsent to instance
> > > > > 0x142eb0
> > > > > 2009-04-17 17:01:32.272 TTCatalog[261:207] *** Terminating app due to
> > > > > uncaught exception 'NSInvalidArgumentException', reason: '*** -
> > > > > [PhotoTest1Controller previousViewController]:unrecognizedselector
> > > > > sent to instance 0x142eb0'
>
> > > > > (I've checked, and -ObjC *is* in the other linker flags field in
> > > > > project options).
>
> > > > > * Selecting Photo Thumbnails (screen comes up with placeholders,
> > > > > then:)
>
> > > > > 2009-04-17 17:03:35.856 TTCatalog[266:207] Connecting tohttp://farm4.static.flickr.com/3246/2957580101_d63ef56b15_t.jpg
> > > > > 2009-04-17 17:03:35.954 TTCatalog[266:207] Connecting tohttp://farm4.static.flickr.com/3444/3223645618_f5e2fa7fea_t.jpg
> > > > > 2009-04-17 17:03:35.964 TTCatalog[266:207] Connecting tohttp://farm2.static.flickr.com/1124/3164979509_bcfdd72123_t.jpg
> > > > > 2009-04-17 17:03:35.985 TTCatalog[266:207] Connecting tohttp://farm4.static.flickr.com/3106/3203111597_d849ef615b_t.jpg
> > > > > 2009-04-17 17:03:36.002 TTCatalog[266:207] Connecting tohttp://farm4.static.flickr.com/3099/3164979221_6c0e583f7d_t.jpg
> > > > > 2009-04-17 17:03:36.021 TTCatalog[266:207] *** -[PhotoTest2Controller
> > > > > nextViewController]:unrecognizedselectorsent to instance 0x142b70
> > > > > 2009-04-17 17:03:36.035 TTCatalog[266:207] CoreAnimation: ignoring
> > > > > exception: *** -[PhotoTest2Controller nextViewController]:
> > > > >unrecognizedselectorsent to instance 0x142b70
> > > > > 2009-04-17 17:03:36.838 TTCatalog[266:207] *** -[TTURLRequestQueue
> > > > > performSelector:withObject:withObject:withObject:]:unrecognized
> > > > >selectorsent to instance 0x128d60
> > > > > 2009-04-17 17:03:36.850 TTCatalog[266:207] *** Terminating app due to
> > > > > uncaught exception 'NSInvalidArgumentException', reason: '*** -
> > > > > [TTURLRequestQueueperformSelector:withObject:withObject:withObject:]:
> > > > >unrecognizedselectorsent to instance 0x128d60'
>
> > > > > * Message Composer -> Compose message -> New Message. Doesn't crash
> > > > > but I cannot select/touch any controls (e.g., autocomplete/suggestions
> > > > > list when adding new contacts, the other text fields, etc.)
>
> > > > > * Search bar:
>
> > > > > 2009-04-17 17:05:59.411 TTCatalog[270:207] DEALLOC
> > > > > <TTMessageController: 0x146e40>
> > > > > 2009-04-17 17:06:31.823 TTCatalog[270:207] *** -[UIDeviceRGBColor
> > > > > multiplyHue:saturation:value:]:unrecognizedselectorsent to instance
> > > > > 0x12c550
> > > > > 2009-04-17 17:06:31.833 TTCatalog[270:207] *** Terminating app due to
> > > > > uncaught exception 'NSInvalidArgumentException', reason: '*** -
> > > > > [UIDeviceRGBColor multiplyHue:saturation:value:]:unrecognized
> > > > >selectorsent to instance 0x12c550'
>
> > > > > * Styled views:
>
> > > > > 2009-04-17 17:07:08.076 TTCatalog[274:207] *** -[UIDeviceRGBColor
> > > > > shadow]:unrecognizedselectorsent to instance 0x145a60
> > > > > 2009-04-17 17:07:08.098 TTCatalog[274:207] *** Terminating app due to
> > > > > uncaught exception 'NSInvalidArgumentException', reason: '*** -
> > > > > [UIDeviceRGBColor shadow]:unrecognizedselectorsent to instance
> > > > > 0x145a60'
>
> > > > > * Styled Labels
>
> > > > > Works. The "spans with backgrounds" appears to ignore ascenders (see
> > > > > rendering of background around the "p" and "g").
>
> > > > > * Buttons:
>
> > > > > 2009-04-17 17:09:41.308 TTCatalog[282:207] *** -[UIDeviceRGBColor
> > > > > saturation]:unrecognizedselectorsent to instance 0x147890
> > > > > 2009-04-17 17:09:41.326 TTCatalog[282:207] *** Terminating app due to
> > > > > uncaught exception 'NSInvalidArgumentException', reason: '*** -
> > > > > [UIDeviceRGBColor saturation]:unrecognizedselectorsent to instance
> > > > > 0x147890'
>
> > > > > * Tabs:
>
> > > > > 2009-04-17 17:10:16.514 TTCatalog[286:207] *** -[UIDeviceRGBColor
> > > > > multiplyHue:saturation:value:]:unrecognizedselectorsent to instance
> > > > > 0x147080
> > > > > 2009-04-17 17:10:16.533 TTCatalog[286:207] *** Terminating app due to
> > > > > uncaught exception 'NSInvalidArgumentException', reason: '*** -
> > > > > [UIDeviceRGBColor multiplyHue:saturation:value:]:unrecognized
> > > > >selectorsent to instance 0x147080'
>
> > > > > * Three of the tables examples (states, cells, styled labels) work
> > > > > without crashing and without any issues.
>
> > > > > * Web images in table: the initial view displays with the place holder
> > > > > images and "Table Row" text, then:
>
> > > > > 2009-04-17 17:12:58.760 TTCatalog[294:207] Connecting tohttp://farm3.static.flickr.com/2300/2179038972_65f1e5f8c4_s.jpg
> > > > > 2009-04-17 17:12:58.880 TTCatalog[294:207] Connecting tohttp://farm3.static.flickr.com/2266/2178246585_11d761324b_s.jpg
> > > > > 2009-04-17 17:12:58.896 TTCatalog[294:207] Connecting tohttp://farm3.static.flickr.com/2349/2179041484_f741b2bbe5_s.jpg
> > > > > 2009-04-17 17:12:58.909 TTCatalog[294:207] Connecting tohttp://farm3.static.flickr.com/2114/2178249889_bd17a48000_s.jpg
> > > > > 2009-04-17 17:12:59.617 TTCatalog[294:207] *** -[TTURLRequestQueue
> > > > > performSelector:withObject:withObject:withObject:]:unrecognized
> > > > >selectorsent to instance 0x128d60
> > > > > 2009-04-17 17:12:59.627 TTCatalog[294:207] *** Terminating app due to
> > > > > uncaught exception 'NSInvalidArgumentException', reason: '*** -
> > > > > [TTURLRequestQueueperformSelector:withObject:withObject:withObject:]:
> > > > >unrecognizedselectorsent to instance 0x128d60'
>
> > > > > * Web Image:
>
> > > > > 2009-04-17 17:14:26.766 TTCatalog[298:207] Connecting tohttp://farm4.static.flickr.com/3163/3110335722_7a906f9d8b_m.jpg
> > > > > 2009-04-17 17:14:30.532 TTCatalog[298:207] *** -[TTURLRequestQueue
> > > > > performSelector:withObject:withObject:withObject:]:unrecognized
> > > > >selectorsent to instance 0x128d60
> > > > > 2009-04-17 17:14:30.551 TTCatalog[298:207] *** Terminating app due to
> > > > > uncaught exception 'NSInvalidArgumentException', reason: '*** -
> > > > > [TTURLRequestQueueperformSelector:withObject:withObject:withObject:]:
> > > > >unrecognizedselectorsent to instance 0x128d60'
Reply all
Reply to author
Forward
0 new messages